.dashboard-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: calc(100vh - 56px); gap: 32px; }
.side-nav { position: sticky; top: 28px; align-self: start; max-height: calc(100vh - 56px); padding: 13px 24px 10px 0; overflow-y: auto; scrollbar-width: none; border-right: 1px solid var(--line); }
.side-nav::-webkit-scrollbar { display: none; }
.side-nav::after { position: absolute; top: 0; right: -1px; width: 1px; height: 116px; content: ""; background: var(--cyan); box-shadow: 0 0 18px rgba(49, 216, 205, .5); }
.side-nav-brand { display: flex; align-items: center; gap: 10px; margin: 0 0 34px; }
.side-nav-brand strong { font-size: 16px; letter-spacing: .02em; }
.side-nav-mark { position: relative; display: inline-block; width: 12px; height: 12px; border: 1px solid var(--cyan); }
.side-nav-mark::before { position: absolute; top: 3px; left: 3px; width: 4px; height: 4px; content: ""; background: var(--cyan); box-shadow: 0 0 9px rgba(49, 216, 205, .9); }
.side-nav-tree { display: grid; gap: 12px; }
.side-nav-section { overflow: hidden; border: 1px solid rgba(45, 77, 104, .68); background: rgba(8, 21, 35, .58); transition: border-color .18s ease, background .18s ease; }
.side-nav-section.active { border-color: rgba(49, 216, 205, .42); background: rgba(11, 30, 46, .78); }
.side-nav-group { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; text-align: left; color: var(--text); border: 0; background: transparent; }
.side-nav-group:hover { transform: none; color: var(--cyan); background: rgba(49, 216, 205, .07); }
.side-nav-group-copy { display: grid; gap: 1px; }
.side-nav-group-copy strong { font-size: 14px; letter-spacing: .02em; }
.side-nav-group-copy small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.side-nav-chevron { width: 8px; height: 8px; margin-right: 3px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .18s ease; }
.side-nav-group[aria-expanded="false"] .side-nav-chevron { transform: rotate(-45deg); }
.side-nav-submenu { position: relative; display: grid; gap: 2px; padding: 2px 6px 7px 14px; }
.side-nav-submenu::before { position: absolute; top: 4px; bottom: 9px; left: 8px; width: 1px; content: ""; background: rgba(45, 77, 104, .7); }
.side-nav-item { position: relative; width: 100%; min-height: 36px; padding: 8px 10px 8px 15px; text-align: left; color: var(--muted); border: 1px solid transparent; background: transparent; font-size: 13px; font-weight: 700; }
.side-nav-item::before { position: absolute; top: 50%; left: 0; width: 3px; height: 16px; content: ""; background: transparent; transform: translateY(-50%); }
.side-nav-item:hover { color: var(--text); background: rgba(49, 216, 205, .07); }
.side-nav-item-static { display: block; cursor: default; }
.side-nav-item-static:hover { color: var(--muted); background: transparent; }
.side-nav-item.active { color: var(--cyan); border-color: rgba(49, 216, 205, .7); background: rgba(49, 216, 205, .1); box-shadow: inset 0 0 0 1px rgba(49, 216, 205, .04); }
.side-nav-item.active::before { background: var(--cyan); box-shadow: 0 0 10px rgba(49, 216, 205, .75); }
.side-nav-utility { display: grid; gap: 4px; margin-top: 24px; padding-top: 14px; border-top: 1px solid rgba(45, 77, 104, .5); }
.side-nav-utility > span { padding-left: 10px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.dashboard-main { min-width: 0; }
body.booting #auth-view, body.booting #dashboard-view { display: none !important; }
@media (max-width: 760px) {
  .dashboard-layout { display: block; min-height: 0; }
  .side-nav { position: static; max-height: none; padding: 0 0 16px; overflow-y: visible; margin-bottom: 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-nav::after { top: auto; right: auto; bottom: -1px; left: 0; width: 115px; height: 1px; }
  .side-nav-brand { margin-bottom: 16px; }
  .side-nav-tree { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .side-nav-utility { margin-top: 12px; }
}
@media (max-width: 480px) { .side-nav-tree { grid-template-columns: 1fr; } }
