/* GS Drive nel browser: quello che nell'app fa la finestra di sistema (sfondo, menu, accesso). */
html, body { background: var(--surface-2); }
body.web .sidebar { background: var(--side); border-right: 1px solid var(--line); }
body.web .brand { padding-left: 18px; }
body.web .titlebar { padding-right: 12px; }
body.web-fuori .app { display: none; }

.web-login { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; overflow-y: auto; background: radial-gradient(1200px 600px at 20% -10%, var(--accent-soft), transparent 60%), var(--surface-2); }
.web-login .dialog { width: 400px; animation: none; user-select: text; }
.web-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.web-logo h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.web-login input { height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); }
.web-login .actions .btn { width: 100%; height: 40px; }
.web-login .hint { margin: 16px 0 0; color: var(--text-2); font-size: 12px; line-height: 1.5; }

.web-banner { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 10px 12px 10px 16px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); }
.web-banner span { color: var(--text); }

.web-menu-ov { position: fixed; inset: 0; z-index: 70; }
.web-menu { position: fixed; min-width: 220px; padding: 5px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.web-menu button { position: relative; display: flex; align-items: center; width: 100%; height: 30px; padding: 0 12px; border-radius: 6px; text-align: left; white-space: nowrap; }
.web-menu button:hover:not(:disabled) { background: var(--sel); }
.web-menu button:disabled { color: var(--text-3); cursor: default; }
.web-menu .sep { height: 1px; margin: 5px 6px; background: var(--line); }
.web-menu .fr { margin-left: auto; padding-left: 16px; color: var(--text-3); }
.web-menu .voce { position: relative; }
.web-menu .voce > .web-menu { display: none; position: absolute; left: calc(100% - 2px); top: -6px; max-height: 70vh; overflow-y: auto; }
.web-menu.sx .voce > .web-menu { left: auto; right: calc(100% - 2px); }
.web-menu .voce:hover > .web-menu, .web-menu .voce:focus-within > .web-menu { display: block; }

/* telefono: un pannello solo a tutta larghezza; la barra laterale si apre dal pulsante con le tre righe */
#web-nav { display: none; }
@media (max-width: 760px) {
  body.web .app { grid-template-columns: minmax(0, 1fr); }
  body.web .sidebar { display: none; }
  body.web .main { padding: 0 8px 8px; }
  body.web #btn-split { display: none; }
  body.web .dock { left: 8px; right: 8px; bottom: 8px; width: auto; }
  body.web .titlebar { justify-content: space-between; padding-left: 8px; }
  body.web #web-nav { display: inline-flex; }
  body.web.web-nav-aperta .sidebar { display: flex; position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 45; background: var(--surface); box-shadow: var(--shadow-lg); }
  body.web.web-nav-aperta::after { content: ""; position: fixed; inset: 0; z-index: 44; background: rgba(15, 20, 30, 0.32); }
}
