:root {
  --coral: #d97757; --coral-lite: #e99c7e; --coral-deep: #be5c3c;
  --cream: #f5f1e8; --ink: #14110f; --ink-2: #1c1815; --ink-3: #251f1b;
  --line: rgba(245,241,232,.10); --text: #ece7df; --text-dim: #a79f95;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

/* Feedback verde al copiar (cualquier botón con clase .copied) */
@keyframes copiedPop { 0% { transform: scale(1); } 35% { transform: scale(1.07); } 100% { transform: scale(1); } }
.copied, .copied:hover { color: #34c97a !important; background: rgba(52,201,122,.16) !important;
  border-color: rgba(52,201,122,.55) !important; animation: copiedPop .35s ease; }
.copied svg { color: #34c97a !important; }
body { font-family: 'Inter', -apple-system, system-ui, sans-serif; background: var(--ink); color: var(--text); -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

/* Banner: descarga la app de escritorio (atajo ⌥+Espacio) */
.dl-banner { flex: none; position: relative; overflow: hidden; color: #2a1109;
  background: linear-gradient(100deg, var(--coral-deep), var(--coral) 35%, var(--coral-lite) 55%, var(--coral) 75%, var(--coral-deep));
  background-size: 220% 100%; animation: dlshine 6s linear infinite;
  user-select: none; -webkit-user-select: none; -webkit-app-region: drag; }
/* El botón de descargar (navegador) debe seguir siendo clicable, no zona de arrastre. */
.dl-banner button, .dl-banner a { -webkit-app-region: no-drag; }
@keyframes dlshine { to { background-position: -220% 0; } }
.dl-banner-inner { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 9px 20px; max-width: 1100px; margin: 0 auto; }
.dl-banner-text { font-size: 13.5px; font-weight: 600; }
.dl-banner-text strong { font-weight: 800; }
.dl-banner-btn { flex: none; background: rgba(20,17,15,.9); color: var(--cream); border: none; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 13px; padding: 7px 16px; border-radius: 999px; transition: transform .15s, background .15s; }
.dl-banner-btn:hover { transform: translateY(-1px); background: var(--ink); }

/* ---------- Modo escritorio: banner de novedades + Dictar informativo ---------- */
@keyframes flap { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.feat-banner-inner { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 20px; }
.feat-sandal { width: 22px; height: 22px; flex: none; animation: flap 1.4s ease-in-out infinite; transform-origin: 35% 60%; }
.feat-banner-text { font-size: 13.5px; font-weight: 600; color: #2a1109; }
.feat-banner-text strong { font-weight: 800; letter-spacing: .01em; }
.dictar-hero { text-align: center; max-width: 600px; margin: 32px auto 0; padding: 32px 28px; border-radius: 20px;
  background: radial-gradient(130% 130% at 50% 0%, rgba(217,119,87,.14), transparent 72%); border: 1px solid var(--line); }
.dictar-hero-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(217,119,87,.16); margin-bottom: 16px; }
.dictar-hero-ic svg { width: 28px; height: 28px; fill: none; stroke: var(--coral-lite); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dictar-hero h2 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.dictar-hero p { color: var(--text-dim); font-size: 15px; max-width: 420px; margin: 0 auto; line-height: 1.5; }
.dictar-steps { max-width: 600px; margin: 22px auto 0; display: flex; flex-direction: column; gap: 14px; }
.dictar-note { max-width: 600px; margin: 22px auto 0; text-align: center; color: var(--text-dim); font-size: 13.5px; line-height: 1.65; }
@media (prefers-reduced-motion: reduce) { .feat-sandal { animation: none; } }

/* ---------- Panel de Ajustes ---------- */
.hx-modal.settings-modal { width: min(720px, 92vw); max-width: 92vw; text-align: left; padding: 0; overflow: hidden; }
.set-head { font-size: 18px; font-weight: 700; color: var(--cream); padding: 20px 24px 14px; border-bottom: 1px solid var(--line); }
.set-grid { display: grid; grid-template-columns: 200px 1fr; min-height: 380px; }
.set-tabs { display: flex; flex-direction: column; gap: 2px; padding: 14px 12px; border-right: 1px solid var(--line); background: rgba(0,0,0,.14); }
.set-tab { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: none; background: none; color: var(--text-dim); cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 500; text-align: left; transition: background .14s, color .14s; }
.set-tab:hover { background: rgba(245,241,232,.05); color: var(--text); }
.set-tab.on { background: rgba(217,119,87,.16); color: var(--coral-lite); }
.set-tab svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.set-body { padding: 22px 26px; overflow-y: auto; }
.set-body h3 { font-size: 16px; font-weight: 700; color: var(--cream); margin: 0 0 16px; }
.set-row { display: flex; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: none; }
.set-row-txt { flex: 1; min-width: 0; }
.set-row-txt strong { display: block; color: var(--text); font-size: 14.5px; font-weight: 600; }
.set-row-txt small { color: var(--text-dim); font-size: 12.5px; line-height: 1.4; }
.set-select { background: var(--ink-2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 12px; font-family: inherit; font-size: 14px; cursor: pointer; min-width: 170px; }
.set-hotkey { display: flex; align-items: center; gap: 10px; }
.set-keys { display: inline-flex; gap: 3px; align-items: center; }
.set-plus { color: var(--text-dim); font-size: 12px; margin: 0 2px; }
.set-pill { font-size: 12.5px; color: var(--text-dim); background: rgba(245,241,232,.07); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.set-toggle { cursor: pointer; }
.set-account { display: flex; align-items: center; gap: 14px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.set-av { width: 44px; height: 44px; flex: none; }
.set-account-id { flex: 1; min-width: 0; }
.set-account-id strong { color: var(--cream); font-size: 15px; }
.set-email { color: var(--text-dim); font-size: 13px; }
@media (max-width: 620px) { .set-grid { grid-template-columns: 1fr; } .set-tabs { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--line); } }

/* ---------- Atajo configurable ---------- */
.hk-capture { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 52px; margin: 6px 0 8px; padding: 12px; border-radius: 12px; background: var(--ink); border: 1px dashed rgba(217, 119, 87, .4); }
.hk-capture .kbd { transform: scale(1.15); }
.hk-hint { text-align: center; color: var(--text-dim); font-size: 12.5px; margin: 0 0 12px; min-height: 32px; }
.hk-quick-label { text-align: center; color: var(--text-dim); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px; }
.hk-quick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 16px; }
.hk-chip { padding: 7px 12px; border-radius: 999px; background: var(--ink); border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.hk-chip:hover { border-color: rgba(217, 119, 87, .5); }
.hk-chip.on { background: rgba(217, 119, 87, .14); border-color: var(--coral); color: var(--coral-lite, #f0a387); }
.dictar-hk-btn { margin-top: 16px; }
.dict-hk-row { text-align: center; color: var(--text-dim); font-size: 13px; margin-top: 14px; }
.dict-hk-row .kbd { vertical-align: 0; }

/* ---------- Inicio (panel / Home) ---------- */
.home-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.home-stat { background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; position: relative; overflow: hidden; }
.home-stat::after { content: ''; position: absolute; inset: 0 0 auto auto; width: 120px; height: 120px; background: radial-gradient(circle at 100% 0%, rgba(217,119,87,.12), transparent 70%); pointer-events: none; }
.home-stat-h { display: flex; align-items: center; gap: 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); margin-bottom: 14px; }
.home-stat-h svg { width: 16px; height: 16px; fill: none; stroke: var(--coral-lite); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-stat-val { font-size: 38px; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -.02em; }
.home-stat-val small { font-size: 17px; font-weight: 600; color: var(--text-dim); margin-left: 2px; }
.home-stat-sub { margin-top: 8px; font-size: 13px; color: var(--text-dim); }
.home-recent { background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; padding: 8px; }
.home-recent-h { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); padding: 14px 16px 8px; }
.home-day-label { font-size: 13px; font-weight: 700; color: var(--text); padding: 14px 16px 6px; }
.home-row { display: flex; align-items: center; gap: 13px; width: 100%; padding: 11px 14px; border: none; background: none; border-radius: 12px; cursor: pointer; font-family: inherit; text-align: left; transition: background .14s; }
.home-row:hover { background: rgba(245,241,232,.05); }
.home-row-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(217,119,87,.14); }
.home-row-ic svg { width: 18px; height: 18px; fill: none; stroke: var(--coral-lite); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.home-row-title { color: var(--text); font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-row-sub { color: var(--text-dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-row-time { flex: none; color: var(--text-dim); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.home-empty { padding: 10px 0 22px; }
@media (max-width: 760px) { .home-stats { grid-template-columns: 1fr; } }

.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 19px; padding: 0 5px;
  font-family: ui-monospace, monospace; font-size: 11px; font-weight: 700; color: #2a1109;
  background: rgba(255,255,255,.5); border: 1px solid rgba(0,0,0,.18); border-bottom-width: 2px; border-radius: 5px; margin: 0 1px; vertical-align: 1px; }
/* Popup de descarga: teclas oscuras + pasos */
.dl-pop .kbd { color: var(--cream); background: rgba(245,241,232,.09); border-color: var(--line); }
.dl-pop-steps { display: flex; flex-direction: column; gap: 12px; text-align: left; margin: 18px 0 22px; }
.dl-pop-step { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: var(--text); line-height: 1.45; }
.dl-pop-num { flex: none; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700;
  color: var(--coral-lite); background: rgba(217,119,87,.16); border: 1px solid rgba(217,119,87,.3); }
button, input, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.app { display: grid; grid-template-columns: 248px 1fr; flex: 1; min-height: 0; }

/* Sidebar */
.side { background: var(--ink-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 16px 12px; }
.side-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; padding: 6px 8px 16px; cursor: pointer; }
.side-brand img { width: 30px; height: 30px; border-radius: 8px; }
.side-nav { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -4px; padding: 0 4px; }
.nav-inicio { margin-bottom: 4px; }
/* Categorías como tarjetas sutiles, plegables. */
.nav-group { background: rgba(245, 241, 232, .025); border: 1px solid var(--line); border-radius: 13px; padding: 4px; margin-top: 8px; }
.nav-section { display: flex; align-items: center; gap: 6px; width: 100%; padding: 8px 10px 7px; border: none; background: none; cursor: pointer; font-family: inherit;
  font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--coral-lite); font-weight: 800; border-radius: 9px; transition: color .15s; }
.nav-section span { flex: 1; text-align: left; }
.nav-section:hover { color: var(--coral); }
.nav-sec-chev { stroke: var(--coral-lite); }
.nav-sec-chev { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.nav-group.collapsed .nav-sec-chev { transform: rotate(-90deg); }
.nav-group-items { display: flex; flex-direction: column; gap: 1px; overflow: hidden; }
.nav-group.collapsed .nav-group-items { display: none; }
.nav-refer { background: rgba(217, 119, 87, .12); border: 1px solid rgba(217, 119, 87, .28); color: var(--coral-lite); font-weight: 600; font-size: 14px; margin-bottom: 10px; white-space: nowrap; }
.nav-refer:hover { background: rgba(217, 119, 87, .2); color: var(--coral-lite); }
.nav-refer svg { stroke: var(--coral-lite); flex: none; }
.refer-free { margin-left: auto; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; color: #2a1109; background: linear-gradient(180deg, var(--coral-lite), var(--coral)); border-radius: 6px; padding: 2px 7px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; color: var(--text-dim); cursor: pointer; font-weight: 500; font-size: 15px; transition: .15s; }
.nav-item:hover { background: rgba(245,241,232,.05); color: var(--text); }
.nav-item.active { background: rgba(217,119,87,.16); color: var(--coral-lite); }
.nav-item svg { width: 19px; height: 19px; }
.nav-sec { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); padding: 16px 12px 6px; display: flex; justify-content: space-between; align-items: center; }
.nav-sec button { background: none; border: none; color: var(--text-dim); cursor: pointer; }
.folder-item { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 10px; cursor: pointer; color: var(--text-dim); font-size: 14px; }
.folder-item:hover { background: rgba(245,241,232,.05); }
.folder-item.active { background: rgba(217,119,87,.12); color: var(--text); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
/* Gestión de carpetas */
.folder-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-grip { display: inline-flex; align-items: center; flex: none; color: var(--text-dim); cursor: grab; opacity: 0; transition: opacity .15s; margin: 0 -4px 0 -2px; }
.folder-grip svg { width: 15px; height: 15px; }
.folder-grip:active { cursor: grabbing; }
.folder-item:hover .folder-grip { opacity: .5; }
.folder-more { flex: none; background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 2px; border-radius: 6px; opacity: 0; transition: opacity .15s, background .15s; display: grid; place-items: center; }
.folder-more svg { width: 16px; height: 16px; }
.folder-item:hover .folder-more, .folder-item.active .folder-more { opacity: .65; }
.folder-more:hover { opacity: 1; background: rgba(245,241,232,.1); color: var(--text); }
.folder-item.dragging { opacity: .4; }
.folder-item.drop-before { box-shadow: inset 0 2px 0 var(--coral); }
.folder-item.drop-after { box-shadow: inset 0 -2px 0 var(--coral); }
.folder-menu .dot { width: 16px; height: 16px; }
.folder-menu button.danger:hover { background: rgba(196,69,47,.16); color: #ec7a63; }
.folder-menu button.danger:hover svg { color: #ec7a63; }
.color-pop { position: fixed; z-index: 1200; background: var(--ink-3); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; box-shadow: 0 18px 50px -16px rgba(0,0,0,.7); }
.color-pop .sw { width: 28px; height: 28px; border-radius: 8px; border: none; cursor: pointer; transition: transform .12s; }
.color-pop .sw:hover { transform: scale(1.12); }
.color-pop .sw.sel { box-shadow: 0 0 0 2px var(--ink-3), 0 0 0 3.5px var(--cream); }
.side-foot { margin-top: auto; padding: 12px 8px 4px; }
.plan-badge { background: var(--ink-3); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.plan-badge .pl { font-size: 13px; font-weight: 700; }
.plan-badge .pl.pro { color: var(--coral-lite); }
.plan-badge .sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.plan-badge button { margin-top: 10px; width: 100%; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: none; cursor: pointer; border-radius: 999px; font-weight: 600; font-size: 14px; padding: 9px 16px; transition: transform .12s, box-shadow .2s, background .2s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { color: #2a1109; background: linear-gradient(180deg, var(--coral-lite), var(--coral) 55%, var(--coral-deep)); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 8px 22px -6px rgba(217,119,87,.5); }
.btn-ghost { color: var(--text); background: rgba(245,241,232,.06); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(245,241,232,.1); }
.btn svg { width: 16px; height: 16px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* Contenido */
.main { overflow-y: auto; }
.view { max-width: 920px; margin: 0 auto; padding: 36px 32px 60px; }
.view-head { margin-bottom: 26px; }
.view-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.view-head p { color: var(--text-dim); margin-top: 6px; }
.row { display: flex; gap: 10px; align-items: center; }
.spacer { flex: 1; }

/* Carga del modelo */
.model-load { background: rgba(217,119,87,.1); border: 1px solid rgba(217,119,87,.3); border-radius: 12px; padding: 12px 16px; margin-bottom: 20px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.bar { flex: 1; height: 6px; background: rgba(245,241,232,.1); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--coral); border-radius: 99px; transition: width .2s; }

/* Dictar */
.dictate { text-align: center; padding-top: 20px; }
.mic { width: 132px; height: 132px; border-radius: 50%; border: none; cursor: pointer; margin: 10px auto 8px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, var(--coral-lite), var(--coral-deep)); color: #2a1109; box-shadow: 0 20px 50px -14px rgba(217,119,87,.6); transition: transform .15s; }
.mic:hover { transform: scale(1.04); }
.mic.rec { animation: micpulse 1.2s infinite; }
@keyframes micpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(217,119,87,.5) } 50% { box-shadow: 0 0 0 22px rgba(217,119,87,0) } }
.mic svg { width: 52px; height: 52px; }
.mic-hint { color: var(--text-dim); font-size: 14px; margin-bottom: 22px; }
.result { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 20px; min-height: 120px; text-align: left; font-size: 17px; line-height: 1.6; white-space: pre-wrap; }
.result.empty { color: var(--text-dim); }
.result.has-pair { padding: 14px; white-space: normal; }

/* Dictar: idioma de entrada → traducir a */
.dict-lang { display: inline-flex; align-items: center; gap: 8px; }
.dict-lang-arrow { width: 18px; height: 18px; color: var(--text-dim); flex: none; }
.dict-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dict-block { background: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.dict-block.out { border-color: rgba(217,119,87,.4); background: linear-gradient(180deg, #241a15, var(--ink-3)); }
.dict-block-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.dict-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); font-weight: 700; }
.dict-block.out .dict-tag { color: var(--coral-lite); }
.dict-copy { margin-left: auto; background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 4px; border-radius: 7px; display: grid; place-items: center; }
.dict-copy:hover { color: var(--coral-lite); background: rgba(217,119,87,.12); }
.dict-copy svg { width: 15px; height: 15px; }
.dict-block-text { font-size: 16px; line-height: 1.55; color: var(--text); white-space: pre-wrap; }
@media (max-width: 620px) { .dict-pair { grid-template-columns: 1fr; } }
.eqbars { display: inline-flex; gap: 3px; height: 22px; align-items: center; vertical-align: middle; }
.eqbars span { width: 3px; background: var(--coral); border-radius: 2px; height: 30%; animation: eq 1s infinite ease-in-out; }
.eqbars span:nth-child(2){animation-delay:.15s} .eqbars span:nth-child(3){animation-delay:.3s} .eqbars span:nth-child(4){animation-delay:.45s}
@keyframes eq { 0%,100%{height:25%} 50%{height:100%} }

/* Dropzone */
.drop { border: 2px dashed var(--line); border-radius: 18px; padding: 50px; text-align: center; cursor: pointer; transition: .2s; background: var(--ink-2); }
.drop:hover, .drop.over { border-color: var(--coral); background: rgba(217,119,87,.06); }
.drop svg { width: 42px; height: 42px; color: var(--coral); margin: 0 auto 14px; }
.drop h3 { font-size: 18px; margin-bottom: 6px; }
.drop p { color: var(--text-dim); font-size: 14px; }

/* Cards / listas */
.card { display: flex; gap: 13px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); cursor: pointer; margin-bottom: 9px; transition: .15s; }
.card:hover { border-color: rgba(217,119,87,.35); }
.card.sel { background: rgba(217,119,87,.12); border-color: rgba(217,119,87,.5); }
.chip { width: 40px; height: 40px; border-radius: 11px; background: rgba(217,119,87,.16); display: grid; place-items: center; flex-shrink: 0; }
.chip svg { width: 19px; height: 19px; color: var(--coral); }
.card h4 { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.card .snip { font-size: 13px; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { font-size: 12px; color: var(--text-dim); margin-top: 6px; display: flex; gap: 8px; }
.pill { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: rgba(245,241,232,.06); color: var(--text-dim); }

.empty-state { text-align: center; padding: 70px 20px; color: var(--text-dim); }
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--coral); opacity: .6; }

/* Detalle / editor */
.field { width: 100%; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--text); font-size: 15px; resize: vertical; }
.field:focus { outline: none; border-color: var(--coral); }
.title-input { background: none; border: none; color: var(--text); font-size: 24px; font-weight: 800; width: 100%; }
.title-input:focus { outline: none; }

/* Detalle de transcripción (estilo TurboScribe: texto + panel de opciones) */
.tx-grid { display: grid; grid-template-columns: 1fr 272px; gap: 24px; align-items: start; margin-top: 8px; }
.tx-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 1px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.tx-side-h { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); font-weight: 700; padding: 12px 10px 6px; }
.tx-opt { display: flex; align-items: center; gap: 11px; width: 100%; background: none; border: none;
  color: var(--text); font-family: inherit; font-size: 14px; text-align: left; padding: 10px; border-radius: 10px; cursor: pointer; transition: background .14s, color .14s; }
.tx-opt-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.tx-opt-sub { font-size: 11px; color: var(--text-dim); font-style: normal; margin-top: 2px; }
.tx-opt svg { width: 18px; height: 18px; color: var(--text-dim); flex: none; }
.tx-opt:hover { background: rgba(217,119,87,.12); color: var(--coral-lite); }
.tx-opt:hover svg, .tx-opt.active svg { color: var(--coral-lite); }
.tx-opt.active { background: rgba(217,119,87,.16); color: var(--coral-lite); }
.tx-opt:disabled { opacity: .4; cursor: not-allowed; }
.tx-opt:disabled:hover { background: none; color: var(--text); }
.tx-opt:disabled:hover svg { color: var(--text-dim); }
.tx-opt.danger:hover { color: var(--coral-lite); }
.tx-opt-folder { cursor: default; }
.tx-opt-folder:hover { background: none; color: var(--text); }
.tx-opt-folder .tx-opt-txt { flex: none; }
.tx-opt-folder .hxsel { margin-left: auto; }
.tx-stamps { display: flex; flex-direction: column; gap: 1px; }
.tx-seg { display: flex; gap: 12px; padding: 8px 10px; border-radius: 9px; cursor: pointer; border-left: 2px solid transparent; transition: background .12s, border-color .12s; }
.tx-seg:hover { background: rgba(245,241,232,.04); }
.tx-seg.playing { background: rgba(217,119,87,.13); border-left-color: var(--coral); }
.tx-seg.playing .tx-seg-t { color: var(--coral); font-weight: 600; }
.tx-seg-t { font-family: ui-monospace, monospace; font-size: 12px; color: var(--coral-lite); flex: none; padding-top: 3px; min-width: 42px; }
.tx-seg span:last-child { font-size: 15px; line-height: 1.55; color: var(--text); }

/* Reproductor de audio sincronizado */
.tx-audio { margin: 0 0 16px; }
.tx-audio-row { display: flex; align-items: center; gap: 12px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 13px; padding: 10px 14px; }
.tx-audio-ic { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--coral-lite); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tx-audio-row audio { flex: 1; height: 38px; }
.tx-tr-row { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; }
@media (max-width: 820px) { .tx-grid { grid-template-columns: 1fr; } .tx-side { position: static; } }
.tcg { display: flex; gap: 10px; margin: 14px 0; align-items: baseline; padding: 8px 12px; border-radius: 9px; }
.tcg:hover { background: rgba(245,241,232,.04); }
.tcg .t { font-family: ui-monospace, monospace; font-size: 12px; color: var(--coral-lite); cursor: pointer; flex-shrink: 0; }

/* ---------- Desplegables de marca (hxselect.js) ---------- */
/* El <select> nativo queda oculto pero presente (value/onchange intactos). */
select.hxsel-native { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0;
  opacity: 0; pointer-events: none; clip: rect(0 0 0 0); overflow: hidden; }
/* Selects sin mejorar (por si JS aún no corrió): mismo look base. */
select:not(.hxsel-native) { background: var(--ink-2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 12px; font-size: 14px; }

.hxsel { position: relative; display: inline-flex; vertical-align: middle; }
.hxsel--block { display: block; width: 100%; }

.hxsel-trigger { display: inline-flex; align-items: center; gap: 8px; width: 100%;
  background: var(--ink-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 500; line-height: 1.25;
  font-family: inherit; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.hxsel-trigger:hover { border-color: rgba(245,241,232,.22); background: var(--ink-3); }
.hxsel-trigger.is-open, .hxsel-trigger:focus-visible { outline: none; border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(217,119,87,.16); }
.hxsel-trigger:disabled { opacity: .5; cursor: not-allowed; }
.hxsel-trigger--lg { border-radius: 12px; padding: 14px 16px; font-size: 15px; }

.hxsel-val { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Iconos de idioma (banderas SVG / globo) — nunca emojis */
.hxsel-flag { width: 21px; height: 15px; flex: none; border-radius: 3.5px; overflow: hidden; align-self: center;
  display: inline-flex; box-shadow: 0 0 0 1px rgba(0,0,0,.32); }
.hxsel-flag svg { width: 100%; height: 100%; display: block; }
/* Anular el trazo global svg{stroke:currentColor} que dibujaba un borde claro en cada
   forma de la bandera. Las formas con stroke propio (Union Jack) conservan el suyo. */
.hxsel-flag svg { stroke: none; stroke-width: 0; }
.hxsel-glyph { width: 18px; height: 18px; flex: none; align-self: center; color: var(--coral-lite);
  display: inline-flex; align-items: center; justify-content: center; }
.hxsel-glyph svg { width: 18px; height: 18px; }
.hxsel-opt .hxsel-flag, .hxsel-opt .hxsel-glyph { align-self: center; }
.hxsel-caret { width: 16px; height: 16px; flex: none; color: var(--text-dim);
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s ease, color .15s; }
.hxsel-trigger.is-open .hxsel-caret { transform: rotate(180deg); color: var(--coral); }

.hxsel-panel { position: fixed; z-index: 1400; min-width: 160px; max-width: min(92vw, 380px);
  background: var(--ink-3); border: 1px solid var(--line); border-radius: 14px; padding: 6px;
  box-shadow: 0 20px 56px -14px rgba(0,0,0,.66), 0 0 0 1px rgba(0,0,0,.25);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top center;
  transition: opacity .16s ease, transform .16s ease; }
.hxsel-panel.up { transform-origin: bottom center; transform: translateY(6px) scale(.98); }
.hxsel-panel.in { opacity: 1; transform: translateY(0) scale(1); }
.hxsel-list { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.hxsel-opt { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px;
  color: var(--text); font-size: 14px; cursor: pointer; line-height: 1.3; transition: background .12s, color .12s; }
.hxsel-opt-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hxsel-opt .hxsel-check { width: 16px; height: 16px; flex: none; opacity: 0; color: var(--coral);
  fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hxsel-opt:hover, .hxsel-opt.is-active { background: rgba(217,119,87,.14); color: var(--coral-lite); }
.hxsel-opt.is-sel { color: var(--coral-lite); }
.hxsel-opt.is-sel .hxsel-check { opacity: 1; }
.hxsel-opt.is-disabled { opacity: .4; cursor: not-allowed; }
.hxsel-list::-webkit-scrollbar { width: 9px; }
.hxsel-list::-webkit-scrollbar-thumb { background: rgba(245,241,232,.14); border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }

/* Modal (reusa ui.js) */
.hx-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(10,8,7,.6); backdrop-filter: blur(8px); opacity: 0; transition: opacity .18s; padding: 24px; }
.hx-overlay.in { opacity: 1; }
.hx-modal { background: linear-gradient(180deg, var(--ink-2), var(--ink-3)); border: 1px solid var(--line); border-radius: 22px; padding: 30px 28px; max-width: 400px; text-align: center; box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); transform: scale(.94); transition: transform .2s; }
.hx-overlay.in .hx-modal { transform: scale(1); }
.hx-modal-ic { width: 60px; height: 60px; border-radius: 15px; margin: 0 auto 16px; }
.hx-modal-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.hx-modal-msg { color: var(--text-dim); font-size: 15px; margin-bottom: 20px; line-height: 1.5; }
.hx-modal input { width: 100%; margin-bottom: 14px; text-align: center; }
.hx-modal-ok { width: 100%; }

@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
}

/* ---------- Perfil + menú ---------- */
.profile { display: flex; align-items: center; gap: 10px; padding: 8px; margin-top: 10px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.profile:hover { background: rgba(245,241,232,.05); }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--ink-3); color: var(--coral-lite); font-weight: 700; font-size: 14px;
  border: 2px solid var(--coral); box-shadow: 0 0 0 2px rgba(217,119,87,.18); }
.avatar svg { color: var(--coral-lite); }
.profile-name { flex: 1; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile .chev { width: 16px; height: 16px; color: var(--text-dim); flex-shrink: 0; }
.profile-menu { position: fixed; z-index: 1200; background: var(--ink-3); border: 1px solid var(--line);
  border-radius: 14px; padding: 6px; box-shadow: 0 18px 50px -16px rgba(0,0,0,.7); min-width: 200px; }
.profile-menu button { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: none;
  color: var(--text); font-size: 14px; padding: 10px 12px; border-radius: 9px; cursor: pointer; text-align: left; }
.profile-menu button:hover { background: rgba(217,119,87,.14); color: var(--coral-lite); }
.profile-menu button svg { width: 17px; height: 17px; color: var(--text-dim); }
.profile-menu button:hover svg { color: var(--coral-lite); }
.pm-sep { height: 1px; background: var(--line); margin: 5px 8px; }

/* ---------- Flujo de fundador (testimonio) ---------- */
.fd-overlay { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px;
  background: rgba(8,6,5,.7); backdrop-filter: blur(10px); opacity: 0; transition: opacity .2s; overflow-y: auto; }
.fd-overlay.in { opacity: 1; }
.fd-modal { position: relative; width: 100%; max-width: 760px; background: linear-gradient(180deg, var(--ink-2), var(--ink-3));
  border: 1px solid var(--line); border-radius: 24px; padding: 38px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.7);
  transform: scale(.96) translateY(8px); transition: transform .25s cubic-bezier(.2,.9,.3,1); }
.fd-overlay.in .fd-modal { transform: none; }
.fd-close { position: absolute; top: 16px; right: 18px; background: none; border: none; color: var(--text-dim); font-size: 26px; cursor: pointer; line-height: 1; }
.fd-close:hover { color: var(--text); }
.fd-step { text-align: center; }
.fd-step h2 { font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.fd-lead { color: var(--text-dim); font-size: 16px; max-width: 540px; margin: 10px auto 0; line-height: 1.5; }
.fd-tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: #2a1109; background: linear-gradient(180deg, var(--coral-lite), var(--coral-deep)); padding: 5px 14px; border-radius: 999px; margin-bottom: 14px; }

/* Comparativa */
.fd-compare { display: flex; align-items: stretch; gap: 14px; justify-content: center; margin: 26px 0 8px; }
.fd-pc { flex: 1; max-width: 240px; background: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.fd-pc.best { border-color: rgba(217,119,87,.55); background: linear-gradient(180deg, #241a15, var(--ink-3)); box-shadow: 0 20px 50px -24px rgba(217,119,87,.5); }
.fd-pc-top { font-size: 13px; color: var(--text-dim); min-height: 34px; }
.fd-pc-amt { font-size: 38px; font-weight: 900; letter-spacing: -.03em; color: var(--cream); margin: 8px 0 4px; }
.fd-pc-amt span { font-size: 15px; font-weight: 600; color: var(--text-dim); }
.fd-pc-amt.strike { color: var(--text-dim); text-decoration: line-through; text-decoration-color: rgba(217,119,87,.7); }
.fd-pc-bot { font-size: 12px; color: var(--text-dim); }
.fd-arrow { display: grid; place-items: center; color: var(--coral); }
.fd-arrow svg { width: 26px; height: 26px; }
.fd-save { display: inline-block; margin: 14px auto 0; font-weight: 700; color: var(--coral-lite); background: rgba(217,119,87,.14); border: 1px solid rgba(217,119,87,.3); padding: 8px 18px; border-radius: 999px; }
.fd-scarcity { margin: 12px auto 0; font-size: 13.5px; color: var(--coral-lite); font-weight: 600; }
.fd-scarcity strong { color: var(--coral); }
.fd-how { display: flex; gap: 14px; align-items: center; text-align: left; background: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 24px 0; font-size: 14px; color: var(--text-dim); }
.fd-how strong { color: var(--text); }
.fd-how-ic { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: rgba(217,119,87,.14); display: grid; place-items: center; }
.fd-how-ic svg { width: 20px; height: 20px; color: var(--coral); }
.fd-cta { width: 100%; }
.fd-text-link { display: block; margin: 14px auto 0; background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 14px; text-decoration: underline; }
.fd-text-link:hover { color: var(--text); }
.fd-tax { font-size: 12px; color: var(--text-dim); margin-top: 8px; }

/* Indicador de pasos */
.fd-stepper { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 auto 22px; flex-wrap: wrap; }
.fd-st { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 13px; font-weight: 600; }
.fd-st-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; border: 1.5px solid var(--line); color: var(--text-dim); transition: .15s; }
.fd-st-ic { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fd-st.now { color: var(--coral-lite); }
.fd-st.now .fd-st-n { border-color: var(--coral); color: var(--coral-lite); box-shadow: 0 0 0 3px rgba(217,119,87,.15); }
.fd-st.done { color: var(--text); }
.fd-st.done .fd-st-n { background: var(--coral); border-color: var(--coral); color: #2a1109; }
.fd-st-bar { width: 22px; height: 2px; background: var(--line); border-radius: 2px; }

/* Formulario de datos */
.fd-form { text-align: left; max-width: 470px; margin: 22px auto 6px; display: flex; flex-direction: column; gap: 14px; }
.fd-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fd-fl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-dim); }
.fd-input { background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--text); font-size: 15px; font-family: inherit; font-weight: 400; transition: .15s; }
.fd-input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(217,119,87,.14); }
.fd-input:disabled { opacity: .45; cursor: not-allowed; }
.fd-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); cursor: pointer; font-weight: 500; user-select: none; margin-top: 2px; }
.fd-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.fd-check-box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; transition: .15s; }
.fd-check-box svg { width: 13px; height: 13px; fill: none; stroke: #2a1109; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.fd-check input:checked + .fd-check-box { background: var(--coral); border-color: var(--coral); }
.fd-check input:checked + .fd-check-box svg { opacity: 1; }
.fd-check input:focus-visible + .fd-check-box { box-shadow: 0 0 0 3px rgba(217,119,87,.2); }

/* Foto */
.fd-photo-stage { position: relative; width: 260px; height: 260px; margin: 22px auto 0; border-radius: 22px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.fd-photo-stage video, .fd-photo-stage img { width: 100%; height: 100%; object-fit: cover; }
.fd-photo-stage video { transform: scaleX(-1); }
.fd-photo-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--text-dim); font-size: 14px; padding: 18px; }
.fd-photo-ctrl { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 20px; }
.fd-photo-ctrl .btn { min-width: 230px; }
.fd-ic { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; margin-right: 4px; }

/* Verificación (transcripción) */
.fd-verify-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; text-align: left; margin-top: 20px; align-items: start; }
.fd-verify-vid { width: 100%; aspect-ratio: 4/3; border-radius: 16px; background: #000; border: 1px solid var(--line); object-fit: cover; }
.fd-verify-text { display: flex; flex-direction: column; }
.fd-trans-state { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 14px; padding: 16px; background: var(--ink); border: 1px solid var(--line); border-radius: 14px; min-height: 168px; line-height: 1.45; }
.fd-spin { width: 18px; height: 18px; border: 2px solid rgba(217,119,87,.3); border-top-color: var(--coral); border-radius: 50%; animation: fd-spin .8s linear infinite; flex: none; }
@keyframes fd-spin { to { transform: rotate(360deg); } }
.fd-verify .fd-textarea { margin: 0; min-height: 168px; }

/* Grabación */
.fd-rec h2 { margin-bottom: 18px; }
.fd-rec-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; text-align: left; }
.fd-cam-wrap { position: relative; aspect-ratio: 4/3; background: #000; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.fd-cam-wrap video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.fd-cam-wrap video[controls] { transform: none; }
.fd-cam-overlay { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--text-dim); font-size: 14px; padding: 20px; }
.fd-timer { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 7px; background: rgba(0,0,0,.55); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.fd-rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); animation: pulse 1.1s infinite; }
.fd-guion { background: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.fd-guion-h { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.fd-q { margin: 0 0 14px 18px; padding: 0; }
.fd-q li { font-size: 14px; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.fd-intro { background: rgba(217,119,87,.1); border: 1px solid rgba(217,119,87,.25); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--text); font-style: italic; }
.fd-intro-label { display: block; font-style: normal; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--coral-lite); margin-bottom: 6px; }
.fd-tip { font-size: 13px; color: var(--text-dim); margin-top: 12px; }
.fd-rec-ctrl { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; }
.fd-hint { font-size: 13px; color: var(--text-dim); }
.fd-textarea { width: 100%; min-height: 150px; background: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 16px; color: var(--text); font-size: 15px; font-family: inherit; resize: vertical; margin: 16px 0 20px; }
.fd-textarea:focus { outline: none; border-color: var(--coral); }

/* Gracias */
.fd-done .fd-check { width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(111,168,104,.18); }
.fd-done .fd-check svg { width: 34px; height: 34px; color: #8fce86; stroke-width: 2.5; }

@media (max-width: 700px) {
  .fd-modal { padding: 26px 20px; }
  .fd-compare { flex-direction: column; align-items: center; }
  .fd-arrow { transform: rotate(90deg); }
  .fd-rec-grid { grid-template-columns: 1fr; }
  .fd-verify-grid { grid-template-columns: 1fr; }
  .fd-row2 { grid-template-columns: 1fr; }
  .fd-st-l { display: none; }
  .fd-st-bar { width: 14px; }
}

/* ===================== Cuentas: modal de acceso ===================== */
.auth-overlay {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center;
  padding: 20px; background: rgba(8, 6, 5, .8); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  opacity: 0; transition: opacity .18s ease;
}
.auth-overlay.show { opacity: 1; }
.auth-card {
  position: relative; width: 100%; max-width: 408px; max-height: 92vh; overflow-y: auto; isolation: isolate;
  background-color: #221d19; background-image: linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line);
  border-radius: 20px; padding: 34px 30px 26px; text-align: center;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .7); transform: translateY(8px) scale(.99); transition: transform .2s ease;
}
.auth-overlay.show .auth-card { transform: none; }
.auth-x {
  position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border-radius: 9px;
  border: none; background: transparent; color: var(--text-dim); font-size: 24px; line-height: 1; cursor: pointer;
}
.auth-x:hover { background: rgba(245, 241, 232, .07); color: var(--text); }
.auth-logo { width: 46px; height: 46px; border-radius: 13px; box-shadow: 0 6px 18px -4px rgba(0, 0, 0, .5); }
.auth-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--cream); margin: 14px 0 6px; }
.auth-sub { font-size: 14px; color: var(--text-dim); line-height: 1.5; margin: 0 0 20px; }
.auth-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--cream); color: #1f1b18;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: transform .12s ease, filter .12s ease;
}
.auth-google:hover { transform: translateY(-1px); filter: brightness(.97); }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--text-dim); font-size: 12px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field span { font-size: 12.5px; font-weight: 600; color: var(--text-dim); }
.auth-field input {
  width: 100%; padding: 12px 13px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--ink); color: var(--text); font-size: 15px; font-family: inherit; transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-field input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(217, 119, 87, .18); }
.auth-field input::placeholder { color: #6f675f; }
.auth-error { font-size: 13px; color: #f0a08a; background: rgba(217, 119, 87, .12); border: 1px solid rgba(217, 119, 87, .3); border-radius: 10px; padding: 9px 11px; }
.auth-submit { width: 100%; margin-top: 4px; padding: 12px; font-size: 15px; }
.auth-submit:disabled { opacity: .7; cursor: default; }
.auth-switch { font-size: 13.5px; color: var(--text-dim); margin: 18px 0 0; }
.auth-switch button { background: none; border: none; color: var(--coral-lite); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.auth-switch button:hover { text-decoration: underline; }
.auth-legal { font-size: 11.5px; color: #6f675f; margin: 14px 0 0; line-height: 1.5; }
.auth-legal a { color: #8a8178; }
/* Onboarding */
.auth-card.welcome { max-width: 440px; text-align: center; }
.welcome-list { list-style: none; margin: 18px 0 22px; padding: 0; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.welcome-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 14px; color: var(--text-dim); line-height: 1.45; }
.welcome-list strong { color: var(--cream); }
.wl-ic { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 700;
  color: var(--coral-lite); background: rgba(217, 119, 87, .16); border: 1px solid rgba(217, 119, 87, .3); }
.welcome-dl { width: 100%; margin-bottom: 10px; font-size: 13.5px; }
.welcome-go { width: 100%; }
/* Perfil: avatar con imagen de Google */
.avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }

/* Toggle "Mejora con IA" en los controles de dictado */
.ai-toggle { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; margin-left: auto; }
.ai-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.ait-track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--ink-3); border: 1px solid var(--line); transition: background .18s ease, border-color .18s ease; }
.ait-thumb { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-dim); transition: transform .18s ease, background .18s ease; }
.ai-toggle input:checked + .ait-track { background: rgba(217, 119, 87, .28); border-color: var(--coral); }
.ai-toggle input:checked + .ait-track .ait-thumb { transform: translateX(16px); background: var(--coral-lite); }
.ai-toggle input:focus-visible + .ait-track { box-shadow: 0 0 0 3px rgba(217, 119, 87, .25); }
.ait-label { font-size: 13.5px; font-weight: 600; color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; }
.ai-toggle input:checked ~ .ait-label { color: var(--cream); }
.ait-pro { font-size: 10px; font-weight: 700; letter-spacing: .03em; color: var(--coral-lite); background: rgba(217, 119, 87, .16); border: 1px solid rgba(217, 119, 87, .3); border-radius: 5px; padding: 1px 5px; }

/* ===================== Referidos ===================== */
.nav-refer .refer-badge { margin-left: auto; font-size: 10px; font-weight: 700; color: #2a1109; background: linear-gradient(180deg, var(--coral-lite), var(--coral)); border-radius: 6px; padding: 2px 6px; letter-spacing: .02em; }
.refer-hero { display: flex; gap: 24px; justify-content: space-between; align-items: stretch; background: linear-gradient(150deg, #2a1a13, var(--ink-3) 65%); border: 1px solid rgba(217, 119, 87, .32); border-radius: 20px; padding: 28px 30px; margin-bottom: 20px; }
.refer-hero-txt { max-width: 60%; }
.refer-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--coral-lite); }
.refer-hero h1 { font-family: 'Bricolage Grotesque', 'Inter', sans-serif; font-size: 30px; line-height: 1.1; color: var(--cream); margin: 10px 0 10px; letter-spacing: -.02em; }
.refer-acc { color: var(--coral-lite); }
.refer-hero p { color: var(--text-dim); font-size: 14.5px; line-height: 1.55; margin: 0; }
.refer-hero strong { color: var(--cream); }
.refer-earn { flex: none; min-width: 170px; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; text-align: right; padding-left: 22px; border-left: 1px solid var(--line); }
.refer-earn-label { font-size: 12px; color: var(--text-dim); }
.refer-earn-val { font-family: 'Bricolage Grotesque', 'Inter', sans-serif; font-size: 38px; font-weight: 800; color: var(--coral-lite); letter-spacing: -.02em; line-height: 1.1; }
.refer-earn-sub { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.refer-note { display: flex; align-items: flex-start; gap: 11px; background: rgba(217, 119, 87, .1); border: 1px solid rgba(217, 119, 87, .26); border-radius: 13px; padding: 13px 16px; margin-bottom: 18px; }
.refer-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: var(--coral-lite); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.refer-note span { font-size: 13px; line-height: 1.5; color: var(--text-dim); }
.refer-note strong { color: var(--cream); font-weight: 600; }
.refer-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.refer-step { display: flex; gap: 12px; background: var(--ink-3); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.refer-step-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--coral-lite); background: rgba(217, 119, 87, .16); }
.refer-step strong { display: block; color: var(--cream); font-size: 14px; margin-bottom: 3px; }
.refer-step p { margin: 0; color: var(--text-dim); font-size: 12.5px; line-height: 1.45; }
.refer-step strong + p strong, .refer-step p strong { color: var(--coral-lite); }
@media (max-width: 760px) { .refer-steps { grid-template-columns: 1fr; } }
.refer-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.refer-stat { background: var(--ink-3); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: center; }
.refer-stat strong { display: block; font-family: 'Bricolage Grotesque', 'Inter', sans-serif; font-size: 26px; color: var(--cream); }
.refer-stat span { font-size: 12.5px; color: var(--text-dim); }
.refer-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin-bottom: 16px; }
.refer-card h3 { margin: 0 0 4px; font-size: 16px; color: var(--cream); }
.refer-sub { margin: 0 0 14px; font-size: 13px; color: var(--text-dim); }
.refer-link { display: flex; gap: 10px; margin-top: 12px; }
.refer-link input { flex: 1; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line); background: var(--ink); color: var(--text); font-size: 14px; font-family: inherit; }
.refer-share { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.refer-form { display: flex; gap: 10px; flex-wrap: wrap; }
.refer-form input { flex: 1; min-width: 160px; padding: 12px 13px; border-radius: 11px; border: 1px solid var(--line); background: var(--ink); color: var(--text); font-size: 14.5px; font-family: inherit; }
.refer-form input:focus, .refer-link input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(217, 119, 87, .18); }
.refer-list { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.refer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(245, 241, 232, .06); }
.refer-row:last-child { border-bottom: none; }
.refer-who { display: flex; align-items: center; gap: 12px; }
.refer-who strong { font-size: 14px; color: var(--text); }
.refer-who small { display: block; color: var(--text-dim); font-size: 12px; }
.refer-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--coral-lite); background: rgba(217, 119, 87, .16); border: 1px solid rgba(217, 119, 87, .3); }
.refer-tag { font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; color: var(--text-dim); background: rgba(245, 241, 232, .06); white-space: nowrap; }
.refer-tag.signed_up { color: var(--coral-lite); background: rgba(217, 119, 87, .14); }
.refer-tag.pro { color: #2a1109; background: linear-gradient(180deg, var(--coral-lite), var(--coral)); }
@media (max-width: 720px) {
  .refer-hero { flex-direction: column; }
  .refer-hero-txt { max-width: 100%; }
  .refer-earn { align-items: flex-start; text-align: left; border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 16px; }
  .refer-stats { grid-template-columns: 1fr 1fr; }
}

/* ===================== Cuenta / Ajustes ===================== */
.cuenta { max-width: 720px; }
.acct-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin-bottom: 16px; }
.acct-card h3 { margin: 0 0 4px; font-size: 16px; color: var(--cream); }
.acct-sub { font-size: 13px; color: var(--text-dim); margin: 0 0 14px; }
.acct-head-card { display: flex; align-items: center; gap: 16px; }
.acct-av { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 700; color: var(--coral-lite); background: rgba(217, 119, 87, .16); border: 1px solid rgba(217, 119, 87, .3); overflow: hidden; }
.acct-av img { width: 100%; height: 100%; object-fit: cover; }
.acct-id { flex: 1; }
.acct-name { font-size: 16px; font-weight: 700; color: var(--cream); }
.acct-email { font-size: 13px; color: var(--text-dim); }
.acct-plan { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; color: var(--text-dim); background: rgba(245, 241, 232, .06); white-space: nowrap; }
.acct-plan.pro, .acct-plan.beta { color: #2a1109; background: linear-gradient(180deg, var(--coral-lite), var(--coral)); }
.acct-field { display: block; margin-bottom: 12px; }
.acct-field span { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; }
.acct-field input { width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line); background: var(--ink); color: var(--text); font-size: 14.5px; font-family: inherit; }
.acct-field input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(217, 119, 87, .18); }
.acct-field input:disabled { color: var(--text-dim); opacity: .8; }
.acct-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; }
.acct-row + .acct-row { border-top: 1px solid rgba(245, 241, 232, .06); }
.acct-row strong { font-size: 14.5px; color: var(--text); }
.acct-refer { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; text-decoration: none; background: linear-gradient(150deg, #2a1a13, var(--ink-2) 70%); border-color: rgba(217, 119, 87, .32); }
.acct-refer h3 { margin: 0 0 2px; }
.acct-refer:hover { border-color: var(--coral); }
.acct-danger { border-color: rgba(217, 119, 87, .25); }
.btn-danger { color: #ffd9cf; background: rgba(220, 80, 60, .16); border: 1px solid rgba(220, 80, 60, .5); }
.btn-danger:hover { background: rgba(220, 80, 60, .26); }

/* ===================== Grabar para transcribir ===================== */
.tr-recsep { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: var(--text-dim); font-size: 12.5px; }
.tr-recsep::before, .tr-recsep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.tr-rec { display: flex; align-items: center; gap: 16px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; transition: border-color .2s, box-shadow .2s; }
.tr-rec.rec { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(217, 119, 87, .12); }
.tr-rec-btn { flex: none; width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer; display: grid; place-items: center; color: #2a1109; background: linear-gradient(180deg, var(--coral-lite), var(--coral) 60%, var(--coral-deep)); transition: transform .12s; }
.tr-rec-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tr-rec-btn:hover { transform: translateY(-1px); }
.tr-rec-btn.rec { background: #d94b3c; color: #fff; animation: trpulse 1.3s infinite; }
@keyframes trpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 75, 60, .5); } 50% { box-shadow: 0 0 0 9px rgba(217, 75, 60, 0); } }
.tr-rec-info { flex: 1; }
.tr-rec-title { font-size: 15px; font-weight: 600; color: var(--cream); }
.tr-rec-sub { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.tr-rec-time { font-family: 'Bricolage Grotesque', monospace; font-size: 20px; font-weight: 700; color: var(--coral-lite); font-variant-numeric: tabular-nums; }
.tr-url { display: flex; gap: 10px; }
.tr-url input { flex: 1; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--ink-2); color: var(--text); font-size: 14.5px; font-family: inherit; }
.tr-url input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(217, 119, 87, .18); }
.tr-url-hint { font-size: 12.5px; color: var(--text-dim); margin: 8px 2px 0; }
.tr-url-hint code { background: rgba(217, 119, 87, .14); color: var(--coral-lite); border-radius: 5px; padding: 1px 6px; }

/* ---------- Buscador de listas ---------- */
.view-search { position: relative; margin-bottom: 16px; }
.view-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; fill: none; stroke: var(--text-dim); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.view-search input { width: 100%; padding: 11px 14px 11px 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--ink-2); color: var(--text); font-size: 14.5px; font-family: inherit; }
.view-search input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(217, 119, 87, .18); }

/* ===================== Diccionario · Snippets · Estilo ===================== */
.perso { max-width: 720px; }
.perso .view-head code { font-size: 12px; background: rgba(217, 119, 87, .14); color: var(--coral-lite); border-radius: 5px; padding: 1px 6px; }
.perso-actions { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.perso-list { display: flex; flex-direction: column; gap: 8px; }
.perso-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; }
.perso-row-main { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.perso-row-main strong { color: var(--cream); font-weight: 600; }
.perso-arrow { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--text-dim); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.perso-fix s { color: var(--text-dim); text-decoration-color: var(--coral); }
.perso-fix strong { color: var(--coral-lite); }
.perso-tag { font-size: 11px; font-weight: 600; color: var(--text-dim); background: rgba(245, 241, 232, .06); border-radius: 6px; padding: 2px 8px; }
.perso-trigger { font-weight: 700; color: var(--cream); background: rgba(217, 119, 87, .14); border: 1px solid rgba(217, 119, 87, .26); border-radius: 7px; padding: 3px 9px; font-size: 13.5px; }
.perso-content { color: var(--text-dim); font-size: 13.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.perso-row-acts { display: flex; gap: 4px; flex: none; }
.perso-row-acts .icon-btn { width: 32px; height: 32px; border-radius: 9px; border: none; background: transparent; color: var(--text-dim); cursor: pointer; display: grid; place-items: center; }
.perso-row-acts .icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.perso-row-acts .icon-btn:hover { background: rgba(245, 241, 232, .07); color: var(--text); }
.perso-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 22px; }
.perso-preset { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--ink-2); color: var(--text-dim); cursor: pointer; font-family: inherit; text-align: left; transition: border-color .15s, background .15s; }
.perso-preset:hover { border-color: rgba(217,119,87,.4); }
.perso-preset-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.perso-preset-txt strong { color: var(--text); font-size: 14.5px; font-weight: 600; }
.perso-preset-txt small { color: var(--text-dim); font-size: 12.5px; line-height: 1.4; }
.perso-preset-check { flex: none; margin-top: 2px; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--text-dim); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.perso-preset.on { border-color: var(--coral); background: rgba(217,119,87,.08); }
.perso-preset.on .perso-preset-txt strong { color: var(--cream); }
.perso-preset.on .perso-preset-check { background: var(--coral); border-color: var(--coral); }
.perso-preset.on .perso-preset-check::after { content: ''; width: 8px; height: 4px; border-left: 2px solid #2a1109; border-bottom: 2px solid #2a1109; transform: rotate(-45deg) translateY(-1px); }

/* ---------- Asistente IA: resultado en modal ---------- */
.ai-result { position: relative; }
.ai-result-h { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.ai-result-ic { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; background: rgba(217, 119, 87, .16); }
.ai-result-ic svg { width: 19px; height: 19px; fill: var(--coral-lite); }
.ai-result-body { max-height: 52vh; overflow-y: auto; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px; font-size: 15px; line-height: 1.62; color: var(--text); }
.ai-result-close { position: absolute; top: 12px; right: 12px; background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 5px; border-radius: 8px; display: grid; place-items: center; }
.ai-result-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ai-result-close:hover { color: var(--text); background: rgba(245, 241, 232, .08); }
.ai-result-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.ai-result-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.tx-opt.loading { opacity: .55; pointer-events: none; }
.tx-opt.loading svg { animation: aipulse 1s ease-in-out infinite; }
@keyframes aipulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.link-inline { background: none; border: none; padding: 0; font: inherit; color: var(--coral-lite); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-inline:hover { color: var(--coral); }
.tr-soon { text-align: center; color: var(--text-dim); font-size: 12.5px; margin-top: 18px; }

/* ---------- Carpetas dentro de Biblioteca / Prompts ---------- */
.lib-grid { display: grid; grid-template-columns: 1fr 250px; gap: 24px; align-items: start; }
.lib-main { min-width: 0; }
.lib-current { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); margin-bottom: 12px; }
.lib-current .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.lib-rail { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 3px; }
.lib-newfolder { width: 100%; justify-content: center; gap: 7px; margin-bottom: 8px; }
.lib-newfolder svg { width: 15px; height: 15px; }
.lib-rail-head { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); padding: 4px 10px 6px; }
.folder-tab { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border-radius: 10px; border: none; background: none; color: var(--text-dim); cursor: pointer; font-family: inherit; font-size: 14px; text-align: left; transition: background .15s, color .15s; }
.folder-tab:hover { background: rgba(245, 241, 232, .05); color: var(--text); }
.folder-tab.active { background: rgba(217, 119, 87, .16); color: var(--coral-lite); }
.folder-tab .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.folder-tab-ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.folder-tab-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder-count { font-size: 12px; color: var(--text-dim); flex: none; }
.folder-tab.active .folder-count { color: var(--coral-lite); }
.folder-tab .folder-more { flex: none; background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 2px; border-radius: 6px; opacity: 0; display: grid; place-items: center; transition: opacity .15s, background .15s; }
.folder-tab:hover .folder-more { opacity: 1; }
.folder-tab .folder-more:hover { background: rgba(245, 241, 232, .1); color: var(--text); }
@media (max-width: 760px) {
  .lib-grid { grid-template-columns: 1fr; }
  .lib-rail { position: static; order: -1; }
}

/* ---------- Aviso "dictado en tiempo real → app escritorio" ---------- */
.rt-note { display: flex; align-items: center; gap: 13px; width: 100%; max-width: 680px; margin: 26px auto 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--ink-2); color: var(--text-dim); cursor: pointer; text-align: left; font-family: inherit; font-size: 13.5px; line-height: 1.5; transition: border-color .15s, background .15s; }
.rt-note:hover { border-color: rgba(217, 119, 87, .4); background: var(--ink-3); }
.rt-note > svg:first-child { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--coral-lite); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rt-note span { flex: 1; }
.rt-note strong { color: var(--text); font-weight: 600; }
.rt-note .kbd { vertical-align: 0; }
.rt-note-arrow { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--text-dim); stroke-width: 2; stroke-linecap: round; }

/* ---------- Modal yt-dlp: filas de comando ---------- */
.ytdlp-pop .dl-pop-step { margin-bottom: 14px; }
.cmd-row { display: flex; align-items: center; gap: 8px; margin: 8px 0 2px; background: var(--ink); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.cmd-row code { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--coral-lite); white-space: nowrap; overflow-x: auto; }
.cmd-copy { flex: none; background: none; border: none; cursor: pointer; padding: 4px; border-radius: 7px; color: var(--text-dim); display: grid; place-items: center; transition: background .15s, color .15s; }
.cmd-copy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.cmd-copy:hover { background: rgba(245, 241, 232, .08); color: var(--text); }
.cmd-copy.copied { color: #6cc070; }
.ytdlp-alt { display: block; margin-top: 8px; color: var(--text-dim); font-size: 12.5px; }
code.ic { background: rgba(245, 241, 232, .08); border-radius: 5px; padding: 1px 6px; font-family: ui-monospace, monospace; font-size: 12.5px; color: var(--coral-lite); }

/* ---------- Disparador de búsqueda en la barra lateral ---------- */
.side-search { display: flex; align-items: center; gap: 9px; width: 100%; margin: 4px 0 10px; padding: 9px 11px; border-radius: 11px; border: 1px solid var(--line); background: var(--ink-3); color: var(--text-dim); cursor: pointer; font-family: inherit; font-size: 14px; transition: border-color .15s, color .15s; }
.side-search:hover { border-color: rgba(217, 119, 87, .4); color: var(--text); }
.side-search > svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.side-search > span:first-of-type { flex: 1; text-align: left; }
.side-search-kbd { display: inline-flex; gap: 3px; }
.side-search-kbd .kbd { min-width: 17px; height: 17px; font-size: 11px; }

/* ---------- Paleta de comandos (⌘K) ---------- */
.cmdk { position: fixed; inset: 0; z-index: 4000; background: rgba(8, 6, 5, .66); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); display: grid; place-items: start center; padding: 12vh 18px 18px; opacity: 0; transition: opacity .15s ease; }
.cmdk.in { opacity: 1; }
.cmdk[hidden] { display: none; }
.cmdk-box { width: 100%; max-width: 580px; background: var(--ink-3); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 90px -25px rgba(0, 0, 0, .8), 0 0 0 1px rgba(245, 241, 232, .03); overflow: hidden; transform: translateY(-8px) scale(.98); transition: transform .18s cubic-bezier(.2, .9, .3, 1); }
.cmdk.in .cmdk-box { transform: translateY(0) scale(1); }
.cmdk-search { display: flex; align-items: center; gap: 11px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.cmdk-search > svg { width: 19px; height: 19px; flex: none; fill: none; stroke: var(--text-dim); stroke-width: 2; stroke-linecap: round; }
.cmdk-search input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 16px; font-family: inherit; }
.cmdk-search input::placeholder { color: var(--text-dim); }
.cmdk-esc { font-size: 11px; color: var(--text-dim); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; letter-spacing: .04em; flex: none; }
.cmdk-list { max-height: 52vh; overflow-y: auto; padding: 7px; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; cursor: pointer; }
.cmdk-item > svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--text-dim); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cmdk-item.on { background: rgba(217, 119, 87, .16); }
.cmdk-item.on > svg { stroke: var(--coral-lite); }
.cmdk-label { flex: 1; color: var(--text); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-item.on .cmdk-label { color: var(--cream); }
.cmdk-sub { font-size: 11px; color: var(--text-dim); flex: none; text-transform: uppercase; letter-spacing: .05em; }
.cmdk-empty { padding: 26px 16px; text-align: center; color: var(--text-dim); font-size: 14px; }
.cmdk-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .15); }
.cmdk-foot span { font-size: 12px; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.cmdk-key { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 21px; padding: 0 6px; border-radius: 6px; background: rgba(245, 241, 232, .12); border: 1px solid rgba(245, 241, 232, .22); color: var(--cream); font-size: 11px; font-weight: 600; font-family: inherit; }
.cmdk-key svg { width: 13px; height: 13px; fill: none; stroke: var(--cream); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cmdk-key-esc { letter-spacing: .03em; }

/* ---------- Selector de idioma ES/EN (sidebar) ---------- */
.langsw { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(245, 241, 232, .06); border: 1px solid rgba(245, 241, 232, .1); }
.lsw-opt { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px;
  border: 0; background: transparent; color: var(--muted, #a79f95); font: 600 12px/1 inherit; cursor: pointer;
  transition: background .15s, color .15s; }
.lsw-opt:hover { color: var(--cream, #f5f1e8); }
.lsw-opt.on { background: rgba(217, 119, 87, .18); color: var(--coral-lite, #e99c7e); }
.lsw-flag { width: 19px; height: 13px; border-radius: 3px; overflow: hidden; display: inline-block; flex: none; }
.lsw-flag svg { width: 100%; height: 100%; display: block; }

/* ============================================================
   Transcribir: lanzador + modal "Nueva transcripción"
   ============================================================ */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Lanzador de la vista */
.ntx-launch { display: flex; align-items: center; gap: 18px; width: 100%; text-align: left; cursor: pointer;
  background: linear-gradient(120deg, rgba(217,119,87,.12), rgba(217,119,87,.04) 60%, transparent), var(--ink-2);
  border: 1.5px dashed rgba(217,119,87,.4); border-radius: 20px; padding: 26px 26px; font-family: inherit;
  transition: border-color .18s, background .18s, transform .12s, box-shadow .2s; }
.ntx-launch:hover, .ntx-launch.over { border-color: var(--coral); box-shadow: 0 16px 40px -22px rgba(217,119,87,.7); transform: translateY(-1px); }
.ntx-launch.over { background: rgba(217,119,87,.12); border-style: solid; }
.ntx-launch-ic { flex: none; width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: rgba(217,119,87,.16); border: 1px solid rgba(217,119,87,.3); }
.ntx-launch-ic svg { width: 26px; height: 26px; fill: none; stroke: var(--coral-lite); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ntx-launch-main { flex: 1; }
.ntx-launch-main strong { display: block; font-size: 18px; font-weight: 700; color: var(--cream); }
.ntx-launch-main span { display: block; font-size: 13.5px; color: var(--text-dim); margin-top: 3px; line-height: 1.45; }
.ntx-launch-cta { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700;
  color: #2a1109; background: linear-gradient(180deg, var(--coral-lite), var(--coral) 60%, var(--coral-deep)); border-radius: 999px; padding: 9px 16px; }
.ntx-launch-cta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.ntx-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.ntx-quick-card { display: flex; align-items: center; gap: 13px; text-align: left; cursor: pointer; font-family: inherit;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 15px; padding: 15px 16px; transition: border-color .15s, background .15s; }
.ntx-quick-card:hover { border-color: rgba(217,119,87,.4); background: var(--ink-3); }
.ntx-quick-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(217,119,87,.14); }
.ntx-quick-ic svg { width: 18px; height: 18px; fill: none; stroke: var(--coral-lite); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ntx-quick-txt strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--cream); }
.ntx-quick-txt i { display: block; font-style: normal; font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }

/* Modal */
.ntx-overlay { align-items: flex-start; overflow-y: auto; }
.ntx-overlay .ntx-modal { width: min(560px, 100%); max-width: 100%; text-align: left; padding: 26px 26px 24px; position: relative; margin: max(24px, 5vh) 0; }
.ntx-x { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(245,241,232,.06); border: 1px solid var(--line); color: var(--text-dim); cursor: pointer; transition: background .15s, color .15s; }
.ntx-x:hover { background: rgba(245,241,232,.12); color: var(--cream); }
.ntx-x svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.ntx-head { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; padding-right: 40px; }
.ntx-head-ic { width: 42px; height: 42px; border-radius: 11px; flex: none; }
.ntx-title { font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--cream); }
.ntx-sub { font-size: 13px; color: var(--text-dim); margin-top: 2px; }

.ntx-tabs { display: flex; gap: 4px; background: var(--ink); border: 1px solid var(--line); border-radius: 13px; padding: 4px; margin-bottom: 16px; }
.ntx-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 8px; border-radius: 9px;
  background: none; border: none; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-dim); transition: background .15s, color .15s; }
.ntx-tab svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ntx-tab:hover { color: var(--cream); }
.ntx-tab.on { background: rgba(217,119,87,.16); color: var(--coral-lite); }

.ntx-source { margin-bottom: 18px; }
.ntx-drop { display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--line); border-radius: 15px; padding: 30px 20px; background: var(--ink); transition: border-color .18s, background .18s; }
.ntx-drop:hover, .ntx-drop.over { border-color: var(--coral); background: rgba(217,119,87,.06); }
.ntx-drop-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(217,119,87,.14); margin-bottom: 12px; }
.ntx-drop-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--coral-lite); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ntx-drop strong { font-size: 15px; font-weight: 600; color: var(--cream); }
.ntx-drop-sub { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; }
.ntx-drop-sm { flex-direction: row; justify-content: center; padding: 11px; font-size: 13.5px; font-weight: 600; color: var(--coral-lite); gap: 6px; margin-top: 10px; }
.ntx-file { display: flex; align-items: center; gap: 11px; background: var(--ink); border: 1px solid rgba(217,119,87,.35); border-radius: 13px; padding: 13px 14px; }
.ntx-file-ic { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(217,119,87,.16); }
.ntx-file-ic svg { width: 17px; height: 17px; fill: none; stroke: var(--coral-lite); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ntx-file-name { flex: 1; font-size: 14px; font-weight: 600; color: var(--cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntx-file-x { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: none; border: none; color: var(--text-dim); cursor: pointer; transition: background .15s, color .15s; }
.ntx-file-x:hover { background: rgba(245,241,232,.1); color: var(--cream); }
.ntx-file-x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.ntx-link { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--ink); border: 1px solid var(--line); border-radius: 15px; padding: 20px 18px; }
.ntx-link-logos { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; justify-content: center; }
.ntx-link-logo { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(245,241,232,.05); border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.ntx-link-logo:hover { transform: translateY(-2px); border-color: rgba(217,119,87,.4); }
.ntx-link-logo svg { width: 19px; height: 19px; display: block; stroke: none; }
.ntx-link-desc { font-size: 13px; color: var(--text-dim); line-height: 1.5; margin-bottom: 14px; max-width: 430px; }
.ntx-url { width: 100%; padding: 13px 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--ink-2); color: var(--text); font-size: 14.5px; font-family: inherit; }
.ntx-url:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(217,119,87,.18); }
.ntx-url-hint { font-size: 12.5px; color: var(--text-dim); margin: 9px 2px 0; line-height: 1.45; }
.ntx-rec { display: flex; align-items: center; gap: 16px; background: var(--ink); border: 1px solid var(--line); border-radius: 15px; padding: 16px 18px; transition: border-color .2s, box-shadow .2s; }
.ntx-rec.on { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(217,119,87,.12); }

/* Opciones */
.ntx-opts { border-top: 1px solid var(--line); padding-top: 16px; }
.ntx-opt-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--coral-lite); font-weight: 800; margin-bottom: 9px; }
.ntx-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.ntx-mode { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; cursor: pointer; font-family: inherit;
  background: var(--ink); border: 1.5px solid var(--line); border-radius: 13px; padding: 13px 8px 11px; transition: border-color .15s, background .15s; }
