/* Design 01 · Pannello flottante.
   The sidebar does not touch the screen: 16px of ground on every side,
   a 20px radius, one soft shadow underneath. Everything else is the shared
   content system from ../assets/core.css. */
:root { --bg: #eef0f3; --card: #fff; --line: #e4e6ea; --accent: #e07a2f; --side: #ffffff; --side-ink: #17181c; --side-muted: #7a7e87; }
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 16px; align-self: start; height: calc(100vh - 32px);
  margin: 16px 0 16px 16px; padding: 18px 14px 14px; border-radius: 20px;
  background: var(--side); color: var(--side-ink);
  box-shadow: 0 1px 2px #0000000d, 0 24px 48px -28px #00000040;
  display: flex; flex-direction: column; gap: 14px;
}
.brand { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: center; padding: 0 6px; }
.logo { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; grid-row: 1 / 3; }
.brand b { font-size: 15px; letter-spacing: -.01em; } .brand small { font-size: 11px; color: var(--side-muted); }
.nav { display: grid; gap: 2px; overflow: auto; flex: 1; padding-top: 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 500; color: var(--side-muted); text-decoration: none; transition: background-color 160ms, color 160ms; }
.nav a svg { flex: none; opacity: .8; }
.nav a:hover { background: #00000008; color: var(--side-ink); }
.nav a.on { background: var(--accent); color: #fff; font-weight: 600; } .nav a.on svg { opacity: 1; }
.user { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; padding: 10px 8px; border-top: 1px solid var(--line); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #1d1d1f; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.user b { display: block; font-size: 13px; } .user small { font-size: 11px; color: var(--side-muted); }
.back { font-size: 11.5px; color: var(--side-muted); text-decoration: none; padding: 0 8px; } .back:hover { color: var(--side-ink); }
.main { padding: 24px 24px 32px; min-width: 0; }
.burger { display: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 16px; }
.scrim { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 20; left: 0; top: 0; height: calc(100vh - 32px); margin: 16px; width: min(280px, calc(100vw - 32px)); transform: translateX(calc(-100% - 24px)); transition: transform 320ms cubic-bezier(.22,.61,.36,1); }
  .side.open { transform: none; }
  .burger { display: grid; place-items: center; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 15; background: #0006; opacity: 0; pointer-events: none; transition: opacity 240ms; } .scrim.show { opacity: 1; pointer-events: auto; }
  .main { padding: 16px; }
}
