/* =====================================================================
   v10 · TABLERO CURVO SEMITRANSPARENTE, ETIQUETAS EN CUADROS, BARRA
         IZQUIERDA REDUCIDA, BOTÓN PDF, DERECHOS DE AUTOR, CUENTAS
   ===================================================================== */
/* ---------- Joysticks y tablero fijos: la barra izquierda se reduce ---------- */
#joyWrap, body.left-hide #joyWrap, body.work #joyWrap, body.min-left #joyWrap, #left.collapsed ~ #joyWrap { left: 14px; right: 14px; }
#left { width: 262px; }
body.joy #left { bottom: 340px; }
#leftArrow { left: 274px; }
@media (max-height: 820px) { body.joy #left { bottom: 300px; } }

/* ---------- Tablero curvo, ergonómico y semitransparente (50 %) ---------- */
.dash { background: linear-gradient(180deg, rgba(44,47,52,.5), rgba(18,20,23,.5)); border: 1px solid rgba(255,255,255,.16); border-radius: 58px 58px 30px 30px / 46px 46px 30px 30px;
  padding: 8px 36px 8px 12px; backdrop-filter: blur(1.5px) saturate(1.15); -webkit-backdrop-filter: blur(1.5px) saturate(1.15);
  box-shadow: 0 12px 30px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.14), inset 0 -10px 24px rgba(0,0,0,.18); }
.dash-body { align-items: center; }
.lcd { background: radial-gradient(ellipse at 50% 0%, rgba(18,42,64,.5) 0%, rgba(6,12,18,.5) 78%); border: 1px solid rgba(127,167,201,.28); border-radius: 34px 34px 22px 22px / 28px 28px 22px 22px;
  box-shadow: inset 0 0 22px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.25); padding: 6px 12px 7px; }
.lcd .g { border-radius: 50%; background: radial-gradient(circle at 50% 55%, rgba(0,0,0,.34) 0%, rgba(0,0,0,.16) 58%, transparent 72%); }
.dash-modes { gap: 6px; }
.dash-modes .jm { border-radius: 24px; background: rgba(20,22,25,.45); border-color: rgba(255,255,255,.14); }
.dash-modes .jm.on { background: rgba(255,196,20,.16); border-color: rgba(255,196,20,.55); }
.dopt { border-radius: 50%; background: rgba(26,29,33,.5); border-color: rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 6px rgba(0,0,0,.3); }
.dash .hb { border-radius: 50%; width: 24px; height: 24px; padding: 0; background: rgba(30,33,37,.5); border-color: rgba(255,255,255,.16); box-shadow: 0 2px 5px rgba(0,0,0,.3); }
.dash .holds { gap: 5px; }
.lcd-side .hm-row { border-radius: 12px; background: rgba(6,14,22,.5); }
.dash-opts { grid-template-columns: repeat(7, 32px); }
@media (max-width: 1350px) { .dash-opts { grid-template-columns: repeat(5, 30px); } }

/* ---------- Etiquetas: contextos segmentados en cuadros de bordes curvos ---------- */
.pl { border-radius: 8px; padding: 2px 7px; background: rgba(14,15,17,.62); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.pkeys, #shuttle small { display: inline-block; padding: 2px 8px; border-radius: 8px; background: rgba(14,15,17,.5); border: 1px solid rgba(255,255,255,.12); }
.lcd-top { gap: 4px; }
.lcd-top > span { padding: 1px 7px; border-radius: 8px; border: 1px solid rgba(127,167,201,.24); background: rgba(0,0,0,.22); }
.lcd .g small { left: 50%; right: auto; transform: translateX(-50%); bottom: 0; padding: 1px 6px; border-radius: 7px; border: 1px solid rgba(127,167,201,.24); background: rgba(0,0,0,.3); white-space: nowrap; }
.lb.flow small { padding: 0 5px; border-radius: 6px; border: 1px solid rgba(127,167,201,.22); background: rgba(0,0,0,.22); }
#dEngTxt { padding: 2px 7px; border-radius: 8px; border: 1px solid rgba(127,167,201,.22); background: rgba(0,0,0,.22); }
.hold-row > span { padding: 1px 6px; border-radius: 7px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.25); }
.pp-g > span { padding: 1px 6px; border-radius: 7px; border: 1px solid var(--line-faint); background: rgba(0,0,0,.25); align-self: flex-start; }
#ov rect { rx: 8px; ry: 8px; }

