:root {
  /* Brand Sviluppatore Migliore: arancione + nero/bianco. Mai blu/azzurro. */
  --bg: #0a0a0b;
  --bg2: #0d0c0d;
  --panel: #1a1512;
  --panel2: #141110;
  --line: #2c2218;
  --text: #f6efe7;
  --muted: #b6a596;
  --orange: #ff6a00;
  --orange-l: #ff9442;
  --orange-d: #c44e00;
  --ink: #1a0d00;        /* dark text on orange */
  --danger: #ff5a4d;
  --ok: #ff8a1e;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
button { font-family: inherit; cursor: pointer; }
body {
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 800px at 70% -10%, #2a1407 0%, var(--bg) 55%);
  color: var(--text);
  overflow: hidden;
}
.hidden { display: none !important; }
input {
  font-family: inherit; width: 100%; padding: 13px 14px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--panel2); color: var(--text);
  font-size: 16px; outline: none;
}
input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,106,0,.18); }
input:disabled { opacity: .68; cursor: not-allowed; }

.primary {
  width: 100%; padding: 13px; border: none; border-radius: 11px; margin-top: 12px;
  background: linear-gradient(135deg, var(--orange-l), var(--orange) 55%, var(--orange-d));
  color: #fff; font-weight: 800; font-size: 15px;
  transition: transform .08s, filter .15s; box-shadow: 0 6px 20px rgba(255,106,0,.3);
}
.primary:hover { filter: brightness(1.07); }
.primary:active { transform: translateY(1px); }
.ghost {
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  border-radius: 9px; padding: 9px 12px; margin-top: 10px; width: 100%; font-weight: 600;
}
.ghost:hover { color: var(--text); border-color: var(--orange); }
.ghost.sm { width: auto; padding: 5px 10px; margin: 0; font-size: 12px; }

/* ---------- LOGIN ---------- */
.screen { position: fixed; inset: 0; display: grid; place-items: center; }
.login-card {
  position: relative; z-index: 2; width: min(92vw, 400px);
  background: rgba(20,16,14,.82); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 20px; padding: 34px 30px;
  box-shadow: 0 30px 80px rgba(0,0,0,.7);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand h1 { margin: 0; font-size: 30px; letter-spacing: -.5px; }
.brand-orb, .logo-orb {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd2a3, var(--orange) 45%, var(--orange-d) 100%);
  box-shadow: 0 0 22px rgba(255,106,0,.7);
}
.sub { color: var(--muted); margin: 8px 0 24px; font-size: 14px; }
.step label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.hint { color: #8c7a6b; font-size: 12px; margin-top: 12px; }
.msg { margin-top: 14px; font-size: 13px; min-height: 18px; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--ok); }
.code-input { letter-spacing: 12px; text-align: center; font-size: 26px; font-weight: 800; }
.login-stars {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 80% 70%, #ffd2a3, transparent),
    radial-gradient(2px 2px at 50% 20%, #fff, transparent),
    radial-gradient(1px 1px at 65% 45%, #ffb878, transparent),
    radial-gradient(1px 1px at 35% 80%, #fff, transparent);
  opacity: .5;
}

/* ---------- APP ---------- */
#app { position: fixed; inset: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 16px; padding: 10px 16px;
  background: rgba(13,12,13,.72); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); z-index: 20;
}
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; }
.logo-orb { width: 18px; height: 18px; }
.views { display: flex; gap: 8px; }
.views button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 9px;
  padding: 6px 9px 6px 11px;
  font-weight: 750;
  font-size: 14px;
  line-height: 1;
  transition: background .15s, border-color .15s, color .15s;
}
.views button i {
  width: 16px;
  color: #fff;
  font-size: 13px;
  text-align: center;
}
.views button:hover {
  color: var(--text);
  background: rgba(255,255,255,.065);
  border-color: rgba(255,255,255,.14);
}
.views button.active {
  color: #fff;
  background: rgba(255,106,0,.13);
  border-color: rgba(255,106,0,.38);
}
.app-total {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 9px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.app-total b {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255,106,0,.18);
  color: var(--orange-l);
  font-size: 11px;
  font-weight: 900;
  border: 1px solid rgba(255,148,66,.34);
}
.spacer { flex: 1; }
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,106,0,.12);
  color: var(--orange-l);
  border: 1px solid rgba(255,106,0,.38);
  border-radius: 9px;
  padding: 7px 13px;
  font-weight: 750;
}
.admin-btn i { color: #fff; font-size: 13px; }
.admin-btn:hover,
.admin-btn.active { background: rgba(255,106,0,.22); border-color: rgba(255,106,0,.75); color: #fff; }
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.who-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,106,0,.36);
  background: var(--panel);
  box-shadow: 0 0 14px rgba(255,106,0,.18);
}
#who-name {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e9ddd0;
  font-weight: 700;
}

