/* Sonarium · estilos */
  :root{
    --bg-1:#0c1024;
    --bg-2:#151233;
    --teal:#2fd8c4;
    --violet:#a78bfa;
    --amber:#f3b451;
    --rose:#fb7185;
    --accent: var(--teal);
    --accent-soft: rgba(47,216,196,0.35);
    --ink:#eef0fb;
    --ink-dim:#a7acc9;
    --ink-faint:#787ea3;
    --glass-bg:rgba(255,255,255,0.06);
    --glass-bg-strong:rgba(255,255,255,0.10);
    --glass-border:rgba(255,255,255,0.16);
    --glass-border-bright:rgba(255,255,255,0.32);
    --glass-blur:blur(24px);
    --radius-lg:26px;
    --radius-md:18px;
    --radius-sm:12px;
  }

  *{box-sizing:border-box;}
  html,body{height:100%;}
  body{
    margin:0;
    font-family:'Manrope',sans-serif;
    color:var(--ink);
    background:var(--bg-1);
    overflow:hidden;
  }

  /* ---------- splash de bienvenida ---------- */
  #splash{
    position:fixed; inset:0; z-index:999;
    background:radial-gradient(ellipse at 50% 42%, var(--bg-2), var(--bg-1) 72%);
    display:flex; align-items:center; justify-content:center; flex-direction:column;
    overflow:hidden; cursor:pointer;
    transition:opacity .85s var(--ease-soft), transform 1s var(--ease-soft), filter .85s ease;
  }
  #splash.fade-out{ opacity:0; transform:scale(1.05); filter:blur(8px); pointer-events:none; }
  /* luces de fondo: las mismas de la página, que van apareciendo */
  #splash .sp-aurora i{ position:absolute; border-radius:50%; filter:blur(70px); opacity:0; will-change:transform, opacity; animation:spBlob 5.2s var(--ease-soft) forwards; }
  #splash .sp-aurora .a1{ width:48vmax; height:48vmax; left:-14vmax; top:-16vmax; background:radial-gradient(circle, rgba(47,216,196,.5), transparent 65%); }
  #splash .sp-aurora .a2{ width:52vmax; height:52vmax; right:-16vmax; bottom:-20vmax; background:radial-gradient(circle, rgba(167,139,250,.5), transparent 65%); animation-delay:.25s; }
  #splash .sp-aurora .a3{ width:30vmax; height:30vmax; left:52%; top:6%; background:radial-gradient(circle, rgba(251,113,133,.22), transparent 65%); animation-delay:.5s; }
  @keyframes spBlob{ 0%{ opacity:0; transform:translate3d(0,0,0) scale(.85); } 35%{ opacity:.9; } 100%{ opacity:.8; transform:translate3d(4vmax,3vmax,0) scale(1.12); } }
  #splash .sp-center{ position:relative; display:flex; flex-direction:column; align-items:center; gap:0; padding:0 6vw; }
  /* logo: disco de cristal con ondas de sonar */
  #splash .sp-logo{ position:relative; width:min(26vmin, 150px); height:min(26vmin, 150px); display:grid; place-items:center; margin-bottom:min(4.4vmin, 30px); }
  #splash .sp-ring{ position:absolute; inset:0; border-radius:50%; border:1px solid var(--accent); opacity:0; will-change:transform, opacity; animation:spPulse 3s var(--ease-out) infinite; }
  #splash .sp-ring.r2{ animation-delay:.55s; } #splash .sp-ring.r3{ animation-delay:1.1s; }
  #splash .sp-ring{ animation-delay:.8s; } #splash .sp-ring.r2{ animation-delay:1.35s; } #splash .sp-ring.r3{ animation-delay:1.9s; }
  @keyframes spPulse{ 0%{ transform:scale(1); opacity:0; } 10%{ opacity:.6; } 100%{ transform:scale(3.3); opacity:0; } }
  #splash .sp-disc{
    position:relative; width:100%; height:100%; border-radius:50%; display:grid; place-items:center;
    background:linear-gradient(150deg, rgba(255,255,255,.2), rgba(255,255,255,.05) 48%, rgba(255,255,255,.12));
    border:1px solid var(--glass-border-bright);
    -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.4), inset 0 -10px 24px rgba(0,0,0,.18), 0 22px 60px rgba(0,0,0,.45), 0 0 70px var(--accent-soft);
    opacity:0; transform:scale(.6); will-change:transform, opacity;
    animation:spDisc 1.05s var(--spring) .15s forwards, spFloat 4.2s ease-in-out 1.3s infinite alternate;
  }
  @keyframes spDisc{ 0%{ opacity:0; transform:scale(.6); } 40%{ opacity:1; } 100%{ opacity:1; transform:scale(1); } }
  @keyframes spFloat{ from{ opacity:1; transform:translate3d(0,0,0) scale(1); } to{ opacity:1; transform:translate3d(0,-6px,0) scale(1.015); } }
  #splash .sp-clef{
    font-family:'Noto Sans Symbols 2','Segoe UI Symbol','Apple Symbols',serif;
    font-size:min(15vmin, 88px); line-height:1; color:var(--ink);
    text-shadow:0 0 18px var(--accent-soft), 0 0 40px rgba(167,139,250,.4);
    animation:spRise .9s var(--ease-soft) .45s backwards;
  }
  @keyframes spRise{ from{ opacity:0; transform:translate3d(0,10px,0); } to{ opacity:1; transform:none; } }
  /* nombre: letra por letra, con degradado turquesa → violeta como los títulos de la página */
  #splash .brand-name{ font-family:'Fraunces',serif; font-weight:600; font-size:min(7vmin, 46px); letter-spacing:.14em; text-transform:uppercase; line-height:1.1; display:flex; justify-content:center; padding-left:.14em; }
  #splash .brand-name span{ display:inline-block; will-change:transform, opacity, filter; animation:spLetter .8s var(--ease-soft) calc(.95s + var(--i) * .065s) backwards; }
  @keyframes spLetter{ from{ opacity:0; transform:translate3d(0,.45em,0); filter:blur(7px); } to{ opacity:1; transform:none; filter:blur(0); } }
  #splash .sp-line{ height:1px; width:min(34vmin, 200px); margin-top:min(2.2vmin, 14px); background:linear-gradient(90deg, transparent, var(--teal), var(--violet), transparent); transform:scaleX(0); opacity:.8; animation:spLine 1s var(--ease-soft) 1.65s forwards; }
  @keyframes spLine{ to{ transform:scaleX(1); } }
  #splash .splash-quote{
    max-width:min(80vw, 520px); margin-top:min(3.6vmin, 24px); text-align:center; font-family:'Fraunces',serif; font-style:italic;
    font-size:min(2.7vmin, 18px); line-height:1.5; color:var(--ink-dim); opacity:0; animation:spRiseIn .9s var(--ease-soft) 2s forwards;
  }
  @keyframes spRiseIn{ from{ opacity:0; transform:translate3d(0,8px,0); } to{ opacity:1; transform:none; } }
  #splash .splash-quote small{ display:block; margin-top:6px; font-style:normal; font-size:.72em; letter-spacing:1.3px; text-transform:uppercase; font-weight:700; color:var(--accent); }
  #splash .hint{ position:absolute; bottom:calc(6vh + env(safe-area-inset-bottom)); font-size:12.5px; color:var(--ink-faint); opacity:0; animation:fadeInHint 1s ease 2.6s forwards; }
  @keyframes fadeInHint{ to{ opacity:1; } }
  /* barrita que se llena mientras la bienvenida se despide sola */
  #splash .sp-bar{ position:absolute; left:50%; bottom:calc(3.2vh + env(safe-area-inset-bottom)); width:min(120px, 30vw); height:2px; margin-left:calc(min(120px, 30vw) / -2); border-radius:2px; background:rgba(255,255,255,.12); overflow:hidden; }
  #splash .sp-bar i{ display:block; height:100%; transform-origin:left; transform:scaleX(0); background:linear-gradient(90deg, var(--teal), var(--violet)); animation:spBar 4.6s linear forwards; }
  @keyframes spBar{ to{ transform:scaleX(1); } }
  @keyframes spFade{ from{ opacity:0; } to{ opacity:1; } }
  /* con "reducir movimiento" no se quita la bienvenida: se queda solo con fundidos suaves (sin desplazar, sin desenfoque, sin ondas) */
  html[data-motion="reduced"] #splash{ transition:opacity .7s ease; }
  html[data-motion="reduced"] #splash.fade-out{ transform:none; filter:none; }
  html[data-motion="reduced"] #splash .sp-aurora i{ animation:spFade 2.2s ease forwards; opacity:.8; transform:none; }
  html[data-motion="reduced"] #splash .sp-ring{ display:none; }
  html[data-motion="reduced"] #splash .sp-disc{ animation:spFade 1s ease .15s forwards; transform:none; }
  html[data-motion="reduced"] #splash .sp-clef{ animation:spFade .9s ease .45s backwards; }
  html[data-motion="reduced"] #splash .brand-name span{ animation:spFade .8s ease calc(.95s + var(--i) * .06s) backwards; }
  html[data-motion="reduced"] #splash .sp-line{ transform:none; opacity:0; animation:spFade 1s ease 1.65s forwards; }
  html[data-motion="reduced"] #splash .splash-quote{ animation:spFade .9s ease 2s forwards; }
  html[data-motion="reduced"] #splash .sp-bar i{ animation:spBar 4.6s linear forwards; }

  /* ---------- fondo liquid glass ---------- */
  .aurora{
    position:fixed;
    inset:0;
    z-index:0;
    overflow:hidden;
    background:radial-gradient(ellipse at 20% 0%, var(--bg-2), var(--bg-1) 60%);
  }
  .blob{
    position:absolute;
    border-radius:50%;
    filter:blur(64px);
    opacity:0.55;
    will-change:transform;
    transition:background 1.2s ease, opacity 1.2s ease;
  }
  .blob.b1{ width:48vw; height:48vw; top:-14%; left:-10%;  background:var(--violet); animation:drift1 22s ease-in-out infinite; }
  .blob.b2{ width:42vw; height:42vw; bottom:-18%; right:-8%; background:var(--teal); animation:drift2 26s ease-in-out infinite; }
  .blob.b3{ width:32vw; height:32vw; top:32%; right:18%; background:var(--amber); opacity:0.35; animation:drift3 30s ease-in-out infinite; }
  .blob.b4{ width:24vw; height:24vw; bottom:8%; left:22%; background:var(--rose); opacity:0.28; animation:drift1 24s ease-in-out infinite reverse; }
  .blob.accent{ width:36vw; height:36vw; top:50%; left:50%; margin:-18vw 0 0 -18vw; background:var(--accent); opacity:0; animation:drift2 20s ease-in-out infinite; }

  @keyframes drift1{ 0%,100%{transform:translate(0,0) scale(1);} 25%{transform:translate(14vw,10vh) scale(1.15);} 50%{transform:translate(4vw,18vh) scale(0.95);} 75%{transform:translate(-10vw,6vh) scale(1.1);} }
  @keyframes drift2{ 0%,100%{transform:translate(0,0) scale(1);} 30%{transform:translate(-16vw,-8vh) scale(1.1);} 60%{transform:translate(-6vw,12vh) scale(0.92);} 80%{transform:translate(10vw,4vh) scale(1.05);} }
  @keyframes drift3{ 0%,100%{transform:translate(0,0) scale(1);} 40%{transform:translate(-12vw,10vh) scale(0.9);} 70%{transform:translate(8vw,-10vh) scale(1.12);} }

  @media (prefers-reduced-motion: reduce){
    .blob{ animation:none !important; }
  }

  /* ---------- vidrio base ---------- */
  .glass{
    background:var(--glass-bg);
    -webkit-backdrop-filter:var(--glass-blur);
    backdrop-filter:var(--glass-blur);
    border:1px solid var(--glass-border);
    border-top-color:var(--glass-border-bright);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.15) inset,
      0 20px 40px -20px rgba(0,0,0,0.55);
  }

  button, input, select, textarea{ font-family:inherit; }

  .glass-btn{
    background:var(--glass-bg-strong);
    -webkit-backdrop-filter:var(--glass-blur);
    backdrop-filter:var(--glass-blur);
    border:1px solid var(--glass-border);
    border-top-color:var(--glass-border-bright);
    color:var(--ink);
    border-radius:999px;
    padding:10px 18px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    gap:8px;
    transition:transform .15s ease, background .15s ease, box-shadow .15s ease;
    box-shadow:0 1px 0 rgba(255,255,255,0.18) inset, 0 8px 20px -12px rgba(0,0,0,0.6);
  }
  .glass-btn:hover{ background:rgba(255,255,255,0.16); transform:translateY(-1px); }
  .glass-btn.icon-only{ padding:10px; aspect-ratio:1; justify-content:center; }
  .glass-btn.primary{
    background:linear-gradient(135deg, var(--accent-soft), rgba(167,139,250,0.35));
    border-color:rgba(255,255,255,0.3);
  }
  .glass-btn.danger:hover{ background:rgba(251,113,133,0.25); }
  .glass-btn:disabled{ opacity:.4; cursor:default; transform:none; }
  .icon-btn-wrap{ position:relative; }
  .badge{
    position:absolute; top:-4px; right:-4px;
    background:var(--rose); color:#1a0510;
    font-size:10px; font-weight:800;
    min-width:16px; height:16px; border-radius:8px;
    display:flex; align-items:center; justify-content:center;
    padding:0 4px;
  }

  /* ---------- shell ---------- */
  .app{
    position:relative;
    z-index:1;
    height:100%;
    padding:16px;
    display:flex;
  }
  .panel{
    flex:1;
    border-radius:var(--radius-lg);
    display:flex;
    flex-direction:column;
    min-height:0;
    overflow:hidden;
  }

  /* ---------- HOME ---------- */
  #homeScreen{ display:flex; flex-direction:column; min-height:0; }
  .home-header{
    padding:28px 32px 10px;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
  }
  .home-header .greet h1{
    font-family:'Fraunces',serif;
    font-weight:600;
    font-size:30px;
    margin:0 0 4px;
    letter-spacing:0.2px;
  }
  .home-header .greet p{ margin:0; color:var(--ink-dim); font-size:14.5px; }
  .home-header .actions{ display:flex; gap:10px; flex-shrink:0; }

  .home-toolbar{
    padding:14px 32px 6px;
    display:flex;
    gap:12px;
    align-items:center;
  }
  .home-toolbar input{
    flex:1;
    max-width:360px;
    background:rgba(255,255,255,0.05);
    border:1px solid var(--glass-border);
    border-radius:999px;
    padding:11px 18px;
    color:var(--ink);
    font-size:14px;
    outline:none;
  }
  .home-toolbar input::placeholder{ color:var(--ink-faint); }
  .home-toolbar input:focus{ border-color:var(--glass-border-bright); background:rgba(255,255,255,0.09); }

  .song-grid{
    flex:1;
    overflow-y:auto;
    padding:20px 32px 40px;
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
    gap:16px;
    align-content:start;
  }

  .card{
    position:relative;
    border-radius:var(--radius-md);
    padding:20px 18px;
    min-height:140px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    cursor:pointer;
    overflow:hidden;
    background:rgba(255,255,255,0.055);
    border:1px solid var(--glass-border);
    -webkit-backdrop-filter:blur(16px);
    backdrop-filter:blur(16px);
    transition:transform .18s ease, border-color .18s ease;
  }
  .card:hover{ transform:translateY(-3px); border-color:var(--glass-border-bright); }
  .card .glow{
    position:absolute;
    width:140px; height:140px;
    border-radius:50%;
    top:-40px; right:-40px;
    filter:blur(30px);
    opacity:0.55;
  }
  .card .t{ font-family:'Fraunces',serif; font-weight:600; font-size:17px; position:relative; margin-bottom:4px; line-height:1.3; }
  .card .a{ font-size:12.5px; color:var(--ink-dim); position:relative; }
  .card .dot{
    width:10px; height:10px; border-radius:50%;
    position:absolute; top:16px; left:16px;
  }
  .card .del{
    position:absolute; right:10px; top:10px;
    width:26px; height:26px;
    border-radius:50%;
    display:none;
    align-items:center; justify-content:center;
    background:rgba(0,0,0,0.3);
    color:var(--ink-dim);
    font-size:13px;
    border:none;
    cursor:pointer;
  }
  .card:hover .del{ display:flex; }
  .card .del:hover{ color:var(--rose); background:rgba(0,0,0,0.45); }

  .card.add-card{
    align-items:center;
    justify-content:center;
    border-style:dashed;
    background:rgba(255,255,255,0.03);
    color:var(--ink-dim);
    font-weight:700;
    font-size:15px;
    gap:6px;
    flex-direction:column;
  }
  .card.add-card:hover{ color:var(--ink); background:rgba(255,255,255,0.06); }
  .card.add-card .plus{ font-size:26px; line-height:1; }

  .empty-hint{
    padding:20px 6px; color:var(--ink-faint); font-size:13.5px; grid-column:1/-1;
  }

  /* ---------- SONG VIEW ---------- */
  #songScreen{ display:none; flex-direction:column; min-height:0; }

  .topbar{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    padding:20px 26px 16px;
    border-bottom:1px solid rgba(255,255,255,0.08);
  }
  .topbar .left{ display:flex; align-items:center; gap:12px; min-width:0; }
  .topbar .titles{ min-width:0; }
  .topbar h2{
    font-family:'Fraunces',serif;
    font-weight:600;
    font-size:24px;
    margin:0 0 4px;
    letter-spacing:0.2px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .topbar .artist{ color:var(--ink-dim); font-size:14px; }
  .topbar .controls{ display:flex; align-items:center; gap:10px; flex-shrink:0; }

  .key-pill{
    display:flex;
    align-items:center;
    gap:2px;
    background:rgba(255,255,255,0.06);
    border:1px solid var(--glass-border);
    border-radius:999px;
    padding:4px;
  }
  .key-pill button{
    width:28px; height:28px;
    border-radius:50%;
    border:none;
    background:transparent;
    color:var(--ink);
    font-size:15px;
    cursor:pointer;
  }
  .key-pill button:hover{ background:rgba(255,255,255,0.12); }
  .key-pill .k{
    font-family:'IBM Plex Mono','JetBrains Mono',monospace;
    font-weight:700;
    min-width:38px;
    text-align:center;
    font-size:14px;
    color:var(--accent);
  }

  .size-pill{
    display:flex;
    align-items:center;
    gap:2px;
    background:rgba(255,255,255,0.06);
    border:1px solid var(--glass-border);
    border-radius:999px;
    padding:4px;
  }
  .size-pill button{
    width:28px; height:28px;
    border-radius:50%;
    border:none;
    background:transparent;
    color:var(--ink);
    font-weight:700;
    cursor:pointer;
  }
  .size-pill button:first-child{ font-size:11px; }
  .size-pill button:last-child{ font-size:16px; }
  .size-pill button:hover{ background:rgba(255,255,255,0.12); }
  .size-pill .sz{
    font-family:'IBM Plex Mono','JetBrains Mono',monospace;
    font-weight:700;
    min-width:22px;
    text-align:center;
    font-size:12px;
    color:var(--ink-dim);
  }

  .lyrics-area{
    flex:1;
    overflow-y:auto;
    padding:24px 34px 140px;
    scroll-behavior:smooth;
  }
  .lyrics-area::-webkit-scrollbar{ width:8px; }
  .lyrics-area::-webkit-scrollbar-thumb{ background:rgba(255,255,255,0.15); border-radius:8px; }

  .song-line{
    position:relative;
    padding-top:1.35em;
    margin-bottom:4px;
    font-family:'IBM Plex Mono','JetBrains Mono',monospace;
    font-size:var(--lyric-size, 16px);
    line-height:1.55;
    white-space:pre;
  }
  .song-line.blank{ height:0.9em; padding-top:0; margin-bottom:0; }
  .chord-tag{
    position:absolute;
    top:0;
    color:var(--accent);
    font-weight:700;
    font-size:calc(var(--lyric-size, 16px) * 0.875);
  }
  .lyric-text{ color:var(--ink); }
  .lyric-text.faded{ color: var(--ink-dim); }

  /* ---------- barra de scroll flotante ---------- */
  .scrollbar-dock{
    position:absolute;
    left:50%;
    bottom:22px;
    transform:translateX(-50%);
    display:flex;
    align-items:center;
    gap:14px;
    padding:10px 18px;
    border-radius:999px;
  }
  .scrollbar-dock button{
    width:38px; height:38px;
    border-radius:50%;
    border:none;
    background:rgba(255,255,255,0.12);
    color:var(--ink);
    font-size:15px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
  }
  .scrollbar-dock button:hover{ background:rgba(255,255,255,0.2); }
  .scrollbar-dock button.playing{ background:linear-gradient(135deg, var(--accent), var(--violet)); color:#111; }
  .scrollbar-dock input[type=range]{ width:130px; accent-color:var(--accent); }
  .scrollbar-dock .speed-label{ font-size:11px; color:var(--ink-faint); white-space:nowrap; }

  /* ---------- modales ---------- */
  .modal-veil{
    position:fixed; inset:0;
    background:rgba(6,6,18,0.55);
    -webkit-backdrop-filter:blur(6px);
    backdrop-filter:blur(6px);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:50;
    padding:20px;
  }
  .modal-veil.open{ display:flex; }
  .modal{
    width:100%;
    max-width:560px;
    max-height:88vh;
    display:flex;
    flex-direction:column;
    border-radius:var(--radius-lg);
    overflow:hidden;
  }
  .modal.narrow{ max-width:420px; }
  .modal-head{
    padding:20px 24px 14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid rgba(255,255,255,0.08);
  }
  .modal-head h3{
    font-family:'Fraunces',serif;
    margin:0;
    font-size:19px;
    font-weight:600;
  }
  .modal-body{ padding:18px 24px; overflow-y:auto; display:flex; flex-direction:column; gap:14px; }
  .field label{ display:block; font-size:12.5px; color:var(--ink-dim); margin-bottom:6px; font-weight:600; }
  .field input, .field textarea{
    width:100%;
    background:rgba(255,255,255,0.05);
    border:1px solid var(--glass-border);
    border-radius:var(--radius-sm);
    padding:10px 12px;
    color:var(--ink);
    font-size:14px;
    outline:none;
    resize:vertical;
  }
  .field input:focus, .field textarea:focus{ border-color:var(--glass-border-bright); background:rgba(255,255,255,0.09); }
  .field textarea{ font-family:'IBM Plex Mono','JetBrains Mono',monospace; font-size:13.5px; line-height:1.6; min-height:200px; }
  .field .hint{ font-size:11.5px; color:var(--ink-faint); margin-top:6px; line-height:1.5; }
  .modal-foot{
    padding:16px 24px 22px;
    display:flex;
    justify-content:flex-end;
    gap:10px;
    border-top:1px solid rgba(255,255,255,0.08);
  }
  .row{ display:flex; gap:14px; }
  .row .field{ flex:1; }

  .swatches{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
  .swatch{
    width:30px; height:30px;
    border-radius:50%;
    cursor:pointer;
    border:2px solid transparent;
    box-shadow:0 1px 0 rgba(255,255,255,0.25) inset;
  }
  .swatch.selected{ border-color:#fff; transform:scale(1.12); }
  .swatch.custom-swatch{
    display:flex; align-items:center; justify-content:center;
    background:rgba(255,255,255,0.08);
    border:1px dashed var(--glass-border-bright);
    color:var(--ink-dim);
    font-size:14px;
  }
  input[type=color]{
    -webkit-appearance:none; appearance:none;
    width:30px; height:30px; border:none; border-radius:50%;
    background:transparent; cursor:pointer; padding:0;
  }
  input[type=color]::-webkit-color-swatch-wrapper{ padding:0; border-radius:50%; }
  input[type=color]::-webkit-color-swatch{ border:none; border-radius:50%; }

  .trash-list{ display:flex; flex-direction:column; gap:10px; }
  .trash-item{
    display:flex; align-items:center; justify-content:space-between;
    padding:12px 14px;
    border-radius:var(--radius-sm);
    background:rgba(255,255,255,0.05);
    border:1px solid var(--glass-border);
    gap:10px;
  }
  .trash-item .info .t{ font-weight:700; font-size:14px; }
  .trash-item .info .d{ font-size:12px; color:var(--ink-faint); margin-top:2px; }
  .trash-item .btns{ display:flex; gap:6px; flex-shrink:0; }
  .trash-item .btns button{
    border:none; background:rgba(255,255,255,0.09);
    color:var(--ink); border-radius:999px;
    padding:7px 12px; font-size:12.5px; cursor:pointer; font-weight:600;
  }
  .trash-item .btns button:hover{ background:rgba(255,255,255,0.18); }
  .trash-item .btns button.del{ color:var(--rose); }
  .trash-empty{ color:var(--ink-faint); font-size:13.5px; padding:10px 4px; }

  .confirm-text{ font-size:14px; color:var(--ink-dim); line-height:1.6; margin:0; }

  .menu-toggle{ display:none; }

  .mobile-dock{
    display:none;
    position:fixed;
    left:12px; right:12px;
    bottom:12px;
    z-index:25;
    border-radius:999px;
    padding:10px 12px;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    transform:translateY(0);
    opacity:1;
    transition:transform .35s cubic-bezier(.3,.8,.4,1), opacity .3s ease;
  }
  .mobile-dock #mobileNewSong{ flex:1; justify-content:center; font-size:13.5px; padding:10px 14px; }
  .mobile-dock .icon-btn-wrap{ position:relative; display:inline-flex; }
  body.song-open .mobile-dock{
    transform:translateY(140%);
    opacity:0;
    pointer-events:none;
  }

  /* ---------- responsive ---------- */
  @media (max-width: 900px){
    .app{ padding:10px; }
    .home-header{ padding:22px 18px 8px; flex-direction:column; }
    .home-header h1{ font-size:24px; }
    .home-toolbar{ padding:12px 18px 4px; flex-wrap:wrap; }
    .home-toolbar input{ max-width:none; }
    .song-grid{ padding:16px 18px 96px; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:12px; }
    .card{ min-height:120px; padding:16px 14px; }
    .desktop-actions{ display:none !important; }
    .mobile-dock{ display:flex; }
    .topbar{ padding:14px 14px 12px; flex-direction:column; align-items:stretch; gap:10px; }
    .topbar .left{ width:100%; }
    .topbar h2{ font-size:20px; white-space:normal; }
    .topbar .artist{ white-space:normal; }
    .topbar .controls{ width:100%; flex-wrap:wrap; justify-content:flex-start; gap:8px; }
    .topbar .controls .glass-btn.icon-only{ width:38px; height:38px; }
    .lyrics-area{ padding:20px 18px 150px; }
    .scrollbar-dock{ bottom:14px; padding:8px 14px; gap:10px; }
    .scrollbar-dock input[type=range]{ width:80px; }
  }

  /* =====================================================
     REFINAMIENTO VISUAL — Sonarium (capa de diseño premium)
     ===================================================== */
  :root{
    --glass-bg:rgba(255,255,255,0.045);
    --glass-border:rgba(255,255,255,0.12);
    --glass-border-bright:rgba(255,255,255,0.38);
    --ease-out:cubic-bezier(.22,.9,.28,1);
  }
  body{ -webkit-font-smoothing:antialiased; letter-spacing:.005em; }

  /* grano sutil sobre todo el fondo */
  .aurora::after{
    content:""; position:absolute; inset:0; pointer-events:none; opacity:.07; mix-blend-mode:overlay;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  }
  /* pentagrama tenue de fondo */
  .aurora::before{
    content:""; position:absolute; inset:0; pointer-events:none; opacity:.05; z-index:1;
    background:repeating-linear-gradient(to bottom, transparent 0 46px, rgba(255,255,255,.9) 46px 47px, transparent 47px 56px, rgba(255,255,255,.9) 56px 57px, transparent 57px 66px, rgba(255,255,255,.9) 66px 67px, transparent 67px 76px, rgba(255,255,255,.9) 76px 77px, transparent 77px 86px, rgba(255,255,255,.9) 86px 87px, transparent 87px 240px);
    mask-image:linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
    -webkit-mask-image:linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  }

  /* panel principal con borde luminoso */
  .panel.glass{
    background:linear-gradient(160deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025) 55%);
    border-radius:32px;
    box-shadow:
      0 1px 0 rgba(255,255,255,0.22) inset,
      0 0 0 1px rgba(255,255,255,0.03),
      0 40px 80px -30px rgba(0,0,0,0.7),
      0 0 120px -40px var(--accent-soft);
    transition:box-shadow 1s ease;
  }

  /* ---------- HOME ---------- */
  .home-header{ padding:34px 38px 8px; }
  .home-header .greet h1{
    font-size:38px; font-weight:500; letter-spacing:-.5px; line-height:1.1;
    background:linear-gradient(100deg, #fff 20%, var(--accent) 70%, var(--violet));
    -webkit-background-clip:text; background-clip:text; color:transparent;
  }
  .home-header .greet p{ font-size:15px; color:var(--ink-dim); margin-top:8px; }
  .home-header .greet p strong{ color:var(--ink); font-family:'Fraunces',serif; font-weight:600; letter-spacing:.5px; }

  .home-toolbar{ padding:18px 38px 4px; }
  .home-toolbar input{
    max-width:420px; padding:13px 20px 13px 44px; font-size:14.5px;
    background:rgba(255,255,255,0.05) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23787ea3' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>") no-repeat 16px center;
    transition:border-color .2s, box-shadow .2s, background-color .2s;
  }
  .home-toolbar input:focus{ box-shadow:0 0 0 4px var(--accent-soft); }

  .glass-btn{ letter-spacing:.2px; transition:transform .2s var(--ease-out), background .2s, box-shadow .2s, border-color .2s; }
  .glass-btn:hover{ border-color:var(--glass-border-bright); box-shadow:0 1px 0 rgba(255,255,255,0.25) inset, 0 12px 28px -12px var(--accent-soft); }
  .glass-btn.primary{
    background:linear-gradient(135deg, var(--accent-soft), rgba(167,139,250,0.4));
    box-shadow:0 1px 0 rgba(255,255,255,0.3) inset, 0 10px 30px -12px var(--accent);
  }

  .song-grid{ padding:24px 38px 48px; gap:20px; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); }

  @keyframes cardIn{ from{ opacity:0; transform:translateY(18px) scale(.97); } to{ opacity:1; transform:none; } }
  .card{
    min-height:168px; padding:22px 20px; border-radius:22px;
    background:linear-gradient(155deg, rgba(255,255,255,0.09), rgba(255,255,255,0.025) 60%);
    box-shadow:0 1px 0 rgba(255,255,255,0.14) inset, 0 24px 40px -26px rgba(0,0,0,.7);
    animation:cardIn .55s var(--ease-out) backwards;
    transition:transform .3s var(--ease-out), border-color .3s, box-shadow .3s;
  }
  .card:nth-child(1){animation-delay:.02s}.card:nth-child(2){animation-delay:.07s}.card:nth-child(3){animation-delay:.12s}
  .card:nth-child(4){animation-delay:.17s}.card:nth-child(5){animation-delay:.22s}.card:nth-child(6){animation-delay:.27s}
  .card:nth-child(n+7){animation-delay:.32s}
  .card:hover{ transform:translateY(-6px) scale(1.015); box-shadow:0 1px 0 rgba(255,255,255,0.2) inset, 0 34px 50px -24px rgba(0,0,0,.8); }
  /* disco de vinilo decorativo */
  .card:not(.add-card)::before{
    content:""; position:absolute; top:-34px; right:-34px; width:120px; height:120px; border-radius:50%;
    background:
      radial-gradient(circle, var(--c, #fff) 0 9px, #0b0d1c 10px 14px, transparent 15px),
      repeating-radial-gradient(circle, rgba(255,255,255,.10) 0 1px, transparent 1px 5px),
      radial-gradient(circle, #14172e 0 100%);
    opacity:.55; transition:transform .8s var(--ease-out), opacity .3s;
  }
  .card:not(.add-card):hover::before{ transform:rotate(140deg) scale(1.08); opacity:.85; }
  .card .glow{ opacity:.4; transition:opacity .3s; }
  .card:hover .glow{ opacity:.7; }
  .card .dot{ box-shadow:0 0 14px currentColor; width:9px; height:9px; }
  .card .t{ font-size:19px; font-weight:600; letter-spacing:-.2px; color:var(--ink); }
  .card .a{ font-size:12.5px; letter-spacing:.3px; text-transform:uppercase; opacity:.8; color:var(--ink-dim); }
  .card.add-card{ border:1.5px dashed rgba(255,255,255,.25); }
  .card.add-card .plus{ font-size:34px; font-weight:300; transition:transform .3s var(--ease-out); }
  .card.add-card:hover .plus{ transform:rotate(90deg) scale(1.15); color:var(--accent); }

  /* ---------- VISTA DE CANCIÓN ---------- */
  .topbar{
    padding:22px 30px 18px;
    background:linear-gradient(to bottom, rgba(255,255,255,0.05), transparent);
    border-bottom:1px solid rgba(255,255,255,0.07);
  }
  .topbar h2{
    font-size:30px; font-weight:500; letter-spacing:-.4px;
    background:linear-gradient(100deg, #fff 30%, var(--accent));
    -webkit-background-clip:text; background-clip:text; color:transparent;
  }
  .topbar .artist{ font-size:12.5px; letter-spacing:1.4px; text-transform:uppercase; color:var(--ink-faint); }
  .key-pill .k{ font-size:15px; text-shadow:0 0 14px var(--accent-soft); }

  .lyrics-area{ padding:30px 44px 160px; }
  .song-line{ margin-bottom:6px; line-height:1.6; }
  .chord-tag{
    font-weight:700;
    text-shadow:0 0 16px var(--accent-soft);
    letter-spacing:.2px;
  }
  .lyric-text{ color:#f4f5ff; }
  /* hilo vertical que acompaña la lectura */
  .lyrics-area #songRender{ position:relative; padding-left:22px; max-width:900px; margin:0 auto; }
  .lyrics-area #songRender::before{
    content:""; position:absolute; left:0; top:4px; bottom:4px; width:2px; border-radius:2px;
    background:linear-gradient(to bottom, var(--accent), transparent);
    opacity:.55;
  }
  .song-line.blank{ height:1.6em; }

  /* dock flotante */
  .scrollbar-dock{
    padding:12px 22px; gap:16px;
    background:rgba(18,20,44,0.55);
    box-shadow:0 1px 0 rgba(255,255,255,.2) inset, 0 24px 50px -16px rgba(0,0,0,.8), 0 0 40px -12px var(--accent-soft);
  }
  .scrollbar-dock button.playing{ box-shadow:0 0 22px var(--accent-soft); }
  .scrollbar-dock input[type=range]{ height:4px; }

  /* modales */
  .modal-veil{ background:rgba(5,6,18,0.6); }
  .modal{
    background:linear-gradient(160deg, rgba(34,30,74,0.72), rgba(14,16,40,0.78));
    border-radius:28px;
    box-shadow:0 1px 0 rgba(255,255,255,.2) inset, 0 50px 100px -30px rgba(0,0,0,.9);
  }
  .modal.open, .modal-veil.open .modal{ animation:modalIn .35s var(--ease-out); }
  @keyframes modalIn{ from{ opacity:0; transform:translateY(16px) scale(.96);} to{ opacity:1; transform:none; } }
  .modal-head h3{ font-size:21px; letter-spacing:-.2px; }
  .field input:focus, .field textarea:focus{ box-shadow:0 0 0 4px var(--accent-soft); }

  .mobile-dock{ background:rgba(18,20,44,.6); box-shadow:0 20px 40px -12px rgba(0,0,0,.8); }

  @media (max-width:900px){
    .home-header{ padding:24px 20px 6px; }
    .home-header .greet h1{ font-size:30px; }
    .home-toolbar{ padding:12px 20px 4px; }
    .song-grid{ padding:18px 20px 100px; gap:14px; }
    .card{ min-height:132px; }
    .topbar h2{ font-size:22px; }
    .lyrics-area{ padding:22px 18px 160px; }
    .lyrics-area #songRender{ padding-left:14px; }
  }
  @media (prefers-reduced-motion: reduce){
    .card{ animation:none; }
  }

  /* =====================================================
     CUADERNO: carpetas, espacios temporales, cuenta y movimiento suave
     ===================================================== */
  :root{ --ease-soft:cubic-bezier(.22,.8,.3,1); }

  /* --- animaciones sutiles --- */
  #homeScreen, #songScreen{ animation:screenIn .38s var(--ease-soft); }
  @keyframes screenIn{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }
  @keyframes itemIn{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }
  .card{
    animation:none;
    transition:transform .35s var(--ease-soft), border-color .3s ease, box-shadow .35s ease, opacity .3s ease, background .3s ease;
  }
  .song-grid.enter .card, .song-grid.enter .space-head{
    animation:itemIn .45s var(--ease-soft) backwards;
    animation-delay:calc(var(--i, 0) * 30ms);
  }
  .card:hover{ transform:translateY(-3px); }
  .modal.open, .modal-veil.open .modal{ animation:modalIn .32s var(--ease-soft); }
  @keyframes modalIn{ from{ opacity:0; transform:translateY(10px) scale(.985); } to{ opacity:1; transform:none; } }
  .home-toolbar input{ transition:border-color .25s ease, box-shadow .25s ease, background-color .25s ease; }
  .glass-btn{ transition:transform .25s var(--ease-soft), background .25s ease, box-shadow .25s ease, border-color .25s ease, opacity .25s ease; }
  .glass-btn:hover{ transform:translateY(-1px); }

  /* --- barra de herramientas del inicio --- */
  .home-toolbar{ flex-wrap:wrap; }
  .home-toolbar input{ min-width:180px; }
  .glass-btn.acct{ margin-left:auto; gap:9px; }
  .glass-btn.acct .adot{ width:8px; height:8px; border-radius:50%; background:var(--ink-faint); transition:background .4s ease, box-shadow .4s ease; }
  .glass-btn.acct.on .adot{ background:var(--teal); box-shadow:0 0 10px var(--teal); }
  .glass-btn.acct.st-sync .adot{ background:var(--amber); box-shadow:0 0 10px var(--amber); animation:breathe 1.4s ease-in-out infinite; }
  .glass-btn.acct.st-error .adot{ background:var(--rose); box-shadow:0 0 10px var(--rose); }
  .glass-btn.acct.st-offline .adot{ background:var(--ink-faint); box-shadow:none; }
  @keyframes breathe{ 0%,100%{ opacity:.45; } 50%{ opacity:1; } }

  /* --- migas de pan --- */
  .crumbs{ display:flex; flex-wrap:wrap; align-items:center; gap:4px; padding:10px 38px 0; min-height:38px; }
  .crumb{
    font:inherit; font-size:13.5px; font-weight:600; color:var(--ink-dim);
    background:transparent; border:1px solid transparent; border-radius:999px; padding:5px 12px; cursor:pointer;
    transition:background .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease-soft);
  }
  button.crumb:hover{ background:rgba(255,255,255,.08); color:var(--ink); }
  .crumb.current{ color:var(--ink); cursor:default; background:rgba(255,255,255,.05); border-color:var(--glass-border); }
  .crumbs .sep{ color:var(--ink-faint); font-size:15px; }
  .crumb.drop-ok, .space-chip.drop-ok{ background:var(--accent-soft); border-color:var(--accent); color:var(--ink); transform:scale(1.04); }

  /* --- espacios temporales --- */
  .spaces-strip{ display:none; align-items:center; gap:8px; padding:10px 38px 0; overflow-x:auto; scrollbar-width:none; }
  .spaces-strip::-webkit-scrollbar{ display:none; }
  .strip-label{ font-size:11px; letter-spacing:1.3px; text-transform:uppercase; color:var(--ink-faint); white-space:nowrap; margin-right:4px; }
  .space-chip{
    font:inherit; display:inline-flex; align-items:center; gap:10px; white-space:nowrap; cursor:pointer;
    padding:7px 14px 7px 12px; border-radius:999px; color:var(--ink);
    background:rgba(255,255,255,.06); border:1px solid var(--glass-border);
    transition:background .3s ease, border-color .3s ease, transform .3s var(--ease-soft);
  }
  .space-chip:hover{ background:rgba(255,255,255,.11); transform:translateY(-1px); }
  .space-chip.active{ border-color:var(--amber); background:rgba(243,180,81,.14); }
  .space-chip::before{ content:""; width:7px; height:7px; border-radius:50%; background:var(--amber); box-shadow:0 0 8px var(--amber); }
  .space-chip.soon::before{ background:var(--rose); box-shadow:0 0 8px var(--rose); animation:breathe 1.6s ease-in-out infinite; }
  .space-chip .sn{ font-weight:700; font-size:13.5px; }
  .space-chip .sl{ font-size:12px; color:var(--ink-dim); }
  .space-head{
    grid-column:1 / -1; padding:18px 20px; border-radius:20px;
    background:linear-gradient(150deg, rgba(243,180,81,.12), rgba(255,255,255,.03) 60%);
    border:1px solid rgba(243,180,81,.28);
  }
  .sh-top{ display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; align-items:flex-start; }
  .sh-title{ font-family:'Fraunces',serif; font-size:22px; font-weight:600; }
  .sh-sub{ font-size:13px; color:var(--ink-dim); margin-top:6px; max-width:560px; line-height:1.5; }
  .sh-sub strong{ color:var(--amber); }
  .sh-actions{ display:flex; gap:8px; flex-wrap:wrap; }
  .sh-ext{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:14px; font-size:12.5px; color:var(--ink-faint); }
  .mini{
    font:inherit; font-size:12.5px; font-weight:600; color:var(--ink); cursor:pointer;
    background:rgba(255,255,255,.07); border:1px solid var(--glass-border); border-radius:999px; padding:5px 12px;
    transition:background .25s ease, transform .25s var(--ease-soft);
  }
  .mini:hover{ background:rgba(255,255,255,.15); transform:translateY(-1px); }

  /* --- tarjetas: carpetas, acciones, arrastre --- */
  .folder-card::before{ display:none !important; }
  .folder-card .fico{ position:absolute; top:18px; left:18px; width:36px; height:30px; color:var(--c); filter:drop-shadow(0 0 12px var(--accent-soft)); transition:transform .4s var(--ease-soft); }
  .folder-card:hover .fico{ transform:translateY(-2px) rotate(-3deg); }
  .folder-card .fico svg{ width:100%; height:100%; display:block; }
  .card .path{ position:relative; font-size:11px; color:var(--ink-faint); margin-top:3px; }
  .card-actions{
    position:absolute; top:10px; right:10px; display:flex; gap:4px; z-index:3;
    opacity:0; transform:translateY(-3px); transition:opacity .25s ease, transform .3s var(--ease-soft);
  }
  .card:hover .card-actions, .card:focus-within .card-actions{ opacity:1; transform:none; }
  .card-actions button{
    width:27px; height:27px; border-radius:50%; border:none; cursor:pointer; font-size:12.5px; line-height:1;
    display:flex; align-items:center; justify-content:center;
    background:rgba(8,10,28,.55); color:var(--ink-dim); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
    transition:background .25s ease, color .25s ease, transform .25s var(--ease-soft);
  }
  .card-actions button:hover{ background:rgba(255,255,255,.2); color:var(--ink); transform:scale(1.1); }
  .card-actions button.d:hover{ background:rgba(251,113,133,.3); color:var(--rose); }
  @media (hover:none){ .card-actions{ opacity:1; transform:none; } }
  .card.dragging{ opacity:.45; transform:scale(.97); }
  .folder-card.drop-ok{ border-color:var(--accent) !important; background:linear-gradient(155deg, var(--accent-soft), rgba(255,255,255,.04)); transform:translateY(-3px) scale(1.02); }
  body.dnd .card:not(.dragging){ cursor:copy; }

  /* --- ventanas nuevas --- */
  .pick-list{ display:flex; flex-direction:column; gap:4px; }
  .pick-item{
    font:inherit; font-size:14px; text-align:left; color:var(--ink); cursor:pointer;
    background:transparent; border:1px solid transparent; border-radius:12px; padding:10px 14px;
    transition:background .25s ease, border-color .25s ease;
  }
  .pick-item:hover:not(:disabled){ background:rgba(255,255,255,.09); }
  .pick-item.cur{ border-color:var(--glass-border-bright); background:rgba(255,255,255,.06); }
  .pick-item:disabled{ opacity:.35; cursor:default; }
  .check-row{ display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:12px; cursor:pointer; transition:background .25s ease; }
  .check-row:hover{ background:rgba(255,255,255,.07); }
  .check-row input{ accent-color:var(--accent); width:17px; height:17px; flex-shrink:0; }
  .check-row .cr-t{ font-weight:600; font-size:14px; flex:1; min-width:0; }
  .check-row .cr-s{ font-size:12px; color:var(--ink-faint); text-align:right; }
  .list-scroll{ max-height:46vh; overflow-y:auto; display:flex; flex-direction:column; gap:2px; }
  .check-inline{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--ink-dim); }
  .check-inline input{ accent-color:var(--accent); }
  .tabs{ display:flex; gap:6px; background:rgba(255,255,255,.05); border-radius:999px; padding:4px; align-self:flex-start; }
  .tab{ font:inherit; font-size:13.5px; font-weight:700; color:var(--ink-dim); background:transparent; border:none; border-radius:999px; padding:8px 18px; cursor:pointer; transition:background .3s ease, color .3s ease; }
  .tab.on{ background:var(--glass-bg-strong); color:var(--ink); box-shadow:0 1px 0 rgba(255,255,255,.18) inset; }
  .acc-err{ color:var(--rose); font-size:13px; min-height:0; }
  .acc-err:empty{ display:none; }
  .acc-warn{ font-size:13px; color:var(--amber); background:rgba(243,180,81,.1); border:1px solid rgba(243,180,81,.3); border-radius:12px; padding:10px 12px; }
  .acc-user{ display:flex; align-items:center; gap:14px; }
  .acc-av{ width:46px; height:46px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-family:'Fraunces',serif; font-weight:700; font-size:20px; background:linear-gradient(135deg, var(--teal), var(--violet)); color:#0c1024; }
  .acc-name{ font-weight:800; font-size:16px; }
  .acc-status{ font-size:12.5px; color:var(--ink-dim); margin-top:2px; }
  .acc-status.st-ok{ color:var(--teal); } .acc-status.st-error{ color:var(--rose); } .acc-status.st-sync{ color:var(--amber); }
  .acc-btns{ display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
  .setup{ font-size:13px; color:var(--ink-dim); border:1px solid var(--glass-border); border-radius:14px; padding:10px 14px; }
  .setup summary{ cursor:pointer; font-weight:700; color:var(--ink); }
  .setup ol{ padding-left:18px; line-height:1.55; }
  .setup code, .acc-warn code{ font-family:'IBM Plex Mono',monospace; font-size:12px; background:rgba(255,255,255,.08); padding:1px 5px; border-radius:5px; }
  .setup pre{ font-family:'IBM Plex Mono',monospace; font-size:11px; line-height:1.5; background:rgba(0,0,0,.3); border-radius:12px; padding:12px; overflow:auto; max-height:200px; white-space:pre; }
  /* las ventanas que se abren encima de otras */
  #spaceVeil{ z-index:60; } #pickVeil{ z-index:65; } #dlgVeil{ z-index:70; }
  #toast{
    position:fixed; left:50%; bottom:28px; transform:translate(-50%, 14px); z-index:80; max-width:88vw;
    background:rgba(20,22,48,.88); color:var(--ink); border:1px solid var(--glass-border-bright);
    -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
    padding:11px 20px; border-radius:999px; font-size:13.5px; font-weight:600; text-align:center;
    opacity:0; pointer-events:none; transition:opacity .35s ease, transform .4s var(--ease-soft);
  }
  #toast.show{ opacity:1; transform:translate(-50%, 0); }

  @media (max-width:900px){
    .crumbs, .spaces-strip{ padding-left:18px; padding-right:18px; }
    .glass-btn.acct{ margin-left:0; }
    #toast{ bottom:96px; }
    .sh-title{ font-size:19px; }
  }
  @media (prefers-reduced-motion: reduce){
    *, *::before, *::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
  }

  /* --- saludo con el botón de sesión al lado --- */
  html{ background:var(--bg-1); }
  .greet-row{ display:flex; align-items:center; flex-wrap:wrap; gap:6px 16px; margin-bottom:6px; }
  .home-header .greet h1{ margin:0; }
  .glass-btn.acct{ margin-left:0; padding:7px 14px; font-size:13px; }

  /* =====================================================
     LIQUID GLASS v2 — cristal con brillo especular y movimiento suave
     ===================================================== */
  :root{
    --spring:cubic-bezier(.34,1.45,.64,1);
    --glass-fill:linear-gradient(150deg, rgba(255,255,255,.15), rgba(255,255,255,.045) 46%, rgba(255,255,255,.10));
    --glass-edge:inset 0 1px 0 rgba(255,255,255,.5), inset 1px 0 0 rgba(255,255,255,.16), inset 0 -1px 0 rgba(255,255,255,.10), inset 0 0 18px rgba(255,255,255,.05);
  }

  /* panel principal: borde de luz que recorre el contorno */
  .panel{ position:relative; }
  .panel.glass{
    -webkit-backdrop-filter:blur(26px) saturate(1.6); backdrop-filter:blur(26px) saturate(1.6);
    background:linear-gradient(155deg, rgba(255,255,255,.085), rgba(255,255,255,.02) 55%, rgba(255,255,255,.05));
  }
  .panel.glass::before, .modal.glass::before, .space-head::before{
    content:""; position:absolute; inset:0; border-radius:inherit; padding:1.2px; pointer-events:none; z-index:2;
    background:linear-gradient(135deg, rgba(255,255,255,.7), rgba(255,255,255,.08) 28%, rgba(255,255,255,.02) 62%, rgba(255,255,255,.45));
    -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor;
    mask:linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    mask-composite:exclude;
  }
  .modal.glass, .space-head{ position:relative; }

  /* superficies de cristal */
  .glass-btn, .space-chip, .mini{
    position:relative;
    background:var(--glass-fill);
    -webkit-backdrop-filter:blur(18px) saturate(1.7); backdrop-filter:blur(18px) saturate(1.7);
    box-shadow:var(--glass-edge), 0 10px 24px -14px rgba(0,0,0,.65);
    transition:transform .45s var(--spring), background .3s ease, box-shadow .35s ease, border-color .3s ease, opacity .25s ease;
  }
  .glass-btn:hover, .space-chip:hover, .mini:hover{
    background:linear-gradient(150deg, rgba(255,255,255,.22), rgba(255,255,255,.07) 50%, rgba(255,255,255,.14));
    transform:translateY(-2px);
    box-shadow:var(--glass-edge), 0 16px 30px -14px rgba(0,0,0,.7), 0 0 26px -10px var(--accent-soft);
  }
  .glass-btn.primary{
    background:linear-gradient(135deg, var(--accent-soft), rgba(167,139,250,.38) 60%, rgba(255,255,255,.1));
    box-shadow:var(--glass-edge), 0 12px 30px -12px var(--accent);
  }
  .glass-btn.danger:hover{ background:linear-gradient(150deg, rgba(251,113,133,.38), rgba(251,113,133,.12)); }

  .card{
    background:linear-gradient(155deg, rgba(255,255,255,.12), rgba(255,255,255,.035) 55%, rgba(255,255,255,.07));
    -webkit-backdrop-filter:blur(14px) saturate(1.55); backdrop-filter:blur(14px) saturate(1.55);
    box-shadow:var(--glass-edge), 0 26px 44px -28px rgba(0,0,0,.75);
    transition:transform .6s var(--ease-soft), border-color .3s ease, box-shadow .4s ease, opacity .3s ease, background .3s ease;
  }
  .card:hover{
    transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(-4px);
    transition:transform .14s ease-out, border-color .3s ease, box-shadow .4s ease, opacity .3s ease, background .3s ease;
    box-shadow:var(--glass-edge), 0 34px 54px -26px rgba(0,0,0,.8), 0 0 34px -14px var(--c, var(--accent));
  }
  .card.dragging{ opacity:.45; transform:scale(.97); }
  .folder-card.drop-ok{ transform:translateY(-3px) scale(1.02); }

  /* brillo especular que sigue al puntero */
  .card::after, .glass-btn::after, .space-chip::after, .mini::after{
    content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; z-index:1;
    background:radial-gradient(180px circle at var(--mx,50%) var(--my,0%), rgba(255,255,255,.26), rgba(255,255,255,.07) 45%, transparent 70%);
    opacity:0; transition:opacity .4s ease;
  }
  .card:hover::after, .glass-btn:hover::after, .space-chip:hover::after, .mini:hover::after{ opacity:1; }
  .card::after{ background:radial-gradient(260px circle at var(--mx,50%) var(--my,0%), rgba(255,255,255,.2), rgba(255,255,255,.05) 45%, transparent 70%); }

  /* barra flotante de reproducción y dock del celular */
  .scrollbar-dock, .mobile-dock{
    background:linear-gradient(150deg, rgba(34,36,78,.62), rgba(14,16,40,.5));
    -webkit-backdrop-filter:blur(26px) saturate(1.7); backdrop-filter:blur(26px) saturate(1.7);
    box-shadow:var(--glass-edge), 0 28px 54px -18px rgba(0,0,0,.85), 0 0 46px -16px var(--accent-soft);
  }
  .scrollbar-dock button{ transition:transform .4s var(--spring), background .3s ease, box-shadow .4s ease; }
  .scrollbar-dock button:hover{ transform:scale(1.08); }
  .scrollbar-dock button.playing{ animation:glowPulse 2.6s ease-in-out infinite; }
  @keyframes glowPulse{ 0%,100%{ box-shadow:0 0 0 0 transparent; } 50%{ box-shadow:0 0 24px 3px var(--accent-soft); } }

  /* ventanas */
  .modal{ -webkit-backdrop-filter:blur(30px) saturate(1.7); backdrop-filter:blur(30px) saturate(1.7); }
  #toast{ -webkit-backdrop-filter:blur(18px) saturate(1.7); backdrop-filter:blur(18px) saturate(1.7); box-shadow:var(--glass-edge), 0 16px 34px -14px rgba(0,0,0,.7); }

  /* entradas */
  @keyframes itemIn{ from{ opacity:0; transform:translateY(16px) scale(.975); } to{ opacity:1; transform:none; } }
  .song-grid.enter .card, .song-grid.enter .space-head{ animation:itemIn .6s var(--spring) backwards; animation-delay:calc(var(--i, 0) * 36ms); }
  #homeScreen, #songScreen{ animation:screenIn2 .5s var(--ease-soft); }
  @keyframes screenIn2{ from{ opacity:0; transform:translateY(10px) scale(.992); } to{ opacity:1; transform:none; } }
  @keyframes lineIn{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
  .song-in .song-line{ animation:lineIn .55s var(--ease-soft) backwards; }
  .song-in .song-line:nth-child(1){ animation-delay:.04s; } .song-in .song-line:nth-child(2){ animation-delay:.08s; }
  .song-in .song-line:nth-child(3){ animation-delay:.12s; } .song-in .song-line:nth-child(4){ animation-delay:.16s; }
  .song-in .song-line:nth-child(5){ animation-delay:.20s; } .song-in .song-line:nth-child(6){ animation-delay:.24s; }
  .song-in .song-line:nth-child(7){ animation-delay:.28s; } .song-in .song-line:nth-child(8){ animation-delay:.32s; }
  .song-in .song-line:nth-child(n+9){ animation-delay:.36s; }
  .chord-tag{ transition:color .3s ease; }

  /* fondo: manchas que se deforman despacio, como líquido */
  @keyframes morph{
    0%,100%{ border-radius:42% 58% 63% 37% / 45% 40% 60% 55%; }
    33%{ border-radius:61% 39% 44% 56% / 38% 62% 38% 62%; }
    66%{ border-radius:37% 63% 55% 45% / 60% 42% 58% 40%; }
  }
  .blob.b1{ animation:drift1 22s ease-in-out infinite, morph 17s ease-in-out infinite; }
  .blob.b2{ animation:drift2 26s ease-in-out infinite, morph 21s ease-in-out infinite reverse; }
  .blob.b3{ animation:drift3 30s ease-in-out infinite, morph 19s ease-in-out infinite; }
  .blob.b4{ animation:drift1 24s ease-in-out infinite reverse, morph 23s ease-in-out infinite; }
  .blob.accent{ animation:drift2 20s ease-in-out infinite, morph 15s ease-in-out infinite; }
  .cursor-light{
    position:absolute; left:-210px; top:-210px; width:420px; height:420px; border-radius:50%; pointer-events:none; z-index:1;
    background:radial-gradient(circle, rgba(255,255,255,.16), rgba(255,255,255,.05) 40%, transparent 70%);
    mix-blend-mode:screen; opacity:0; transition:opacity .8s ease; will-change:transform;
  }
  .cursor-light.on{ opacity:1; }
  @media (hover:none), (pointer:coarse){ .cursor-light{ display:none; } .card:hover{ transform:none; } }
  @media (prefers-reduced-motion: reduce){ .card:hover{ transform:none; } .cursor-light{ display:none; } .blob{ animation:none !important; } }

  /* --- modo "solo canto": sin acordes --- */
  .chords-btn{ font-size:16px; }
  .chords-btn.off{ opacity:.7; }
  .chords-btn.off::before{ content:""; position:absolute; left:22%; right:22%; top:50%; height:2px; border-radius:2px; background:var(--rose); transform:rotate(-40deg); z-index:2; box-shadow:0 0 8px rgba(251,113,133,.7); }
  body.no-chords .chord-tag, body.no-chords .key-pill{ display:none; }
  body.no-chords .song-line{ padding-top:0; margin-bottom:10px; white-space:pre-wrap; font-family:'Manrope',sans-serif; font-size:calc(var(--lyric-size,16px) * 1.12); line-height:1.65; letter-spacing:.1px; }
  body.no-chords .song-line.blank{ height:.9em; margin-bottom:0; }
  .choice{ display:flex; flex-direction:column; gap:8px; }
  .choice-opt{
    font:inherit; text-align:left; display:flex; flex-direction:column; gap:3px; padding:12px 14px; border-radius:14px; cursor:pointer;
    color:var(--ink); background:rgba(255,255,255,.05); border:1px solid var(--glass-border);
    transition:background .3s ease, border-color .3s ease, box-shadow .35s ease, transform .35s var(--spring);
  }
  .choice-opt span{ font-size:12px; color:var(--ink-dim); }
  .choice-opt:hover{ background:rgba(255,255,255,.1); transform:translateY(-1px); }
  .choice-opt.on{ border-color:var(--accent); background:var(--accent-soft); box-shadow:0 0 24px -10px var(--accent); }
  /* ---------- vista en lista (canciones) ---------- */
  .view-btn svg{ width:18px; height:18px; display:block; }
  .song-card .txt{ position:relative; min-width:0; }
  .song-grid.list{ gap:8px; grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); }
  .song-grid.list .song-card{
    grid-column:1 / -1; min-height:52px; display:flex; flex-direction:row; align-items:center; justify-content:flex-start;
    gap:10px; padding:9px 10px 9px 36px; border-radius:16px; overflow:hidden;
  }
  .song-grid.list .song-card .txt{ flex:1 1 auto; }
  .song-grid.list .song-card .dot{ top:50%; left:15px; transform:translateY(-50%); width:9px; height:9px; }
  .song-grid.list .song-card .glow{ width:90px; height:90px; top:-30px; right:auto; left:-30px; opacity:.28; }
  .song-grid.list .song-card .t{ font-size:16.5px; margin:0; line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .song-grid.list .song-card .a{ font-size:11px; letter-spacing:.3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .song-grid.list .song-card .a:empty{ display:none; }
  .song-grid.list .song-card .path{ margin:0; }
  .song-grid.list .song-card .card-actions{ position:static; flex:0 0 auto; margin-left:auto; opacity:1; transform:none; gap:3px; }
  .song-grid.list .song-card .card-actions button{ width:28px; height:28px; }
  .song-grid.list .song-card:hover{ transform:translateY(-1px); }
  .song-grid.list .folder-card{
    grid-column:1 / -1; min-height:56px; display:flex; flex-direction:row; align-items:center; justify-content:flex-start;
    gap:10px; padding:9px 10px 9px 54px; border-radius:16px; overflow:hidden;
  }
  .folder-card .txt{ position:relative; min-width:0; }
  .song-grid.list .folder-card .txt{ flex:1 1 auto; }
  .song-grid.list .folder-card .fico{ top:50%; left:15px; width:28px; height:24px; transform:translateY(-50%); }
  .song-grid.list .folder-card:hover .fico{ transform:translateY(-50%) rotate(-3deg); }
  .song-grid.list .folder-card .t{ font-size:16.5px; margin:0; line-height:1.2; display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .song-grid.list .folder-card .a{ font-size:11px; letter-spacing:.3px; margin-top:2px; }
  .song-grid.list .folder-card .glow{ width:90px; height:90px; top:-30px; right:auto; left:-30px; opacity:.28; }
  .song-grid.list .folder-card .card-actions{ position:static; flex:0 0 auto; margin-left:auto; opacity:1; transform:none; gap:3px; }
  .song-grid.list .folder-card .card-actions button{ width:28px; height:28px; }
  .song-grid.list .add-card{ grid-column:1 / -1; min-height:0; flex-direction:row; padding:12px; gap:10px; }
  .song-grid.list .add-card .plus{ font-size:22px; }
  @media (max-width:640px){
    .song-grid.list .song-card .card-actions button[data-act="space"]{ display:none; }
  }
  /* ---------- lectura más compacta ---------- */
  .song-line{ margin-bottom:2px; line-height:1.4; }
  .song-line.nc{ padding-top:0; }
  .song-line.blank{ height:.7em; }
  body.no-chords .song-line{ margin-bottom:3px; line-height:1.45; }
  body.no-chords .song-line.blank{ height:.7em; }
  /* velocidad: número */
  .speed-label b{ color:var(--accent); font-size:13px; font-variant-numeric:tabular-nums; margin-left:2px; }
  .speed-bubble{
    position:absolute; bottom:calc(100% + 10px); transform:translateX(-50%) translateY(6px) scale(.9);
    min-width:34px; padding:6px 10px; border-radius:14px; text-align:center; font-weight:800; font-size:16px;
    color:#10122a; background:var(--accent); box-shadow:0 8px 24px -8px var(--accent-soft);
    opacity:0; pointer-events:none; transition:opacity .2s ease, transform .25s var(--spring, ease);
  }
  .speed-bubble.show{ opacity:1; transform:translateX(-50%) translateY(0) scale(1); }
  /* modo lectura */
  .topbar{ overflow:hidden; max-height:420px; transition:max-height .4s var(--ease-soft, ease), padding .4s var(--ease-soft, ease), opacity .3s ease, border-color .3s ease; }
  #songScreen.reading .topbar{ max-height:0; padding-top:0; padding-bottom:0; opacity:0; border-bottom-color:transparent; pointer-events:none; }
  .read-handle{
    position:absolute; top:4px; left:50%; transform:translate(-50%,-14px); z-index:6; opacity:0; pointer-events:none;
    width:44px; height:22px; border-radius:0 0 14px 14px; border:1px solid var(--glass-border); border-top:none;
    background:rgba(18,20,44,.6); color:var(--ink-dim); font-size:13px; line-height:1; cursor:pointer;
    -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
    transition:opacity .3s ease, transform .35s var(--ease-soft, ease);
  }
  #songScreen.reading .read-handle{ opacity:1; pointer-events:auto; transform:translate(-50%,0); }
  .lyrics-area{ cursor:pointer; }
  /* ---------- celular en horizontal: aprovechar el ancho ---------- */
  @media (orientation:landscape) and (max-height:620px){
    .lyrics-area{ padding:26px 22px 70px; }
    .lyrics-area #songRender{ max-width:none; column-count:var(--cols, 1); column-width:auto; column-gap:30px; column-rule:1px solid rgba(255,255,255,.08); }
    .lyrics-area #songRender .song-line{ break-inside:avoid; }
    .topbar{ padding-top:10px; padding-bottom:8px; }
    .scrollbar-dock{ left:auto; right:16px; bottom:10px; transform:none; padding:6px 14px; gap:10px; }
    .scrollbar-dock input[type=range]{ width:90px; }
    .speed-bubble{ bottom:calc(100% + 6px); }
  }
  /* ---------- orden + notación ---------- */
  .sort-sel{
    appearance:none; -webkit-appearance:none; border:1px solid var(--glass-border); border-radius:999px;
    background:rgba(255,255,255,.07); color:var(--ink); font:inherit; font-size:13px; font-weight:600;
    padding:0 28px 0 14px; height:44px; cursor:pointer; outline:none;
    background-image:linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position:calc(100% - 16px) 19px, calc(100% - 11px) 19px; background-size:5px 5px, 5px 5px; background-repeat:no-repeat;
    -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  }
  .sort-sel option{ background:#14183a; color:#fff; }
  .nota-btn{ font-size:12px; font-weight:800; letter-spacing:.02em; }
  body.no-chords .nota-btn{ display:none; }
  @media (max-width:640px){ .home-toolbar{ flex-wrap:wrap; } .sort-sel{ height:40px; } }
  /* ---------- buscador legible sobre cualquier fondo ---------- */
  .home-toolbar input#searchInput{
    background:rgba(9,11,32,.46) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23dfe3ff' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>") no-repeat 16px center;
    border:1px solid rgba(255,255,255,.26);
    color:#fff;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.14), inset 0 8px 18px -10px rgba(0,0,0,.45), 0 8px 24px -14px rgba(0,0,0,.5);
    -webkit-backdrop-filter:blur(16px) saturate(1.2); backdrop-filter:blur(16px) saturate(1.2);
  }
  .home-toolbar input#searchInput::placeholder{ color:rgba(236,239,255,.68); }
  .home-toolbar input#searchInput:focus{
    background-color:rgba(9,11,32,.62); border-color:rgba(255,255,255,.5);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 4px var(--accent-soft);
  }
  .sort-sel{ background-color:rgba(9,11,32,.46); border-color:rgba(255,255,255,.26); }
  /* ---------- fluidez: menos trabajo por fotograma ---------- */
  /* manchas del fondo: máscara en vez de blur(64px) + sin animar border-radius (solo transform, va por GPU) */
  .blob{ filter:none; -webkit-mask-image:radial-gradient(circle closest-side, #000 20%, transparent 100%); mask-image:radial-gradient(circle closest-side, #000 20%, transparent 100%); backface-visibility:hidden; }
  .blob.b1{ animation:drift1 22s ease-in-out infinite; }
  .blob.b2{ animation:drift2 26s ease-in-out infinite; }
  .blob.b3{ animation:drift3 30s ease-in-out infinite; }
  .blob.b4{ animation:drift1 24s ease-in-out infinite reverse; }
  .blob.accent{ animation:drift2 20s ease-in-out infinite; }
  /* tarjetas: sin desenfoque propio por cada una */
  .card{ -webkit-backdrop-filter:none; backdrop-filter:none; background-color:rgba(24,26,56,.34); }
  .card .glow{ filter:none; -webkit-mask-image:radial-gradient(circle closest-side, #000 10%, transparent 100%); mask-image:radial-gradient(circle closest-side, #000 10%, transparent 100%); }
  /* luz del cursor sin mezcla de fusión, y sin pulso de sombra animada */
  .cursor-light{ mix-blend-mode:normal; }
  .scrollbar-dock button.playing{ animation:none; box-shadow:0 0 22px 2px var(--accent-soft); }
  /* leyendo una canción: el fondo se queda quieto para que el scroll vaya suave */
  body.song-open .blob{ animation-play-state:paused; }
  /* modo ligero (se activa solo si el equipo va justo) */
  body.lite .blob{ animation:none !important; }
  body.lite *, body.lite *::before, body.lite *::after{ -webkit-backdrop-filter:none !important; backdrop-filter:none !important; }
  body.lite .panel.glass, body.lite .modal, body.lite #toast, body.lite .topbar, body.lite .scrollbar-dock{ background-color:rgba(17,19,44,.93) !important; }
  body.lite .cursor-light{ display:none; }
  body.lite .card:hover{ transform:none; }
  /* aviso de título repetido */
  .dup-hint{ margin-top:7px; font-size:12.5px; line-height:1.35; color:#ffd48a; background:rgba(255,190,80,.12); border:1px solid rgba(255,190,80,.35); border-radius:10px; padding:7px 10px; }
  .dup-hint[hidden]{ display:none; }
  .dup-hint.shake{ animation:dupShake .4s ease; }
  @keyframes dupShake{ 20%{ transform:translateX(-4px); } 40%{ transform:translateX(4px); } 60%{ transform:translateX(-3px); } 80%{ transform:translateX(2px); } }
  /* ---------- avatares ---------- */
  .av-grid{ display:grid; grid-template-columns:repeat(6, 1fr); gap:8px; max-width:340px; }
  .av-opt{
    aspect-ratio:1; border-radius:50%; border:2px solid rgba(255,255,255,.18); font-size:21px; line-height:1; cursor:pointer;
    display:flex; align-items:center; justify-content:center; padding:0;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.4), 0 6px 14px -8px rgba(0,0,0,.6);
    transition:transform .25s var(--spring, ease), border-color .2s ease, box-shadow .25s ease;
  }
  .av-opt:hover{ transform:scale(1.1); }
  .av-opt.on{ border-color:#fff; transform:scale(1.12); box-shadow:0 0 0 4px var(--accent-soft), inset 0 1px 0 rgba(255,255,255,.4); }
  .hint-inline{ font-weight:400; color:var(--ink-faint); font-size:11.5px; }
  .glass-btn.acct .av-mini{ position:relative; width:24px; height:24px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:14px; line-height:1; margin-left:-4px; box-shadow:inset 0 1px 0 rgba(255,255,255,.4); }
  .glass-btn.acct .av-mini .adot{ position:absolute; right:-2px; bottom:-2px; width:9px; height:9px; border:2px solid rgba(20,22,50,.95); box-sizing:border-box; }
  /* ---------- coro (ChordPro: {soc} … {eoc}) ---------- */
  .chorus{
    position:relative; margin:8px 0 10px; padding:6px 10px 6px 14px; border-left:3px solid var(--accent);
    background:linear-gradient(90deg, var(--accent-soft), transparent 75%); border-radius:0 12px 12px 0; break-inside:avoid;
  }
  .chorus .song-line{ font-weight:700; }
  .chorus .chord-tag{ font-weight:800; }
  .sec-label{ font-family:'Manrope',system-ui,sans-serif; font-size:10.5px; letter-spacing:.16em; text-transform:uppercase; font-weight:800; color:var(--accent); opacity:.95; margin:0 0 3px; }
  .sec-label.solo{ margin:10px 0 2px; color:var(--ink-dim); }

  /* =====================================================
     v3 — encabezado compacto, barra lateral, recorrido guiado
     ===================================================== */
  #homeScreen{ flex-direction:row; }
  .home-main{ flex:1; min-width:0; min-height:0; display:flex; flex-direction:column; }
  .home-header{ padding:16px 28px 2px; align-items:center; }
  .home-header .greet h1{ font-size:27px; line-height:1.1; }
  .greet-row{ margin-bottom:4px; gap:4px 14px; }
  .home-header .greet .home-sub{ margin:0; font-size:13.5px; color:var(--ink-dim); display:flex; flex-wrap:wrap; gap:6px 8px; align-items:center; }
  .home-sub:empty{ display:none; }
  .home-sub strong{ color:var(--ink); font-family:'Fraunces',serif; font-weight:600; letter-spacing:.5px; }
  .stat{ display:inline-flex; align-items:center; gap:7px; padding:3px 11px 3px 9px; border-radius:999px; background:rgba(255,255,255,.06); border:1px solid var(--glass-border); font-size:12.5px; font-weight:600; color:var(--ink); }
  .stat i{ width:7px; height:7px; border-radius:50%; background:var(--c); box-shadow:0 0 9px var(--c); }
  .home-toolbar{ padding:10px 28px 2px; }
  .crumbs{ padding:6px 28px 0; min-height:32px; }
  .spaces-strip{ padding:6px 28px 0; }
  .song-grid{ padding:16px 28px 40px; }
  .glass-btn .ic{ display:inline-block; }
  .glass-btn.icon-only .lb, .icon-btn-wrap .lb{ display:none; }
  .side-inner .glass-btn.icon-only .lb{ display:inline; }

  /* barra lateral (solo pantallas anchas) */
  .side-rail{ position:relative; width:0; flex:0 0 auto; z-index:6; transition:width .6s var(--ease-soft); }
  #homeScreen.has-side .side-rail{ width:76px; }
  #homeScreen.has-side .home-header .actions{ display:none; }
  .side-inner{
    position:absolute; left:10px; top:14px; width:56px; max-height:calc(100% - 28px); padding:6px;
    display:flex; flex-direction:column; gap:6px; border-radius:24px; overflow-x:hidden; overflow-y:auto; scrollbar-width:none;
    background:linear-gradient(160deg, rgba(255,255,255,.11), rgba(255,255,255,.03));
    border:1px solid var(--glass-border); border-top-color:var(--glass-border-bright);
    -webkit-backdrop-filter:blur(20px) saturate(1.6); backdrop-filter:blur(20px) saturate(1.6);
    box-shadow:var(--glass-edge), 0 24px 44px -22px rgba(0,0,0,.7), 0 0 40px -18px var(--accent-soft);
    opacity:0; transform:translateX(-16px); pointer-events:none;
    transition:width .35s var(--ease-soft), opacity .5s ease, transform .6s var(--spring);
  }
  .side-inner::-webkit-scrollbar{ display:none; }
  #homeScreen.has-side .side-inner{ opacity:1; transform:none; pointer-events:auto; }
  .side-inner:hover, .side-inner:focus-within{ width:204px; }
  .side-slot{ display:flex; flex-direction:column; gap:6px; padding:6px 0; border-top:1px solid rgba(255,255,255,.1); border-bottom:1px solid rgba(255,255,255,.1); }
  .side-inner .glass-btn{ width:100%; height:42px; padding:0 11px; border-radius:17px; justify-content:flex-start; gap:12px; white-space:nowrap; flex-shrink:0; aspect-ratio:auto; font-size:13.5px; }
  .side-inner .glass-btn .ic{ width:20px; flex:0 0 20px; text-align:center; font-size:15px; line-height:1; display:inline-flex; align-items:center; justify-content:center; }
  .side-inner .glass-btn .lb{ opacity:0; transition:opacity .2s ease; }
  .side-inner:hover .glass-btn .lb, .side-inner:focus-within .glass-btn .lb{ opacity:1; }
  .side-inner .icon-btn-wrap{ display:block; position:relative; }
  .side-inner .icon-btn-wrap .badge{ top:-3px; right:2px; }
  #sideNewSong{ background:linear-gradient(135deg, var(--accent-soft), rgba(167,139,250,.38)); }

  /* recorrido guiado */
  #tour{ position:fixed; inset:0; z-index:90; display:none; }
  #tour.on{ display:block; animation:veilIn .3s ease; }
  @keyframes veilIn{ from{ opacity:0; } to{ opacity:1; } }
  .tour-block{ position:fixed; inset:0; }
  .tour-spot{
    position:fixed; pointer-events:none;
    box-shadow:0 0 0 9999px rgba(5,6,18,.76), 0 0 0 2px var(--accent), 0 0 34px 3px var(--accent-soft);
    transition:left .5s var(--ease-soft), top .5s var(--ease-soft), width .5s var(--ease-soft), height .5s var(--ease-soft), border-radius .5s ease;
  }
  .tour-spot.nofocus{ box-shadow:0 0 0 9999px rgba(5,6,18,.8); }
  .tour-card{
    position:fixed; padding:18px 18px 14px; border-radius:22px; color:var(--ink);
    background:linear-gradient(160deg, rgba(44,40,96,.94), rgba(15,17,44,.96));
    border:1px solid var(--glass-border); border-top-color:var(--glass-border-bright);
    box-shadow:var(--glass-edge), 0 40px 80px -24px rgba(0,0,0,.9), 0 0 50px -18px var(--accent-soft);
    transition:left .5s var(--ease-soft), top .5s var(--ease-soft);
  }
  .tour-count{ font-size:11px; letter-spacing:1.4px; font-weight:800; color:var(--accent); }
  .tour-card h4{ font-family:'Fraunces',serif; font-size:21px; font-weight:600; margin:4px 0 6px; letter-spacing:-.2px; }
  .tour-card p{ margin:0; font-size:14px; line-height:1.55; color:var(--ink-dim); }
  .tour-dots{ display:flex; gap:5px; margin:14px 0 12px; }
  .tour-dots i{ width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.2); transition:width .3s var(--ease-soft), background .3s; }
  .tour-dots i.on{ width:20px; border-radius:4px; background:var(--accent); }
  .tour-btns{ display:flex; align-items:center; gap:8px; }
  .tour-btns .glass-btn{ padding:8px 16px; font-size:13.5px; }
  .tour-skip{ font:inherit; font-size:13px; font-weight:600; color:var(--ink-faint); background:none; border:none; cursor:pointer; padding:8px 4px; }
  .tour-skip:hover{ color:var(--ink); }

  @media (max-width:900px){
    .home-header{ padding:14px 18px 2px; flex-direction:column; align-items:flex-start; }
    .home-header .greet h1{ font-size:24px; }
    .home-toolbar{ padding:8px 18px 2px; }
    .crumbs, .spaces-strip{ padding-left:18px; padding-right:18px; }
    .song-grid{ padding:12px 18px 100px; }
    #viewBtn{ display:none; }
    .side-rail{ display:none; }
  }
  /* saludo y frase del día */
  .quote-card{
    grid-column:1 / -1; margin:18px auto 0; padding:20px 26px; max-width:640px; text-align:center; border-radius:22px;
    background:linear-gradient(155deg, rgba(255,255,255,.07), rgba(255,255,255,.015));
    border:1px dashed rgba(255,255,255,.2);
  }
  .quote-card blockquote{ margin:0; font-family:'Fraunces',serif; font-style:italic; font-size:18px; line-height:1.5; color:var(--ink); }
  .quote-card figcaption{ margin-top:10px; font-size:11.5px; letter-spacing:1.3px; text-transform:uppercase; font-weight:700; color:var(--accent); }
  .song-grid.enter .quote-card{ animation:itemIn .6s var(--spring) backwards; animation-delay:.5s; }
  /* espacios: navegación en la canción, duración tipo alarma, reordenar */
  .space-nav{
    position:absolute; left:50%; bottom:96px; transform:translateX(-50%); z-index:5;
    display:flex; align-items:center; gap:6px; padding:6px; border-radius:999px; background:rgba(18,20,44,.55);
  }
  .space-nav button{
    font:inherit; font-size:13px; font-weight:700; color:var(--ink); white-space:nowrap; cursor:pointer;
    background:rgba(255,255,255,.1); border:1px solid transparent; border-radius:999px; padding:9px 15px;
    transition:background .25s ease, transform .35s var(--spring), opacity .25s ease;
  }
  .space-nav button:hover:not(:disabled){ background:rgba(255,255,255,.2); transform:translateY(-1px); }
  .space-nav button:active:not(:disabled){ transform:scale(.96); }
  .space-nav button:disabled{ opacity:.3; cursor:default; }
  .space-nav .sp-back{ background:linear-gradient(135deg, var(--accent-soft), rgba(167,139,250,.32)); border-color:rgba(255,255,255,.2); }
  .space-nav .sp-back b{ font-weight:800; font-size:11.5px; opacity:.8; margin-left:4px; }
  #songScreen.has-nav .lyrics-area{ padding-bottom:220px; }
  .scrollbar-dock #homeBtn{ font-size:16px; }
  @media (max-width:900px){ .space-nav{ bottom:82px; } }
  @media (max-width:520px){ .space-nav .t{ display:none; } .space-nav button{ padding:9px 14px; } }
  @media (orientation:landscape) and (max-height:620px){
    .space-nav{ left:auto; right:16px; bottom:60px; transform:none; padding:4px; }
    .space-nav button{ padding:7px 12px; }
    #songScreen.has-nav .lyrics-area{ padding-bottom:120px; }
  }

  .dur-row{ display:flex; gap:10px; }
  .dur-col{ flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; padding:8px 6px 6px; border-radius:16px; background:rgba(255,255,255,.05); border:1px solid var(--glass-border); }
  .dur-col button{ width:100%; height:26px; border:none; border-radius:10px; background:transparent; color:var(--ink-dim); font-size:12px; cursor:pointer; transition:background .2s ease, color .2s ease; }
  .dur-col button:hover{ background:rgba(255,255,255,.12); color:var(--ink); }
  .dur-col input{ width:100%; border:none !important; background:transparent !important; text-align:center; padding:2px 0 !important; box-shadow:none !important; font-family:'IBM Plex Mono',monospace; font-size:26px; font-weight:600; color:var(--accent); -moz-appearance:textfield; appearance:textfield; }
  .dur-col input::-webkit-outer-spin-button, .dur-col input::-webkit-inner-spin-button{ -webkit-appearance:none; appearance:none; margin:0; }
  .dur-col span{ font-size:11px; letter-spacing:1.2px; text-transform:uppercase; color:var(--ink-faint); }
  .dur-presets{ display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
  #spaceUntil{ color-scheme:dark; }

  .ord{ display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 6px; margin-right:8px; border-radius:999px; font-family:'IBM Plex Mono',monospace; font-size:11px; font-weight:700; color:#10122a; background:var(--c, var(--accent)); vertical-align:2px; }
  .drag-handle{ cursor:grab; touch-action:none; }
  .song-grid.list .song-card .card-actions .drag-handle{ width:34px; height:34px; color:var(--ink); background:rgba(255,255,255,.1); }
  .song-card.sorting{ z-index:20; cursor:grabbing; transition:none !important; box-shadow:var(--glass-edge), 0 26px 50px -14px rgba(0,0,0,.85), 0 0 34px -10px var(--c, var(--accent)); }
  .song-grid.sorting{ user-select:none; -webkit-user-select:none; }
  .song-grid.sorting .song-card:not(.sorting){ transition:transform .22s var(--ease-soft) !important; }

  /* =====================================================
     v4 — movimiento más fluido + menú lateral más oscuro
     ===================================================== */
  :root{ --ease-expo:cubic-bezier(.16,1,.3,1); }
  @property --rx{ syntax:'<angle>'; inherits:false; initial-value:0deg; }
  @property --ry{ syntax:'<angle>'; inherits:false; initial-value:0deg; }
  @property --ty{ syntax:'<length>'; inherits:false; initial-value:0px; }

  /* tarjetas: la inclinación y la elevación se animan como valores, no se "cortan" */
  .card{
    --ty:0px;
    transform:perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--ty));
    transition:--rx .55s var(--ease-expo), --ry .55s var(--ease-expo), --ty .55s var(--ease-expo), scale .3s var(--ease-expo),
               border-color .35s ease, box-shadow .5s ease, opacity .3s ease, background .35s ease;
  }
  .card:hover{
    --ty:-4px;
    transform:perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--ty));
    transition:--rx .22s ease-out, --ry .22s ease-out, --ty .5s var(--ease-expo), scale .3s var(--ease-expo),
               border-color .35s ease, box-shadow .5s ease, opacity .3s ease, background .35s ease;
  }
  @media (hover:none), (pointer:coarse){ .card:hover{ --ty:0px; } }
  @media (prefers-reduced-motion: reduce){ .card:hover{ --ty:0px; } }

  /* entradas: curva suave sin rebote y sin escalar pantallas enteras */
  @keyframes itemIn3{ from{ opacity:0; transform:translateY(20px); } to{ opacity:1; transform:none; } }
  .song-grid.enter .card, .song-grid.enter .space-head{ animation:itemIn3 .7s var(--ease-expo) backwards; animation-delay:calc(var(--i, 0) * 40ms); }
  .song-grid.enter .quote-card{ animation:itemIn3 .8s var(--ease-expo) backwards; animation-delay:.45s; }
  @keyframes screenIn3{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
  #homeScreen, #songScreen{ animation:screenIn3 .45s var(--ease-expo); }
  .song-in .song-line{ animation-duration:.6s; animation-timing-function:var(--ease-expo); }
  .glass-btn, .space-chip, .mini{ transition-timing-function:var(--ease-expo); }
  .lyrics-area, .song-grid{ overscroll-behavior:contain; }
  button, .card{ -webkit-tap-highlight-color:transparent; }

  /* menú lateral: al acercarte se vuelve más oscuro y opaco para que no se mezcle con lo de atrás */
  .side-inner{
    transition:width .55s var(--ease-expo), opacity .5s ease, transform .6s var(--ease-expo), box-shadow .45s ease;
  }
  .side-inner::before{
    content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; z-index:0;
    background:linear-gradient(165deg, rgba(20,22,56,.96), rgba(8,9,26,.98)); opacity:0; transition:opacity .4s ease;
  }
  .side-inner > *{ position:relative; z-index:1; }
  .side-inner:hover::before, .side-inner:focus-within::before{ opacity:1; }
  .side-inner:hover, .side-inner:focus-within{
    box-shadow:var(--glass-edge), 0 34px 60px -22px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.05);
  }
  .side-inner .glass-btn .lb{ opacity:0; transform:translateX(-8px); transition:opacity .25s ease, transform .5s var(--ease-expo); }
  .side-inner:hover .glass-btn .lb, .side-inner:focus-within .glass-btn .lb{ opacity:1; transform:none; transition-delay:.07s; }
  /* varios artistas */
  .artist-head{ grid-column:1 / -1; display:flex; align-items:center; gap:10px; margin:14px 2px 0; font-size:12px; font-weight:800; letter-spacing:1.4px; text-transform:uppercase; color:var(--accent); }
  .artist-head:first-child{ margin-top:2px; }
  .artist-head::after{ content:""; flex:1; height:1px; background:linear-gradient(90deg, rgba(255,255,255,.18), transparent); order:3; }
  .artist-head i{ font-style:normal; font-weight:700; font-size:11px; letter-spacing:0; padding:1px 8px; border-radius:999px; background:rgba(255,255,255,.08); color:var(--ink-dim); }
  .artist-head.none{ color:var(--ink-faint); }
  .topbar .artist .a-chip{ display:inline-block; margin:2px 6px 2px 0; padding:2px 10px; border-radius:999px; background:rgba(255,255,255,.08); border:1px solid var(--glass-border); letter-spacing:.6px; }
  /* docks y barras flotantes: cristal oscuro, fácil de leer sobre cualquier fondo */
  .mobile-dock, .scrollbar-dock, .space-nav{
    background:
      linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0) 38%),
      linear-gradient(150deg, rgba(18,20,50,.86), rgba(7,8,24,.92));
    -webkit-backdrop-filter:blur(22px) saturate(1.9) brightness(.8); backdrop-filter:blur(22px) saturate(1.9) brightness(.8);
    border:1px solid rgba(255,255,255,.16); border-top-color:rgba(255,255,255,.34);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(255,255,255,.05), 0 24px 46px -16px rgba(0,0,0,.9), 0 0 34px -14px var(--accent-soft);
  }
  .mobile-dock .glass-btn, .scrollbar-dock button, .space-nav button{ color:#fff; text-shadow:0 1px 6px rgba(0,0,0,.6); }
  .mobile-dock .glass-btn:not(.primary){ background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.2); }
  .mobile-dock .glass-btn.primary{ background:linear-gradient(135deg, rgba(47,216,196,.5), rgba(167,139,250,.5)); border-color:rgba(255,255,255,.35); font-weight:800; }
  /* favoritas y etiquetas */
  .filter-row{ display:flex; flex-wrap:wrap; gap:8px; padding:8px 28px 0; }
  .fchip{ font:inherit; font-size:12.5px; font-weight:700; color:var(--ink); cursor:pointer; padding:6px 13px; border-radius:999px; background:rgba(255,255,255,.07); border:1px solid var(--glass-border); display:inline-flex; align-items:center; gap:7px; transition:background .3s var(--ease-expo), transform .4s var(--ease-expo), border-color .3s ease; }
  .fchip i{ font-style:normal; font-size:11px; opacity:.65; }
  .fchip:hover{ background:rgba(255,255,255,.14); transform:translateY(-1px); }
  .fchip.on{ background:linear-gradient(135deg, var(--accent-soft), rgba(167,139,250,.34)); border-color:rgba(255,255,255,.4); }
  .fchip.clear{ color:var(--ink-dim); background:transparent; border-style:dashed; }
  .star{ color:#f3b451; margin-right:6px; font-size:.9em; text-shadow:0 0 10px rgba(243,180,81,.6); }
  .card-actions .fav.on{ color:#f3b451; }
  .fav-btn{ font-size:18px; }
  .fav-btn.on{ color:#f3b451; text-shadow:0 0 12px rgba(243,180,81,.7); }
  .song-tags{ display:flex; flex-wrap:wrap; gap:4px; margin-top:2px; }
  .song-tags:empty{ display:none; }
  .song-tags .tg{ display:inline-block; font-size:11px; padding:1px 9px; letter-spacing:.3px; text-transform:none; color:var(--ink-dim); border-radius:999px; background:rgba(255,255,255,.08); border:1px solid var(--glass-border); }
  @media (max-width:900px){ .filter-row{ padding:8px 18px 0; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; } .filter-row::-webkit-scrollbar{ display:none; } .fchip{ flex:0 0 auto; } }
  /* capo */
  .capo-pill .k{ min-width:74px; font-size:12.5px; color:var(--ink-dim); white-space:nowrap; }
  .capo-pill.on .k{ color:var(--accent); }
  body.no-chords .capo-pill{ display:none; }
  /* modo escenario */
  body.stage{ --lyric-size:var(--stage-size, 28px); background:#04050d; }
  body.stage .blob, body.stage .cursor-light, body.stage .grain{ display:none !important; }
  body.stage #songScreen{ position:fixed; inset:0; z-index:60; background:#04050d; animation:none; }
  body.stage #songScreen .topbar, body.stage #songScreen .scrollbar-dock, body.stage #songScreen .space-nav, body.stage #songScreen .read-handle{ display:none !important; }
  body.stage .lyrics-area{ padding:4vh 6vw 55vh; scroll-behavior:auto; }
  body.stage .lyric-text{ color:#fff; font-weight:600; }
  body.stage .chord-tag{ color:#ffd166; font-weight:800; text-shadow:0 0 18px rgba(255,209,102,.35); }
  body.stage .song-line{ line-height:1.5; }
  #stageBar{
    position:fixed; left:50%; bottom:calc(16px + env(safe-area-inset-bottom, 0px)); z-index:80; width:max-content; max-width:calc(100vw - 16px);
    display:none; flex-wrap:wrap; justify-content:center; align-items:center; gap:8px 12px; padding:8px 12px; border-radius:26px;
    background:linear-gradient(150deg, rgba(20,22,54,.94), rgba(8,9,26,.96)); border:1px solid rgba(255,255,255,.2); border-top-color:rgba(255,255,255,.38);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.25), 0 24px 50px -14px rgba(0,0,0,.95);
    -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px);
    transform:translate(-50%, 140%); opacity:0; pointer-events:none; transition:transform .55s var(--ease-expo), opacity .35s ease;
  }
  body.stage #stageBar{ display:flex; }
  body.stage #stageBar.show{ transform:translate(-50%, 0); opacity:1; pointer-events:auto; }
  #stageBar button{ font:inherit; font-weight:800; font-size:15px; color:#fff; min-width:38px; height:40px; padding:0 10px; border-radius:14px; border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.1); cursor:pointer; transition:background .25s ease, transform .35s var(--ease-expo); }
  #stageBar button:hover:not(:disabled){ background:rgba(255,255,255,.2); transform:translateY(-1px); }
  #stageBar button:active:not(:disabled){ transform:scale(.94); }
  #stageBar button:disabled{ opacity:.3; }
  #stageBar .st-exit{ background:rgba(251,113,133,.3); border-color:rgba(251,113,133,.5); }
  #stageBar .st-grp{ display:inline-flex; align-items:center; gap:6px; }
  #stageBar b{ min-width:38px; text-align:center; font-family:'IBM Plex Mono',monospace; font-size:16px; color:var(--accent); }
  #stageBar input[type=range]{ width:84px; }
  @media (max-width:520px){ #stageBar{ gap:6px 8px; padding:8px; border-radius:22px; } #stageBar .st-grp{ gap:4px; } #stageBar input[type=range]{ width:64px; } #stageBar button{ min-width:34px; padding:0 7px; font-size:14px; } }
  body.stage #toast{ bottom:auto; top:18px; z-index:90; }
  /* herramientas */
  .tools-tabs{ display:flex; gap:6px; padding:0 22px 4px; }
  .tt{ flex:1; font:inherit; font-size:13px; font-weight:700; color:var(--ink-dim); background:rgba(255,255,255,.05); border:1px solid var(--glass-border); border-radius:999px; padding:8px 6px; cursor:pointer; transition:background .3s var(--ease-expo), color .3s ease; }
  .tt.on{ color:var(--ink); background:linear-gradient(135deg, var(--accent-soft), rgba(167,139,250,.34)); border-color:rgba(255,255,255,.35); }
  .tools-body{ gap:12px; }
  .tp{ display:none; flex-direction:column; gap:14px; align-items:stretch; }
  .tp.on{ display:flex; animation:itemIn3 .5s var(--ease-expo); }
  .metro-big{ display:flex; align-items:center; justify-content:center; gap:22px; }
  .metro-big > div{ text-align:center; min-width:120px; }
  .metro-big span{ display:block; font-family:'IBM Plex Mono',monospace; font-size:64px; font-weight:700; line-height:1; color:var(--accent); }
  .metro-big small{ letter-spacing:2px; color:var(--ink-faint); font-size:11px; font-weight:800; }
  .metro-big button{ width:48px; height:48px; border-radius:50%; font-size:22px; color:var(--ink); cursor:pointer; background:rgba(255,255,255,.08); border:1px solid var(--glass-border); }
  .metro-big button:active{ transform:scale(.92); }
  .metro-dots{ display:flex; justify-content:center; gap:12px; min-height:18px; }
  .metro-dots i{ width:16px; height:16px; border-radius:50%; background:rgba(255,255,255,.14); transition:background .08s, transform .12s, box-shadow .12s; }
  .metro-dots i.acc{ border:2px solid var(--accent); }
  .metro-dots i.on{ background:var(--accent); transform:scale(1.35); box-shadow:0 0 16px var(--accent-soft); }
  .metro-row{ display:flex; gap:10px; align-items:center; justify-content:space-between; }
  .metro-row label{ font-size:12px; font-weight:700; color:var(--ink-dim); display:flex; align-items:center; gap:8px; }
  .metro-row select{ font:inherit; color:var(--ink); background:rgba(255,255,255,.07); border:1px solid var(--glass-border); border-radius:10px; padding:7px 8px; }
  .metro-row select option{ color:#111; }
  .metro-go{ justify-content:center; font-size:15px; padding:13px; }
  .metro-pill{ position:fixed; left:14px; bottom:14px; z-index:70; font:inherit; font-weight:800; font-size:13px; color:#fff; padding:9px 12px 9px 14px; border-radius:999px; cursor:pointer; display:inline-flex; gap:8px; align-items:center; background:linear-gradient(150deg, rgba(20,22,54,.94), rgba(8,9,26,.96)); border:1px solid rgba(255,255,255,.22); box-shadow:0 14px 30px -10px rgba(0,0,0,.85); }
  .metro-pill[hidden]{ display:none; }
  .metro-pill.tick{ animation:pillTick .18s ease; }
  @keyframes pillTick{ 0%{ box-shadow:0 0 0 0 var(--accent-soft), 0 14px 30px -10px rgba(0,0,0,.85); } 100%{ box-shadow:0 0 0 12px transparent, 0 14px 30px -10px rgba(0,0,0,.85); } }
  .metro-pill b{ font-family:'IBM Plex Mono',monospace; color:var(--accent); }
  .metro-pill span{ width:24px; height:24px; border-radius:50%; background:rgba(251,113,133,.35); display:inline-flex; align-items:center; justify-content:center; font-size:10px; }
  @media (max-width:900px){ .metro-pill{ bottom:92px; } body.song-open .metro-pill{ bottom:14px; } .tools-home-btn{ display:none; } }
  .tuner-note{ text-align:center; }
  .tuner-note span{ display:block; font-family:'Fraunces',serif; font-size:88px; line-height:1; font-weight:600; color:var(--ink); }
  .tuner-note small{ color:var(--ink-faint); font-size:12.5px; }
  .tuner-meter{ position:relative; height:14px; border-radius:999px; background:linear-gradient(90deg, rgba(251,113,133,.5), rgba(243,180,81,.45) 35%, rgba(47,216,196,.7) 50%, rgba(243,180,81,.45) 65%, rgba(251,113,133,.5)); margin:8px 4px; }
  .tuner-meter .mid{ position:absolute; left:50%; top:-6px; bottom:-6px; width:2px; background:rgba(255,255,255,.6); }
  .tuner-meter i{ position:absolute; top:-6px; width:6px; height:26px; margin-left:-3px; left:50%; border-radius:4px; background:#fff; box-shadow:0 0 12px rgba(255,255,255,.8); transition:left .12s linear; }
  .tuner-cents{ text-align:center; font-weight:800; font-size:14px; color:var(--ink-dim); min-height:20px; }
  #tpTuner.ok .tuner-note span, #tpTuner.ok .tuner-cents{ color:var(--teal); }
  .ref-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; }
  .ref-grid .glass-btn{ flex-direction:column; gap:2px; padding:12px 4px; justify-content:center; height:auto; border-radius:16px; }
  .ref-grid .glass-btn b{ font-size:20px; }
  .ref-grid .glass-btn small{ font-size:10px; color:var(--ink-dim); font-weight:700; }
  .ref-grid .glass-btn.on{ background:linear-gradient(135deg, var(--accent-soft), rgba(167,139,250,.4)); border-color:rgba(255,255,255,.4); }
  /* compartir */
  .share-opt{ padding:14px; border-radius:18px; background:rgba(255,255,255,.05); border:1px solid var(--glass-border); }
  .so-t{ font-weight:800; font-size:14.5px; }
  .so-d{ font-size:12.5px; color:var(--ink-dim); margin:4px 0 10px; line-height:1.45; }
  .so-b{ display:flex; gap:8px; flex-wrap:wrap; }
  .so-w{ margin-top:10px; font-size:12px; color:var(--amber); line-height:1.45; }
  #dlgExtra{ white-space:pre-line; }
  /* impresión / PDF */
  #printRoot{ display:none; }
  @media print{
    html, body{ height:auto !important; overflow:visible !important; background:#fff !important; }
    body.printing > *:not(#printRoot){ display:none !important; }
    body.printing #printRoot{ display:block; color:#000; font-family:'Manrope', Arial, sans-serif; padding:0; }
    #printRoot h1{ font-family:'Fraunces', Georgia, serif; font-size:26px; margin:0 0 4px; }
    #printRoot .pr-sub{ color:#555; font-size:12px; margin-bottom:14px; }
    #printRoot .pr-list{ font-size:15px; line-height:1.9; padding-left:22px; margin:0; }
    #printRoot .pr-list span{ color:#555; font-size:12.5px; margin-left:6px; }
    #printRoot .pr-list em{ font-style:normal; font-weight:800; color:#000; border:1px solid #999; border-radius:6px; padding:0 6px; margin-left:8px; font-size:12px; }
    #printRoot .pr-song{ break-before:page; }
    #printRoot .pr-song h2{ font-family:'Fraunces', Georgia, serif; font-size:21px; margin:0; }
    #printRoot .pr-meta{ color:#444; font-size:12px; margin:2px 0 16px; }
    #printRoot .song-line{ font-size:12.5px; color:#000; page-break-inside:avoid; }
    #printRoot .lyric-text, #printRoot .lyric-text.faded{ color:#000 !important; }
    #printRoot .chord-tag{ color:#000 !important; font-weight:800; text-shadow:none; }
    #printRoot .chorus{ border-left:3px solid #999; background:none !important; }
    #printRoot .sec-label{ color:#555 !important; }
  }
  /* =====================================================
     TEMA CLARO  (html[data-theme="light"])
     ===================================================== */
  .theme-row{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin:6px 0; }
  .theme-row > span{ font-size:13px; font-weight:700; color:var(--ink-dim); margin-right:4px; }
  .tpill{ font:inherit; font-size:12.5px; font-weight:700; color:var(--ink); cursor:pointer; padding:6px 12px; border-radius:999px; background:rgba(255,255,255,.07); border:1px solid var(--glass-border); }
  .tpill.on{ background:linear-gradient(135deg, var(--accent-soft), rgba(167,139,250,.34)); border-color:var(--glass-border-bright); }

  html[data-theme="light"]{
    color-scheme:light;
    --bg-1:#eef1fa; --bg-2:#dfe5f6;
    --teal:#0ea896; --violet:#7c62e8; --amber:#d9890b; --rose:#e04a63;
    --accent:var(--teal); --accent-soft:rgba(14,168,150,.24);
    --ink:#171b38; --ink-dim:#454c72; --ink-faint:#6b7292;
    --glass-bg:rgba(255,255,255,.62); --glass-bg-strong:rgba(255,255,255,.82);
    --glass-border:rgba(36,42,96,.15); --glass-border-bright:rgba(255,255,255,.95);
    --glass-edge:inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(36,42,96,.06);
  }
  /* zonas que se quedan oscuras siempre: bienvenida, recorrido, escenario */
  html[data-theme="light"] #splash, html[data-theme="light"] #tour, html[data-theme="light"] body.stage, html[data-theme="light"] #stageBar, html[data-theme="light"] .metro-pill{
    --bg-1:#0c1024; --bg-2:#151233; --ink:#eef0fb; --ink-dim:#a7acc9; --ink-faint:#787ea3; --accent:#2fd8c4; --accent-soft:rgba(47,216,196,.35);
    --glass-border:rgba(255,255,255,.16); --glass-border-bright:rgba(255,255,255,.32); color:#eef0fb;
  }
  html[data-theme="light"] body{ background:var(--bg-1); }
  html[data-theme="light"] .blob{ opacity:.42; }
  html[data-theme="light"] .blob.b3{ opacity:.3; } html[data-theme="light"] .blob.b4{ opacity:.24; }
  html[data-theme="light"] .glass, html[data-theme="light"] .glass-btn{ box-shadow:inset 0 1px 0 rgba(255,255,255,.95), 0 10px 22px -14px rgba(36,42,96,.38); }
  html[data-theme="light"] .panel.glass{ box-shadow:var(--glass-edge), 0 30px 60px -30px rgba(36,42,96,.45); }
  html[data-theme="light"] .glass-btn:hover{ background:rgba(255,255,255,.98); }
  html[data-theme="light"] .glass-btn.primary{ background:linear-gradient(135deg, rgba(14,168,150,.26), rgba(124,98,232,.24)); border-color:rgba(36,42,96,.2); }
  html[data-theme="light"] .glass-btn.danger:hover{ background:rgba(224,74,99,.16); }
  html[data-theme="light"] .card{ background-color:rgba(255,255,255,.7); box-shadow:var(--glass-edge), 0 14px 28px -18px rgba(36,42,96,.45); }
  html[data-theme="light"] .card:not(.add-card)::before{ opacity:.14; } html[data-theme="light"] .card:not(.add-card):hover::before{ opacity:.3; }
  html[data-theme="light"] .card-actions button, html[data-theme="light"] .card .del{ background:rgba(255,255,255,.92); color:var(--ink); border-color:var(--glass-border); }
  html[data-theme="light"] .add-card{ background:rgba(255,255,255,.45); }
  html[data-theme="light"] .home-toolbar input#searchInput{
    background-color:rgba(255,255,255,.88);
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23454c72' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>");
    color:var(--ink); border-color:var(--glass-border); box-shadow:inset 0 1px 0 #fff, 0 8px 22px -14px rgba(36,42,96,.45);
  }
  html[data-theme="light"] .home-header .greet h1{ background-image:linear-gradient(100deg, #171b38 20%, var(--accent) 75%, var(--violet)); }
  html[data-theme="light"] .topbar h2{ background-image:linear-gradient(100deg, #171b38 35%, color-mix(in srgb, var(--accent) 75%, #171b38)); }
  html[data-theme="light"] .lyric-text{ color:var(--ink); }
  html[data-theme="light"] .topbar{ border-bottom-color:var(--glass-border); }
  html[data-theme="light"] .home-toolbar input#searchInput::placeholder{ color:var(--ink-faint); }
  html[data-theme="light"] .home-toolbar input#searchInput:focus{ background:#fff; }
  html[data-theme="light"] .sort-sel{ background-color:rgba(255,255,255,.85); color:var(--ink); border-color:var(--glass-border); }
  html[data-theme="light"] .sort-sel option, html[data-theme="light"] .metro-row select option{ background:#fff; color:#171b38; }
  html[data-theme="light"] .modal-veil{ background:rgba(40,48,100,.32); }
  html[data-theme="light"] .modal{ background:linear-gradient(160deg, rgba(255,255,255,.97), rgba(236,240,252,.98)); border-color:var(--glass-border); box-shadow:var(--glass-edge), 0 40px 80px -30px rgba(36,42,96,.55); }
  html[data-theme="light"] .modal-head{ border-bottom-color:var(--glass-border); }
  html[data-theme="light"] .field input, html[data-theme="light"] .field textarea, html[data-theme="light"] .field select, html[data-theme="light"] #spaceUntil, html[data-theme="light"] .metro-row select{ background:rgba(255,255,255,.9); color:var(--ink); border-color:var(--glass-border); color-scheme:light; }
  html[data-theme="light"] .field input:focus, html[data-theme="light"] .field textarea:focus{ background:#fff; }
  html[data-theme="light"] .pick-item, html[data-theme="light"] .share-opt, html[data-theme="light"] .dur-col, html[data-theme="light"] .fchip, html[data-theme="light"] .stat, html[data-theme="light"] .space-chip, html[data-theme="light"] .crumb, html[data-theme="light"] .mini, html[data-theme="light"] .tt, html[data-theme="light"] .tpill, html[data-theme="light"] .a-chip, html[data-theme="light"] .metro-big button, html[data-theme="light"] .artist-head i{ background:rgba(255,255,255,.75); border-color:var(--glass-border); color:var(--ink); }
  html[data-theme="light"] .fchip.on, html[data-theme="light"] .tt.on, html[data-theme="light"] .tpill.on, html[data-theme="light"] .ref-grid .glass-btn.on{ background:linear-gradient(135deg, rgba(14,168,150,.28), rgba(124,98,232,.26)); border-color:rgba(36,42,96,.25); }
  html[data-theme="light"] .fchip:hover, html[data-theme="light"] .pick-item:hover, html[data-theme="light"] .space-chip:hover{ background:#fff; }
  html[data-theme="light"] .space-head, html[data-theme="light"] .quote-card{ background:rgba(255,255,255,.6); border-color:var(--glass-border); }
  html[data-theme="light"] .star{ color:#d9890b; text-shadow:none; }
  html[data-theme="light"] .fav-btn.on, html[data-theme="light"] .card-actions .fav.on{ color:#d9890b; text-shadow:none; }
  html[data-theme="light"] #toast{ background:rgba(255,255,255,.96); color:var(--ink); border-color:var(--glass-border); box-shadow:var(--glass-edge), 0 16px 34px -14px rgba(36,42,96,.5); }
  html[data-theme="light"] .tour-card{ color:var(--ink); }
  /* barras flotantes */
  html[data-theme="light"] .mobile-dock, html[data-theme="light"] .scrollbar-dock, html[data-theme="light"] .space-nav{
    background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(240,243,252,.94));
    border-color:rgba(36,42,96,.14); border-top-color:#fff;
    box-shadow:inset 0 1px 0 #fff, 0 24px 46px -18px rgba(36,42,96,.55);
    -webkit-backdrop-filter:blur(20px) saturate(1.6); backdrop-filter:blur(20px) saturate(1.6);
  }
  html[data-theme="light"] .mobile-dock .glass-btn, html[data-theme="light"] .scrollbar-dock button, html[data-theme="light"] .space-nav button{ color:var(--ink); text-shadow:none; }
  html[data-theme="light"] .mobile-dock .glass-btn:not(.primary), html[data-theme="light"] .space-nav button{ background:rgba(36,42,96,.07); border-color:rgba(36,42,96,.12); }
  html[data-theme="light"] .mobile-dock .glass-btn.primary{ background:linear-gradient(135deg, rgba(14,168,150,.35), rgba(124,98,232,.32)); border-color:rgba(36,42,96,.22); }
  html[data-theme="light"] .space-nav .sp-back{ background:linear-gradient(135deg, rgba(14,168,150,.3), rgba(124,98,232,.28)); }
  html[data-theme="light"] .side-inner{ background:linear-gradient(160deg, rgba(255,255,255,.85), rgba(240,243,252,.8)); }
  html[data-theme="light"] .side-inner::before{ background:linear-gradient(165deg, rgba(255,255,255,.99), rgba(238,242,252,.99)); }
  html[data-theme="light"] .side-inner:hover, html[data-theme="light"] .side-inner:focus-within{ box-shadow:var(--glass-edge), 0 34px 60px -24px rgba(36,42,96,.55); }
  html[data-theme="light"] .read-handle{ background:rgba(255,255,255,.9); color:var(--ink); }
  /* canción */
  html[data-theme="light"] .chord-tag{ color:color-mix(in srgb, var(--accent) 42%, #0f1330); text-shadow:none; }
  html[data-theme="light"] .sec-label{ color:color-mix(in srgb, var(--accent) 50%, #0f1330); }
  html[data-theme="light"] .key-pill .k, html[data-theme="light"] .capo-pill.on .k{ color:color-mix(in srgb, var(--accent) 60%, #0f1330); }
  html[data-theme="light"] .lyric-text.faded{ color:var(--ink-faint); }
  html[data-theme="light"] .chorus{ background:rgba(255,255,255,.55); }
  /* modo ligero */
  html[data-theme="light"] body.lite .panel.glass, html[data-theme="light"] body.lite .modal, html[data-theme="light"] body.lite #toast, html[data-theme="light"] body.lite .topbar, html[data-theme="light"] body.lite .scrollbar-dock{ background-color:rgba(246,248,254,.96) !important; }
  /* ---------- modo proyección ---------- */
  #projVeil{ position:fixed; inset:0; z-index:300; background:#000; color:#fff; display:flex; flex-direction:column; cursor:none; user-select:none; -webkit-user-select:none; }
  #projVeil[hidden]{ display:none; }
  #projVeil.ctl{ cursor:default; }
  #projVeil .pj-stage{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:4vh 6vw; gap:2vh; min-height:0; }
  #projVeil .pj-label{ font-size:max(13px, 2.3vh); letter-spacing:.22em; text-transform:uppercase; color:#ffd166; min-height:3vh; font-weight:700; }
  #projVeil .pj-text{ font-weight:700; line-height:1.22; max-width:100%; text-wrap:balance; }
  #projVeil .pj-text div{ margin:.1em 0; }
  #projVeil .pj-text.title div:first-child{ font-size:1.18em; }
  #projVeil .pj-text .sub{ font-size:.55em; font-weight:500; opacity:.7; }
  #projVeil.black .pj-stage, #projVeil.black .pj-foot{ visibility:hidden; }
  #projVeil .pj-foot{ position:absolute; right:2vw; bottom:1.6vh; font-size:max(11px, 1.8vh); opacity:.35; }
  #projVeil .pj-ctl{ position:fixed; left:50%; bottom:calc(18px + env(safe-area-inset-bottom)); transform:translateX(-50%); display:flex; gap:6px; padding:8px; border-radius:999px; opacity:0; pointer-events:none; transition:opacity .35s ease; background:rgba(30,32,60,.78); }
  #projVeil.ctl .pj-ctl{ opacity:1; pointer-events:auto; }
  #projVeil .pj-ctl button{ border:0; min-width:42px; height:42px; border-radius:999px; background:rgba(255,255,255,.1); color:#fff; font:inherit; font-size:18px; cursor:pointer; }
  #projVeil .pj-ctl button:hover{ background:rgba(255,255,255,.22); }
  #projVeil.recv .pj-ctl, #projVeil.recv .pj-foot{ display:none; }
  body.projwin > *:not(#projVeil){ display:none !important; }
  @media print{ #projVeil{ display:none !important; } }

  /* ---------- accesibilidad ---------- */
  :focus-visible{ outline:3px solid var(--accent); outline-offset:2px; border-radius:6px; }
  .a11y-group{ display:flex; flex-direction:column; gap:8px; }
  .a11y-group b{ font-size:13px; }
  .a11y-group small{ font-size:11.5px; color:var(--ink-dim); line-height:1.4; }
  .a11y-seg{ display:flex; gap:4px; padding:3px; border-radius:999px; background:rgba(127,127,160,.16); }
  .a11y-seg button{ flex:1; border:0; border-radius:999px; background:transparent; color:var(--ink-dim); font:inherit; font-size:13px; font-weight:600; padding:9px 6px; cursor:pointer; }
  .a11y-seg button.on{ background:var(--accent); color:#06231f; }
  /* texto más grande en toda la interfaz */
  html[data-text="1"] body{ zoom:1.14; }
  html[data-text="2"] body{ zoom:1.3; }
  /* alto contraste */
  html[data-contrast="alto"]{ --ink:#ffffff; --ink-dim:#eef0fb; --ink-faint:#d4d8ee; --glass-border:rgba(255,255,255,.6); --glass-border-bright:#ffffff; --glass-bg:rgba(8,10,30,.9); --accent-soft:rgba(47,216,196,.55); }
  html[data-contrast="alto"][data-theme="light"]{ --ink:#000000; --ink-dim:#12162f; --ink-faint:#2b3157; --glass-border:rgba(10,14,40,.65); --glass-border-bright:#0a0e28; --glass-bg:rgba(255,255,255,.96); }
  html[data-contrast="alto"] .card, html[data-contrast="alto"] .glass-btn, html[data-contrast="alto"] .modal{ border-color:var(--glass-border-bright) !important; }
  html[data-contrast="alto"] .blob, html[data-contrast="alto"] .aurora{ opacity:.25; }
  html[data-contrast="alto"] .chord-tag{ font-weight:800; }
  html[data-motion="reduced"] .blob{ animation:none !important; }
  html[data-motion="reduced"] *{ scroll-behavior:auto !important; }
  html[data-motion="reduced"] .card:hover{ transform:none; }

  /* ---------- bienvenida sin canciones ---------- */
  .start-card{ grid-column:1 / -1; padding:20px 22px; border-radius:var(--radius-lg); border:1px solid var(--glass-border); background:linear-gradient(150deg, rgba(47,216,196,.13), rgba(167,139,250,.1)); }
  .start-card h2{ margin:0 0 6px; font-family:'Fraunces',serif; font-size:22px; }
  .start-card p{ margin:0 0 14px; color:var(--ink-dim); font-size:14px; line-height:1.55; max-width:560px; }
  .start-acts{ display:flex; flex-wrap:wrap; gap:8px; }
  .start-link{ display:inline-block; margin-top:12px; font-size:12.5px; color:var(--ink-faint); }
  #homeScreen .card.add-card{ }

  /* ---------- biblioteca compartida ---------- */
  .lib-tabs{ display:flex; gap:6px; padding:0 22px 8px; }
  .lib-tabs .lt{ flex:1; border:0; border-radius:999px; padding:8px 10px; font:inherit; font-size:13px; font-weight:600; background:rgba(127,127,160,.14); color:var(--ink-dim); cursor:pointer; }
  .lib-tabs .lt.on{ background:var(--accent); color:#fff; }
  #libSh[hidden], #libEx[hidden]{ display:none !important; }
  .lib-input{ width:100%; padding:11px 14px; border-radius:14px; border:1px solid var(--glass-border); background:rgba(127,127,160,.12); color:var(--ink); font:inherit; font-size:14px; }
  .lib-check{ display:flex; gap:10px; align-items:flex-start; font-size:13px; line-height:1.4; color:var(--ink); }
  .lib-check input{ margin-top:3px; accent-color:var(--accent); }
  .lib-row{ border-radius:14px; background:rgba(127,127,160,.12); padding:10px 12px; }
  .lib-top{ display:flex; align-items:center; gap:8px; }
  .lib-main{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
  .lib-main b{ font-size:14px; }
  .lib-main small{ font-size:11.5px; color:var(--ink-dim); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .lib-row .glass-btn{ padding:7px 11px; font-size:12px; }
  .lib-prev pre{ margin:10px 0 6px; white-space:pre-wrap; font:12.5px/1.5 "JetBrains Mono", ui-monospace, monospace; color:var(--ink-dim); max-height:180px; overflow:auto; }
  .lib-rep{ border:0; background:transparent; color:var(--ink-faint); font:inherit; font-size:12px; cursor:pointer; padding:4px 0; }
  .lib-more{ align-self:center; }

  /* ---------- copias e historial ---------- */
  .bk-note, .bk-empty{ font-size:13px; color:var(--ink-dim); line-height:1.5; margin:0; }
  .bk-list{ display:flex; flex-direction:column; gap:8px; max-height:48vh; overflow:auto; }
  .bk-row{ display:flex; align-items:center; gap:8px; padding:10px 12px; border-radius:14px; background:rgba(127,127,160,.12); }
  .bk-info{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
  .bk-info b{ font-size:13px; }
  .bk-info small{ font-size:11.5px; color:var(--ink-dim); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .bk-row .glass-btn{ padding:7px 11px; font-size:12px; }

  /* ---------- encabezado compacto en el celular ---------- */
  @media (max-width:640px){
    .home-header{ padding:10px 16px 0; gap:0; }
    .greet-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:nowrap; width:100%; }
    .home-header .greet{ width:100%; }
    .home-header .greet h1{ font-size:20px; line-height:1.2; margin:0; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .glass-btn.acct{ margin-left:0; flex:0 0 auto; padding:4px; min-width:0; }
    .glass-btn.acct.on .al{ display:none; }
    .glass-btn.acct:not(.on){ padding:6px 12px; }
    .home-header .greet .home-sub{ margin-top:4px; font-size:11.5px; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; white-space:nowrap; gap:6px; }
    .home-header .greet .home-sub::-webkit-scrollbar{ display:none; }
    .home-header .greet .home-sub > *{ flex:0 0 auto; padding:3px 10px !important; font-size:11.5px !important; }
    .home-toolbar{ display:grid !important; grid-template-columns:minmax(0,1fr) auto auto; gap:8px; padding:8px 16px 2px; align-items:center; }
    .home-toolbar #searchInput{ grid-column:1 / -1; height:42px; font-size:14px; }
    .home-toolbar .sort-sel{ height:38px; min-width:0; width:100%; }
    .home-toolbar #newFolderBtn, .home-toolbar #newSpaceBtn{ width:42px; height:38px; padding:0; justify-content:center; }
    .home-toolbar #newFolderBtn .lb, .home-toolbar #newSpaceBtn .lb{ display:none; }
    .crumbs{ padding:4px 16px 0; min-height:0; }
    .crumbs:has(.crumb.current:only-child){ display:none; }
    .filter-row{ padding:6px 16px 0 !important; }
    .fchip{ padding:5px 12px; font-size:12.5px; }
    .song-grid{ padding-top:8px; }
    #homeScreen .card.add-card{ display:none; }
  }

  /* ---------- diagramas de acordes ---------- */
  .song-render .chord-tag{ cursor:pointer; }
  .song-render .chord-tag::before{ content:""; position:absolute; inset:-3px -4px; }
  .song-render .chord-tag.sel{ text-decoration:underline; text-underline-offset:3px; }
  .chord-pop{ position:fixed; z-index:90; width:min(280px, calc(100vw - 24px)); padding:12px 14px 14px; border-radius:18px; color:var(--ink); box-shadow:0 18px 50px rgba(0,0,0,.45); }
  .chord-pop[hidden]{ display:none; }
  .chord-pop .cp-head{ display:flex; align-items:center; justify-content:space-between; }
  .chord-pop .cp-head b{ font-size:22px; color:var(--accent); }
  .chord-pop .cp-x{ border:0; background:transparent; color:var(--ink-dim); font-size:16px; cursor:pointer; padding:6px; }
  .chord-pop .cp-tabs{ display:flex; gap:4px; margin:8px 0 6px; padding:3px; border-radius:999px; background:rgba(127,127,160,.16); }
  .chord-pop .cp-tab{ flex:1; border:0; border-radius:999px; background:transparent; color:var(--ink-dim); font:inherit; font-size:12px; font-weight:600; padding:6px 0; cursor:pointer; }
  .chord-pop .cp-tab.on{ background:var(--accent); color:#fff; }
  .chord-pop .cp-fig{ display:flex; justify-content:center; padding:6px 0; color:var(--ink); }
  .chord-pop .cp-fig svg{ max-width:100%; height:auto; overflow:visible; }
  .chord-pop .cd-dot{ fill:var(--accent); stroke:none; }
  .chord-pop .cd-wk{ fill:#fff; stroke:#3a3f66; }
  .chord-pop .cd-bk{ fill:#1b1f3a; stroke:#1b1f3a; }
  .chord-pop .cd-wk.on, .chord-pop .cd-bk.on{ fill:color-mix(in srgb, var(--accent) 70%, #fff); }
  .chord-pop .cd-wk.root, .chord-pop .cd-bk.root{ fill:var(--accent); }
  .chord-pop .cp-nav{ display:flex; align-items:center; justify-content:center; gap:12px; font-size:12px; color:var(--ink-dim); }
  .chord-pop .cp-nav button{ border:0; width:30px; height:30px; border-radius:50%; background:rgba(127,127,160,.2); color:var(--ink); font-size:18px; line-height:1; cursor:pointer; }
  .chord-pop .cp-notes{ margin-top:8px; text-align:center; font-size:12px; color:var(--ink-dim); }
  .chord-pop .cp-none{ font-size:13px; color:var(--ink-dim); text-align:center; padding:14px 0; }
  @media (max-width:640px){ .chord-pop{ left:50%; transform:translateX(-50%); bottom:calc(92px + env(safe-area-inset-bottom)); top:auto; } }
  body.stage .chord-pop, body.stage .chord-tag{ cursor:default; }
  @media print{ .chord-pop{ display:none !important; } }

  /* resultados de búsqueda por letra */
  .card .snip{ position:relative; font-size:12px; color:var(--ink-dim); margin-top:4px; line-height:1.4; font-style:italic; display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .card .snip mark{ background:var(--accent-soft); color:var(--ink); border-radius:4px; padding:0 2px; font-style:normal; font-weight:700; }
  .song-grid.list .song-card .snip{ margin:0; -webkit-line-clamp:1; line-clamp:1; }
#projVeil .pj-ctl .pj-chorus{ padding:0 16px; font-size:14px; font-weight:700; color:#ffd166; }


  /* =====================================================
     LIQUID GLASS v3 — dock transparente con refracción, como iOS
     ===================================================== */
  .mobile-dock, .scrollbar-dock, .space-nav{
    background:
      radial-gradient(120% 140% at 12% -30%, rgba(255,255,255,.30), rgba(255,255,255,0) 46%),
      linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03) 55%, rgba(255,255,255,.08));
    -webkit-backdrop-filter:blur(10px) saturate(2.1) brightness(1.06) contrast(1.04);
    backdrop-filter:blur(10px) saturate(2.1) brightness(1.06) contrast(1.04);
    border:1px solid rgba(255,255,255,.22); border-top-color:rgba(255,255,255,.55);
    box-shadow:
      inset 0 1.5px 1px rgba(255,255,255,.65),
      inset 0 -1px 1px rgba(255,255,255,.22),
      inset 2px 0 3px -1px rgba(120,225,255,.45),
      inset -2px 0 3px -1px rgba(255,140,210,.40),
      inset 0 0 22px rgba(255,255,255,.07),
      0 18px 40px -14px rgba(0,0,0,.55), 0 2px 10px rgba(0,0,0,.22);
  }
  /* en Chrome/Edge/Android: el fondo se curva en los bordes (lente) */
  html[data-lens="1"] .mobile-dock, html[data-lens="1"] .scrollbar-dock, html[data-lens="1"] .space-nav{
    -webkit-backdrop-filter:url(#lgLens) blur(5px) saturate(2.1) brightness(1.06);
    backdrop-filter:url(#lgLens) blur(5px) saturate(2.1) brightness(1.06);
  }
  /* el texto debe leerse sobre cristal claro */
  .mobile-dock .glass-btn, .scrollbar-dock button, .space-nav button{ text-shadow:0 1px 8px rgba(0,0,0,.55); }
  .mobile-dock .glass-btn:not(.primary){
    background:linear-gradient(160deg, rgba(255,255,255,.20), rgba(255,255,255,.06));
    border-color:rgba(255,255,255,.28);
    -webkit-backdrop-filter:none; backdrop-filter:none;
  }
  .mobile-dock .glass-btn.primary{
    background:linear-gradient(135deg, rgba(47,216,196,.55), rgba(167,139,250,.55));
    -webkit-backdrop-filter:none; backdrop-filter:none;
  }
  .scrollbar-dock button{ -webkit-backdrop-filter:none; backdrop-filter:none; }
  /* la barra de espacio y el aviso también */
  #toast{
    background:linear-gradient(160deg, rgba(255,255,255,.2), rgba(255,255,255,.07));
    -webkit-backdrop-filter:blur(12px) saturate(2) brightness(1.05); backdrop-filter:blur(12px) saturate(2) brightness(1.05);
    box-shadow:inset 0 1.5px 1px rgba(255,255,255,.6), inset 0 -1px 1px rgba(255,255,255,.2), 0 16px 34px -14px rgba(0,0,0,.6);
    text-shadow:0 1px 8px rgba(0,0,0,.5);
  }
  html[data-theme="light"] .mobile-dock, html[data-theme="light"] .scrollbar-dock, html[data-theme="light"] .space-nav{
    background:
      radial-gradient(120% 140% at 12% -30%, rgba(255,255,255,.85), rgba(255,255,255,0) 50%),
      linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,.2));
    border-color:rgba(255,255,255,.7);
    box-shadow:inset 0 1.5px 1px rgba(255,255,255,.95), inset 0 -1px 1px rgba(255,255,255,.5), 0 18px 36px -14px rgba(30,40,90,.35);
  }
  html[data-theme="light"] .mobile-dock .glass-btn, html[data-theme="light"] .scrollbar-dock button, html[data-theme="light"] .space-nav button{ color:var(--ink); text-shadow:none; }
  /* menos movimiento: sin hinchazón */
  html[data-motion="reduced"] .mobile-dock .glass-btn:active, html[data-motion="reduced"] .scrollbar-dock button:active{ transform:none; }
  /* contraste alto: vuelve el fondo sólido para leer bien */
  html[data-contrast="alto"] .mobile-dock, html[data-contrast="alto"] .scrollbar-dock, html[data-contrast="alto"] .space-nav{
    background:rgba(8,10,28,.92); -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px);
  }


  /* =====================================================
     LIQUID GLASS v4 — toda la página
     ===================================================== */
  :root{
    --lg-fill:radial-gradient(120% 160% at 10% -40%, rgba(255,255,255,.30), rgba(255,255,255,0) 50%), linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.03) 55%, rgba(255,255,255,.07));
    --lg-rim:inset 0 1.5px 1px rgba(255,255,255,.6), inset 0 -1px 1px rgba(255,255,255,.2), inset 2px 0 3px -1px rgba(120,225,255,.38), inset -2px 0 3px -1px rgba(255,140,210,.34), inset 0 0 20px rgba(255,255,255,.05);
  }
  /* tarjetas, paneles y ventanas: cristal con brillo (sin lente, para que sea fluido) */
  .card, .panel.glass, .topbar, .space-head, .setup{
    background:var(--lg-fill);
    -webkit-backdrop-filter:blur(14px) saturate(1.9) brightness(1.05); backdrop-filter:blur(14px) saturate(1.9) brightness(1.05);
    border-color:rgba(255,255,255,.2); border-top-color:rgba(255,255,255,.5);
    box-shadow:var(--lg-rim), 0 22px 44px -26px rgba(0,0,0,.7);
  }
  .card:hover{ box-shadow:var(--lg-rim), 0 34px 54px -26px rgba(0,0,0,.8), 0 0 34px -14px var(--c, var(--accent)); }
  .modal.glass{
    background:var(--lg-fill), rgba(14,16,40,.42);
    -webkit-backdrop-filter:blur(22px) saturate(1.9) brightness(1.05); backdrop-filter:blur(22px) saturate(1.9) brightness(1.05);
    box-shadow:var(--lg-rim), 0 40px 80px -24px rgba(0,0,0,.75);
  }
  html[data-lens="1"] .modal.glass{
    -webkit-backdrop-filter:url(#lgLens) blur(14px) saturate(1.9) brightness(1.05); backdrop-filter:url(#lgLens) blur(14px) saturate(1.9) brightness(1.05);
  }
  /* botones, chips, pestañas: gotas de cristal con refracción */
  .glass-btn, .space-chip, .mini, .tab, .tt, .crumb, .metro-pill{
    background:linear-gradient(160deg, rgba(255,255,255,.20), rgba(255,255,255,.05) 60%, rgba(255,255,255,.10));
    border-color:rgba(255,255,255,.26); border-top-color:rgba(255,255,255,.55);
    -webkit-backdrop-filter:blur(6px) saturate(2) brightness(1.06); backdrop-filter:blur(6px) saturate(2) brightness(1.06);
    box-shadow:var(--lg-rim), 0 10px 22px -14px rgba(0,0,0,.6);
  }
  .glass-btn.primary, .tt.on, .tab.on{
    background:linear-gradient(135deg, rgba(47,216,196,.55), rgba(167,139,250,.5) 65%, rgba(255,255,255,.14));
    border-color:rgba(255,255,255,.4);
  }
  /* buscador y campos: vidrio hundido */
  .home-toolbar input, .field input, .field textarea, .field select, .metro-row select{
    background:linear-gradient(180deg, rgba(0,0,0,.16), rgba(255,255,255,.07));
    box-shadow:inset 0 2px 6px rgba(0,0,0,.28), inset 0 -1px 1px rgba(255,255,255,.22), 0 1px 0 rgba(255,255,255,.12);
    -webkit-backdrop-filter:blur(8px) saturate(1.6); backdrop-filter:blur(8px) saturate(1.6);
  }
  /* luz de modo claro */
  html[data-theme="light"]{ --lg-fill:radial-gradient(120% 160% at 10% -40%, rgba(255,255,255,.9), rgba(255,255,255,0) 55%), linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.22)); --lg-rim:inset 0 1.5px 1px rgba(255,255,255,.95), inset 0 -1px 1px rgba(255,255,255,.55), inset 2px 0 3px -1px rgba(120,200,255,.3), inset -2px 0 3px -1px rgba(255,150,210,.25); }
  html[data-theme="light"] .modal.glass{ background:var(--lg-fill), rgba(255,255,255,.35); }
  html[data-theme="light"] .glass-btn, html[data-theme="light"] .space-chip, html[data-theme="light"] .mini{ background:linear-gradient(160deg, rgba(255,255,255,.75), rgba(255,255,255,.3)); }
  /* modo ligero, movimiento reducido y contraste alto siguen mandando */
  body.lite .card, body.lite .panel.glass, body.lite .topbar, body.lite .modal.glass, body.lite .glass-btn{ background:rgba(22,25,56,.9); }
  html[data-motion="reduced"] .glass-btn:active, html[data-motion="reduced"] .space-chip:active{ transform:none; }
  html[data-contrast="alto"] .card, html[data-contrast="alto"] .panel.glass, html[data-contrast="alto"] .topbar, html[data-contrast="alto"] .modal.glass, html[data-contrast="alto"] .glass-btn{ background:var(--glass-bg); -webkit-backdrop-filter:none; backdrop-filter:none; }