/* ---------- Botón del informe PDF en el tablero (solo con el motor apagado) ---------- */
#kRep.dpdf { width: 32px; height: 32px; padding: 0; border-radius: 50%; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  background: rgba(26,29,33,.5); border: 1px solid rgba(255,255,255,.16); color: var(--text-faint); font-family: var(--mono); position: relative; }
#kRep.dpdf svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
#kRep.dpdf b { font-size: 7.5px; line-height: 1; font-weight: 600; color: inherit; }
#kRep.dpdf:disabled { opacity: .38; cursor: not-allowed; }
#kRep.dpdf.ready { color: #45d483; border-color: rgba(69,212,131,.7); box-shadow: 0 0 10px rgba(69,212,131,.35); animation: pdfPulse 1.8s ease-in-out infinite; }
#kRep.dpdf.busy { color: var(--accent); animation: none; }
#kRep.dpdf.flash { animation: krepFlash .9s ease-out; }
@keyframes pdfPulse { 50% { box-shadow: 0 0 18px rgba(69,212,131,.6); } }
@media (max-width: 1350px) { #kRep.dpdf { width: 30px; height: 30px; } }

/* ---------- Derechos de autor con enlaces ---------- */
.copy-links { text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--text-faint); line-height: 1.7; }
.copy-links p { margin: 0; }
.copy-links a { color: var(--accent); text-decoration: none; margin: 0 7px; padding: 2px 8px; border-radius: 8px; border: 1px solid rgba(255,196,20,.28); background: rgba(255,196,20,.06); display: inline-block; transition: background .15s; }
.copy-links a:hover { background: rgba(255,196,20,.2); }
.sp-copy { margin-top: 10px; max-width: min(620px, 92vw); position: relative; z-index: 2; }
.start-copy { margin-top: 12px; }

/* ---------- Cuentas: registro / inicio de sesión ---------- */
.auth-bar { position: absolute; top: 14px; right: 16px; display: flex; align-items: center; gap: 8px; z-index: 3; }
.auth-btn { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 16px; cursor: pointer; border: 1px solid var(--line-soft); background: rgba(20,22,25,.7);
  color: var(--text); font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; }
.auth-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-btn:hover { border-color: var(--accent); color: var(--accent); }
.auth-btn.pri { background: var(--accent); color: #141517; border-color: var(--accent); }
.auth-btn.pri:hover { filter: brightness(1.08); color: #141517; }
.auth-btn[hidden] { display: none; }
.auth-user { font-family: var(--mono); font-size: 10.5px; color: var(--text-dim); padding: 4px 10px; border-radius: 12px; border: 1px solid rgba(69,212,131,.4); background: rgba(69,212,131,.08); }
.auth-user:empty { display: none; }
#authModal { display: none; position: fixed; inset: 0; z-index: 140; align-items: center; justify-content: center; background: rgba(8,9,11,.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
#authModal.show { display: flex; }
.auth-box .op-h .auth-x { margin-left: auto; }
.auth-err { min-height: 16px; font-size: 12px; color: #ff6b5f; }
#authGo { margin-top: 2px; height: 42px; border-radius: 10px; cursor: pointer; border: 0; background: var(--accent); color: #141517; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .14em; }
#authGo:disabled { opacity: .5; cursor: wait; }
.auth-sw { background: none; border: 0; color: var(--accent); cursor: pointer; font-size: 12.5px; padding: 4px; }
.auth-note { text-align: center; }
@media (max-width: 700px) { .auth-bar { position: static; justify-content: center; margin-bottom: 8px; } .auth-btn span { display: none; } }
.auth-sw.sm { font-size: 11.5px; color: var(--text-dim); padding: 0 4px; }
.auth-sw[hidden] { display: none; }
.auth-err.ok { color: #45d483; }
#authGo.busy { opacity: .6; }