.ntx-mode:hover { border-color: rgba(217,119,87,.4); }
.ntx-mode.on { border-color: var(--coral); background: rgba(217,119,87,.1); }
.ntx-mode-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(217,119,87,.14); margin-bottom: 4px; }
.ntx-mode-ic svg { width: 17px; height: 17px; fill: var(--coral-lite); stroke: var(--coral-lite); }
.ntx-mode strong { font-size: 13.5px; font-weight: 700; color: var(--cream); }
.ntx-mode.on strong { color: var(--coral-lite); }
.ntx-mode i { font-style: normal; font-size: 11px; color: var(--text-dim); line-height: 1.3; }
.ntx-opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.ntx-field { display: flex; flex-direction: column; gap: 6px; }
.ntx-field > span { font-size: 12.5px; font-weight: 600; color: var(--text-dim); }
.ntx-field .hxsel, .ntx-field .hxsel-trigger { width: 100%; }
.ntx-ai { margin-left: 0; }
.ntx-go { width: 100%; margin-top: 4px; padding: 13px; font-size: 15px; }

/* Progreso */
.ntx-modal-prog { text-align: center; }
.ntx-prog { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 4px; }
.ntx-prog-spin { margin-bottom: 2px; }
.ntx-prog-spin .fd-spin { width: 34px; height: 34px; border-width: 3px; }
.ntx-prog-name { font-size: 16px; font-weight: 700; color: var(--cream); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntx-prog-bar { width: 100%; height: 8px; border-radius: 99px; background: rgba(245,241,232,.08); overflow: hidden; }
.ntx-prog-bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--coral-lite), var(--coral)); transition: width .25s ease; }
.ntx-prog-bar.ind > i { width: 40% !important; animation: ntx-ind 1.1s ease-in-out infinite; }
@keyframes ntx-ind { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }
.ntx-prog-stage { font-size: 13.5px; color: var(--text-dim); min-height: 18px; }
.ntx-prog-cancel { margin-top: 4px; }
.ntx-prog-err .ntx-err-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(217,75,60,.14); border: 1px solid rgba(217,75,60,.4); }
.ntx-prog-err .ntx-err-ic svg { width: 24px; height: 24px; fill: none; stroke: #e98274; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 560px) {
  .ntx-quick { grid-template-columns: 1fr; }
  .ntx-opt-grid { grid-template-columns: 1fr; }
  .ntx-modes { grid-template-columns: 1fr; }
  .ntx-mode { flex-direction: row; justify-content: flex-start; text-align: left; gap: 10px; }
  .ntx-mode-ic { margin-bottom: 0; }
}