#viewport { flex: 1; position: relative; }
#viewport canvas { display: block; }

.world-map {
  position: absolute;
  inset: 0;
  overflow: hidden;
  outline: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,148,66,.22), transparent 24%),
    radial-gradient(circle at 72% 72%, rgba(255,106,0,.16), transparent 26%),
    linear-gradient(135deg, #17100b 0%, #090706 58%, #040404 100%);
}
.world-ground {
  position: absolute;
  left: clamp(18px, 3vw, 46px);
  right: min(410px, 27vw);
  top: clamp(18px, 4vh, 42px);
  bottom: clamp(68px, 9vh, 86px);
  min-width: 360px;
  border: 1px solid rgba(255,106,0,.22);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 40%, rgba(65,43,24,.8), transparent 12%),
    radial-gradient(circle at 78% 25%, rgba(92,57,26,.65), transparent 14%),
    radial-gradient(circle at 64% 80%, rgba(68,42,21,.72), transparent 18%),
    linear-gradient(160deg, #9b642d 0%, #7c4a21 54%, #4b2b15 100%);
  background-size: 52px 52px, 52px 52px, auto, auto, auto, auto;
  box-shadow: inset 0 0 60px rgba(30,12,3,.62), 0 20px 60px rgba(0,0,0,.4);
}
.world-plane {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  transition: transform .08s linear;
}
.world-ground::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px solid rgba(255,205,147,.08);
  border-radius: 6px;
  pointer-events: none;
}
.world-paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.world-paths line {
  stroke: rgba(45,26,13,.88);
  stroke-width: 2.4;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 0 rgba(255,184,112,.18));
}
.world-nodes {
  position: absolute;
  inset: 0;
}
.world-node {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%);
  width: 112px;
  min-height: 78px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: center;
  z-index: 2;
  cursor: pointer;
}
.world-node-pad {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 6px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.28);
  background: radial-gradient(circle at 35% 28%, #ffd0a4, var(--node), #6f2d05);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0,0,0,.46), 0 0 18px color-mix(in srgb, var(--node) 55%, transparent);
}
.world-node-title {
  display: block;
  max-width: 112px;
  border: 1px solid rgba(255,106,0,.25);
  border-radius: 7px;
  padding: 4px 7px;
  background: rgba(12,8,5,.82);
  color: #fff4e9;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.12;
  overflow-wrap: anywhere;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.world-node:hover .world-node-title,
.world-node.active .world-node-title {
  border-color: rgba(255,148,66,.85);
  color: var(--orange-l);
}
.world-node.active .world-node-pad {
  transform: scale(1.18);
  box-shadow: 0 12px 28px rgba(0,0,0,.5), 0 0 0 7px rgba(255,106,0,.16), 0 0 28px rgba(255,106,0,.48);
}
.world-player {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38px;
  height: 50px;
  transform: translate(-50%, calc(-104% - var(--bob, 0px)));
  transition: left .18s ease, top .18s ease;
  z-index: 5;
  pointer-events: none;
}
.world-player.instant { transition: none; }
.world-player-shadow {
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 42px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(0,0,0,.42);
  filter: blur(2px);
}
.world-player-body {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 18px 18px 13px 13px;
  border: 2px solid rgba(255,255,255,.32);
  background: linear-gradient(180deg, #ffab62, #ff6a00 54%, #2b1510 55%, #141010);
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  box-shadow: 0 10px 20px rgba(0,0,0,.48), 0 0 18px rgba(255,106,0,.42);
}
.world-status {
  position: absolute;
  left: clamp(18px, 3vw, 46px);
  bottom: 22px;
  max-width: min(520px, 58vw);
  border: 1px solid rgba(255,106,0,.28);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(12,8,5,.84);
  color: #f5dfc8;
  font-size: 13px;
  font-weight: 700;
  z-index: 6;
}

.hint-overlay {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: rgba(13,12,13,.82); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-size: 13px; color: var(--muted); z-index: 5; pointer-events: none;
  white-space: nowrap; max-width: 92vw;
}

/* analog virtual joystick */
.joystick {
  position: absolute; left: 22px; bottom: 24px; z-index: 7;
  width: 128px; height: 128px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,106,0,.10), rgba(20,16,14,.55));
  border: 1px solid rgba(255,106,0,.4); backdrop-filter: blur(8px);
  touch-action: none; user-select: none; box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.joy-knob {
  position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-radius: 50%; background: linear-gradient(135deg, var(--orange-l), var(--orange-d));
  border: 2px solid rgba(255,255,255,.25); box-shadow: 0 4px 14px rgba(255,106,0,.45);
  transition: transform .04s linear;
}
@media (max-width: 640px) {
  .joystick { width: 140px; height: 140px; left: 16px; bottom: 86px; }
  .joy-knob { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .hint-overlay { white-space: normal; width: 92%; text-align: center; bottom: 14px; font-size: 12px; }
  .topbar { gap: 8px; padding: 8px 10px; }
  .views { gap: 5px; }
  .views button { gap: 5px; padding: 6px 7px; font-size: 12px; min-height: 32px; }
  .views button > span { display: none; }
  .views button i { font-size: 12px; width: 13px; }
  .app-total { gap: 5px; min-height: 32px; padding: 6px 7px; font-size: 0; }
  .app-total b { min-width: 20px; height: 18px; padding: 0 5px; font-size: 10px; }
  .admin-btn { padding: 6px 8px; }
  .admin-btn span { display: none; }
  .world-ground { left: 12px; right: 12px; top: 12px; bottom: 170px; min-width: 0; }
  .world-node { width: 82px; }
  .world-node-title { max-width: 82px; font-size: 10px; }
  .world-node-pad { width: 36px; height: 36px; }
  .world-status { left: 14px; bottom: 18px; max-width: calc(100vw - 28px); }
}

/* info panel */
.info-panel {
  position: absolute; top: 56px; right: 0; height: calc(100% - 56px); width: min(92vw, 380px);
  background: rgba(18,14,12,.95); backdrop-filter: blur(14px);
  border-left: 1px solid var(--line); padding: 26px 26px 30px; overflow-y: auto; z-index: 8;
  box-shadow: -20px 0 60px rgba(0,0,0,.6); animation: slideIn .22s ease;
  transition: width .2s ease, padding .2s ease, transform .2s ease;
}
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.info-toggle {
  position: absolute;
  top: 16px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(12,8,5,.72);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  padding: 0;
  z-index: 2;
}
.info-toggle:hover { border-color: var(--orange); color: var(--orange-l); }
.info-close { position: absolute; top: 16px; right: 16px; background: transparent; border: none; color: var(--muted); font-size: 20px; }
.info-close:hover { color: #fff; }
.info-panel.collapsed {
  width: 58px;
  padding: 0;
  overflow: hidden;
}
.info-panel.collapsed > :not(.info-toggle) {
  opacity: 0;
  pointer-events: none;
}
.info-panel.collapsed .info-toggle {
  left: 13px;
}
.info-accent { position: absolute; top: 0; left: 0; right: 0; height: 120px; opacity: .55; pointer-events: none; z-index: -1; filter: blur(6px); }
.info-head { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.info-slug { font-size: 12px; color: var(--muted); font-family: ui-monospace, monospace; background: rgba(255,255,255,.06); padding: 2px 8px; border-radius: 6px; }
.info-panel h2 { margin: 12px 0 12px; font-size: 30px; letter-spacing: -.5px; line-height: 1.1; }
.info-desc { color: #d9cabb; line-height: 1.6; font-size: 15px; }
.info-section { margin-top: 22px; }
.info-h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 0 0 10px; }
.info-panel ul { padding-left: 4px; line-height: 1.6; list-style: none; margin: 0; }
.info-panel li { position: relative; padding-left: 24px; margin-bottom: 9px; color: #e9ddd0; }
.info-panel li::before { content: "\25B8"; position: absolute; left: 4px; color: var(--bullet, var(--orange)); font-weight: 900; }
.badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 4px 11px; border-radius: 999px; }
.badge.live { background: rgba(255,106,0,.18); color: var(--orange-l); }
.badge.wip { background: rgba(255,170,80,.16); color: #ffb061; }
.badge.planned { background: rgba(182,165,150,.16); color: var(--muted); }
.info-link { display: flex; flex-direction: column; gap: 2px; margin-top: 26px; background: linear-gradient(135deg, var(--orange-l), var(--orange-d)); color: #fff; text-decoration: none; padding: 14px 20px; border-radius: 13px; font-weight: 800; box-shadow: 0 8px 26px rgba(255,106,0,.32); transition: transform .1s, filter .15s; }
.info-link:hover { filter: brightness(1.08); transform: translateY(-1px); }
.info-link-label { font-size: 16px; }
.info-link-label::after { content: " \2192"; }
.info-host { font-size: 12px; font-weight: 600; opacity: .85; font-family: ui-monospace, monospace; }
.info-nolink { margin-top: 26px; padding: 14px 18px; border: 1px dashed var(--line); border-radius: 13px; color: var(--muted); font-size: 14px; text-align: center; }

/* ---------- ADMIN ---------- */
body.admin-open #viewport,
body.admin-open .hint-overlay,
body.admin-open .joystick,
body.admin-open .info-panel {
  display: none !important;
}

.modal {
  position: relative;
  flex: 1;
  min-height: 0;
  background:
    radial-gradient(circle at 16% 0%, rgba(255,106,0,.12), transparent 32%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  display: flex;
  z-index: 6;
}
.modal-card {
  width: 100%;
  height: 100%;
  max-height: none;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: none;
}
.modal-head { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: rgba(12,10,9,.72); }
.modal-head h2 { margin: 0; font-size: 20px; }
.tabs { display: flex; gap: 6px; }
.tabs button { background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 8px; padding: 6px 14px; font-weight: 700; }
.tabs button.active { color: var(--orange); background: rgba(255,106,0,.12); border-color: rgba(255,106,0,.4); }
.modal-head .ghost { width: auto; margin: 0; margin-left: auto; }
.tab {
  padding: 22px clamp(16px, 4vw, 44px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,106,0,.45) transparent;
}
.tab::-webkit-scrollbar { width: 8px; height: 0; }
.tab::-webkit-scrollbar-track { background: transparent; }
.tab::-webkit-scrollbar-thumb { background: rgba(255,106,0,.35); border-radius: 999px; }
.admin-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.admin-section-head h3, .editor h3 { margin: 0 0 4px; font-size: 18px; }
.admin-section-head p { margin: 0; color: var(--muted); font-size: 13px; }
.table-shell {
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.015);
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; min-width: 0; flex-wrap: wrap; }
.btn-sm { padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-weight: 600; font-size: 12px; }
.btn-sm:hover { border-color: var(--orange); }
.btn-sm.danger:hover { border-color: var(--danger); color: var(--danger); }
.btn-add { background: linear-gradient(135deg, var(--orange-l), var(--orange-d)); color: #fff; border: none; padding: 8px 16px; border-radius: 9px; font-weight: 800; margin-bottom: 14px; }

.editor { display: grid; gap: 12px; }
.editor .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.editor .grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.editor label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 5px; }
.editor textarea { width: 100%; min-height: 90px; padding: 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-family: inherit; font-size: 14px; resize: vertical; }
.editor select { width: 100%; padding: 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-size: 14px; }
.editor select option { background: var(--panel2); color: var(--text); }
.editor-actions { display: flex; gap: 10px; margin-top: 6px; }
.editor-actions .primary, .editor-actions .ghost { width: auto; margin: 0; }
.swatch { width: 18px; height: 18px; border-radius: 5px; display: inline-block; vertical-align: middle; margin-right: 7px; border: 1px solid rgba(255,255,255,.2); }
.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  width: max-content;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel2);
  gap: 2px;
}
.segmented button {
  border: 0;
  border-radius: 7px;
  padding: 6px 11px;
  min-width: 62px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.segmented button:hover { color: var(--text); }
.segmented button.active {
  background: rgba(255,106,0,.18);
  color: var(--orange-l);
  box-shadow: inset 0 0 0 1px rgba(255,106,0,.35);
}
.role-control { white-space: nowrap; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 18px; font-size: 14px; z-index: 200; box-shadow: 0 12px 40px rgba(0,0,0,.6);
}
.toast.ok { border-color: rgba(255,138,30,.55); }
.toast.err { border-color: rgba(255,90,77,.55); }

@media (max-width: 640px) {
  .editor .grid2, .editor .grid3 { grid-template-columns: 1fr; }
  #who-name { display: none; }
  .hint-overlay { white-space: normal; width: 90%; text-align: center; }
  .admin-section-head { flex-direction: column; }
  .modal-head { flex-wrap: wrap; }
  .modal-head .ghost { margin-left: 0; }
}

@media (max-width: 900px) {
  .info-panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 38%;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px 20px 22px;
  }
  .info-panel h2 { font-size: 24px; }
  .info-desc { font-size: 14px; line-height: 1.45; }
  .info-section { display: none; }
  .info-link { margin-top: 14px; }
  .world-ground { right: 16px; bottom: 42%; min-width: 0; }
  .world-status { bottom: calc(38% + 12px); }
  .info-panel.collapsed {
    height: 58px;
    width: 58px;
    top: auto;
    left: auto;
    bottom: 14px;
    right: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .modal-head { padding: 12px 16px; }
  .modal-head h2 { font-size: 18px; }
  .tab { padding: 18px 16px 28px; }
  .table-shell { border: 0; background: transparent; }
  .tab table, .tab thead, .tab tbody, .tab tr, .tab th, .tab td { display: block; width: 100%; }
  .tab thead { display: none; }
  .tab tr {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
    padding: 10px 12px;
    margin-bottom: 10px;
  }
  .tab td {
    display: grid;
    grid-template-columns: minmax(86px, 32%) 1fr;
    gap: 10px;
    align-items: center;
    border: 0;
    padding: 7px 0;
    min-width: 0;
  }
  .tab td::before {
    color: var(--muted);
    content: "";
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
  }
  #tab-users td:nth-child(1)::before { content: "Nome"; }
  #tab-users td:nth-child(2)::before { content: "Cognome"; }
  #tab-users td:nth-child(3)::before { content: "Email"; }
  #tab-users td:nth-child(4)::before { content: "Ruolo"; }
  #tab-users td:nth-child(5)::before { content: "Stato"; }
  #tab-users td:nth-child(6)::before { content: "Ultimo accesso"; }
  #tab-users td:nth-child(7) { display: flex; justify-content: flex-start; padding-top: 10px; }
  #tab-users td:nth-child(7)::before { display: none; }
  #tab-users .badge,
  #tab-users .role-control {
    justify-self: start;
  }
  #tab-apps td:nth-child(1)::before { content: "App"; }
  #tab-apps td:nth-child(2)::before { content: "Stato"; }
  #tab-apps td:nth-child(3)::before { content: "Slug"; }
  #tab-apps td:nth-child(4)::before { content: "Contenuto"; }
  #tab-apps td:nth-child(5) { display: flex; justify-content: flex-start; padding-top: 10px; }
  #tab-apps td:nth-child(5)::before { display: none; }
  .row-actions { justify-content: flex-start; }
}
