:root {
  --bg:#07111f; --panel:#0f172a; --line:#243247; --text:#e5e7eb; --muted:#9fb0c7;
  --accent:#38bdf8; --ok:#22c55e; --danger:#ef4444; --warn:#f59e0b;
}
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--text); font-family:Segoe UI,Arial,sans-serif; font-size:15px; }
.auth { min-height:100vh; display:grid; place-items:center; padding:16px; }
.login-box { width:min(420px,100%); background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:28px; }
h1,h2 { margin:0 0 14px; color:var(--accent); }
p, small, .msg, #license, #who { color:var(--muted); font-size:13px; }
.muted { color:var(--muted); }
label { display:grid; gap:6px; margin:10px 0; color:var(--muted); font-size:13px; }
input, textarea, select {
  width:100%; background:#050b16; color:var(--text); border:1px solid #334155;
  border-radius:8px; padding:10px; font-size:15px;
}
button {
  border:0; border-radius:8px; padding:11px 15px; font-weight:800;
  color:white; background:#0ea5e9; cursor:pointer; font-size:14px;
  touch-action:manipulation;
}
button.ok { background:var(--ok); }
button.danger { background:var(--danger); }
button.warn { background:var(--warn); }

.topbar {
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 18px; border-bottom:1px solid var(--line); background:#050b16;
  flex-wrap:wrap; gap:8px;
}
.topbar nav { display:flex; gap:10px; align-items:center; }
a { color:var(--accent); text-decoration:none; }

.shell { max-width:1180px; margin:0 auto; padding:20px 16px; }
.band { border-bottom:1px solid var(--line); padding:20px 0; }
.grid { display:grid; gap:12px; }
.stats { grid-template-columns:repeat(2,1fr); }
.stats div { border:1px solid var(--line); border-radius:8px; padding:12px; background:#050b16; }
.stats b { display:block; color:var(--accent); font-size:22px; margin-top:4px; }
.form-grid { grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); align-items:end; }
.toggles { grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); margin:10px 0; }
.toggles label { display:flex; gap:8px; align-items:center; border:1px solid var(--line); padding:10px; border-radius:8px; background:#050b16; }
.status-line { display:flex; gap:10px; align-items:center; margin-bottom:14px; flex-wrap:wrap; }
.dot { width:12px; height:12px; border-radius:999px; background:var(--danger); flex-shrink:0; }
.dot.on { background:var(--ok); }
.actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.actions button { flex:1 1 auto; min-width:120px; }
pre { height:280px; overflow:auto; white-space:pre-wrap; background:#050b16; border:1px solid var(--line); border-radius:8px; padding:12px; font-size:12px; }
#vncFrame { width:100%; height:620px; border:1px solid var(--line); border-radius:8px; background:#050b16; margin-top:14px; }
.user-row { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:10px; align-items:center; border-bottom:1px solid var(--line); padding:10px 0; }

/* aviso mobile LinkedIn */
.mobile-only { display:none; }
.desktop-only { display:block; }

@media (max-width:600px) {
  .shell { padding:14px 10px; }
  .stats { grid-template-columns:repeat(2,1fr); }
  .stats b { font-size:18px; }
  .form-grid { grid-template-columns:1fr; }
  .user-row { grid-template-columns:1fr; }
  .topbar { flex-direction:column; align-items:flex-start; }
  .actions button { min-width:0; }
  pre { height:200px; }

  .mobile-only { display:block; }
  .desktop-only { display:none; }
}

@media (min-width:1024px) {
  .stats { grid-template-columns:repeat(4,1fr); }
}