/* ============================================================
   Panel lateral de transcripción (tarjetas de marca) + Descargar
   ============================================================ */
.tx-side { gap: 12px; background: none; border: none; padding: 0; }
.tx-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 8px; }
.tx-card-h { display: flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--coral-lite); font-weight: 800; padding: 9px 10px 7px; }
.tx-card-pro { margin-left: auto; font-size: 9.5px; font-weight: 800; letter-spacing: .03em; color: var(--coral-lite);
  background: rgba(217,119,87,.16); border: 1px solid rgba(217,119,87,.3); border-radius: 5px; padding: 1px 6px; }
.tx-dl { display: flex; align-items: center; gap: 12px; width: 100%; cursor: pointer; font-family: inherit; text-align: left;
  background: linear-gradient(120deg, rgba(217,119,87,.16), rgba(217,119,87,.05)); border: 1px solid rgba(217,119,87,.34);
  border-radius: 12px; padding: 11px 13px; color: var(--cream); transition: border-color .15s, background .15s; }
.tx-dl:hover { border-color: var(--coral); background: rgba(217,119,87,.2); }
.tx-dl[aria-expanded="true"] { border-color: var(--coral); }
.tx-dl-ic { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(217,119,87,.2); }
.tx-dl-ic svg { width: 18px; height: 18px; fill: none; stroke: var(--coral-lite); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tx-dl-txt { flex: 1; display: flex; flex-direction: column; font-size: 14.5px; font-weight: 700; line-height: 1.2; }
.tx-dl-txt i { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--text-dim); margin-top: 2px; }
.tx-dl-caret { width: 16px; height: 16px; flex: none; color: var(--text-dim); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.tx-dl[aria-expanded="true"] .tx-dl-caret { transform: rotate(180deg); color: var(--coral); }

.tx-export-menu { position: fixed; z-index: 1400; background: var(--ink-3); border: 1px solid var(--line); border-radius: 14px; padding: 6px;
  box-shadow: 0 20px 56px -14px rgba(0,0,0,.66), 0 0 0 1px rgba(0,0,0,.25); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top center; transition: opacity .15s ease, transform .15s ease; }
.tx-export-menu.in { opacity: 1; transform: translateY(0) scale(1); }
.tx-export-opt { display: flex; align-items: center; gap: 11px; width: 100%; background: none; border: none; color: var(--text);
  font-family: inherit; font-size: 14px; text-align: left; padding: 9px 11px; border-radius: 9px; cursor: pointer; transition: background .12s, color .12s; }
.tx-export-opt svg { width: 18px; height: 18px; flex: none; color: var(--text-dim); }
.tx-export-opt:hover { background: rgba(217,119,87,.14); color: var(--coral-lite); }
.tx-export-opt:hover svg { color: var(--coral-lite); }

/* ============================================================
   Pantalla de activación (modo escritorio): pega tu clave
   ============================================================ */
.act-screen { position: fixed; inset: 0; z-index: 4000; display: grid; place-items: center; padding: 24px; overflow: hidden;
  background: radial-gradient(130% 110% at 50% -10%, rgba(217,119,87,.14), transparent 60%), var(--ink);
  opacity: 0; transition: opacity .22s; }
.act-screen.in { opacity: 1; }
.act-beam { position: absolute; top: -40%; left: 50%; width: 140vw; height: 60vh; transform: translateX(-50%) rotate(8deg); pointer-events: none;
  background: radial-gradient(closest-side, rgba(217,119,87,.16), transparent 70%); filter: blur(20px); animation: act-float 9s ease-in-out infinite; }
@keyframes act-float { 0%, 100% { transform: translateX(-50%) rotate(8deg) translateY(0); opacity: .8; } 50% { transform: translateX(-50%) rotate(8deg) translateY(24px); opacity: 1; } }
.act-card { position: relative; width: min(440px, 100%); text-align: center; padding: 38px 32px 30px;
  background: linear-gradient(180deg, var(--ink-2), var(--ink-3)); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 30px 90px -28px rgba(0,0,0,.8), 0 0 0 1px rgba(217,119,87,.08); transform: translateY(12px) scale(.98); transition: transform .22s; }
.act-screen.in .act-card { transform: none; }
.act-logo { width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 16px; display: block; box-shadow: 0 12px 30px -10px rgba(217,119,87,.6); }
.act-title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--cream); }
.act-sub { font-size: 14.5px; color: var(--text-dim); line-height: 1.55; margin: 8px auto 22px; max-width: 360px; }
.act-legal { font-size: 12px; color: var(--text-dim); opacity: .8; margin: 14px auto 0; max-width: 340px; line-height: 1.5; }
.act-form { display: flex; flex-direction: column; gap: 11px; }
.act-input { width: 100%; padding: 14px 16px; border-radius: 13px; border: 1px solid var(--line); background: var(--ink); color: var(--cream);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 15px; font-weight: 600; letter-spacing: .5px; text-align: center; }
.act-input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(217,119,87,.2); }
.act-err { color: #ef9a86; font-size: 13.5px; background: rgba(217,75,60,.1); border: 1px solid rgba(217,75,60,.3); border-radius: 9px; padding: 9px 12px; }
.act-go { width: 100%; margin-top: 3px; padding: 13px; font-size: 15px; }
.act-alt { margin-top: 18px; font-size: 13.5px; color: var(--text-dim); }
.act-getlink { background: none; border: none; color: var(--coral-lite); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; margin-left: 5px; }
.act-getlink:hover { color: var(--coral); }
.act-issue { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.act-issue .act-input { font-family: inherit; font-weight: 500; letter-spacing: 0; text-align: left; font-size: 14.5px; padding: 12px 14px; }
.act-issue-go { width: 100%; }
.act-issue-msg { font-size: 13px; color: var(--coral-lite); }
.act-issue-msg.err { color: #ef9a86; }
