/* Lead Pulse V29.133 · Grouped, collapsible menu + phone "More" drawer.
   Same pages as before; only the menu is reorganised. Uses the shared theme tokens, so light and dark both work. */

/* ---------- Sidebar groups ---------- */
html[data-theme] .app-shell .nav{display:flex;flex-direction:column;gap:2px}
.nav-top{display:flex;flex-direction:column;gap:2px;margin-bottom:8px}
.nav-group{display:flex;flex-direction:column}
.nav-group-head{
  display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:36px;
  padding:0 12px;margin:2px 0 0;border:0;border-radius:9px;background:none;cursor:pointer;
  font:inherit;font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);text-align:left
}
.nav-group-head:hover{background:var(--lp-hover);color:var(--text)}
.nav-group-head:focus-visible{outline:2px solid var(--lp-accent);outline-offset:1px}
.nav-group-name{display:flex;align-items:center;gap:8px;min-width:0;white-space:nowrap}
.nav-group-chev{display:grid;place-items:center;flex-shrink:0;transition:transform .16s ease}
.nav-group-chev svg{width:13px;height:13px}
.nav-group.open .nav-group-chev{transform:rotate(90deg)}
.nav-group-items{display:none;flex-direction:column;gap:2px;padding-bottom:4px}
.nav-group.open .nav-group-items{display:flex}
.nav-group-tag{
  font-size:9.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
  color:var(--purple);background:color-mix(in srgb,var(--purple) 13%,transparent);border-radius:6px;padding:2px 6px
}
/* Small glowing dot on a folded group that holds the page you are on. */
.nav-group-dot{display:none;width:7px;height:7px;border-radius:50%;background:var(--lp-accent);box-shadow:0 0 8px color-mix(in srgb,var(--lp-accent) 70%,transparent)}
.nav-group.has-active:not(.open) .nav-group-dot{display:inline-block}
html[data-theme] .app-shell .nav .nav-link{min-height:40px}

/* ---------- Team / Settings above the account card ---------- */
.lp-foot-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:6px;margin-bottom:8px}
html[data-theme] .app-shell .lp-foot-link{
  min-height:36px!important;justify-content:center;gap:7px;padding:0 8px;border:1px solid var(--line)!important;border-radius:9px;font-size:12px
}
html[data-theme] .app-shell .lp-foot-link .nav-icon{width:auto;flex:0 0 auto}
html[data-theme] .app-shell .lp-foot-link .nav-icon svg{width:15px;height:15px}
html[data-theme] .app-shell .lp-foot-link.active::before{display:none}

/* ---------- Narrow (icon-only) sidebar on computers: every page icon stays visible ---------- */
@media(min-width:901px){
  .app-shell.sidebar-collapsed .nav-group-items{display:flex}
  .app-shell.sidebar-collapsed .nav-group-head{min-height:14px;padding:0;margin:6px 0;justify-content:center;pointer-events:none}
  .app-shell.sidebar-collapsed .nav-group-head>*{display:none}
  .app-shell.sidebar-collapsed .nav-group-head::after{content:"";width:20px;height:1px;background:var(--line2)}
  .app-shell.sidebar-collapsed .lp-foot-links{grid-template-columns:1fr}
  .app-shell.sidebar-collapsed .lp-foot-link{width:54px;margin:0 auto;padding:0}
  .app-shell.sidebar-collapsed .lp-foot-link .nav-label{display:none}
}

/* ---------- Phone "More" drawer ---------- */
.lp-more-sheet{position:fixed;inset:0;z-index:950}
.lp-more-scrim{position:absolute;inset:0;border:0;background:rgba(8,10,18,.5);opacity:0;transition:opacity .18s ease}
.lp-more-panel{
  position:absolute;left:0;right:0;bottom:0;max-height:min(86vh,720px);display:flex;flex-direction:column;
  background:var(--panel);color:var(--text);border-radius:24px 24px 0 0;border-top:1px solid var(--line);
  box-shadow:0 -18px 50px rgba(0,0,0,.28);transform:translateY(100%);transition:transform .2s ease;
  padding-bottom:env(safe-area-inset-bottom)
}
.lp-more-sheet.show .lp-more-scrim{opacity:1}
.lp-more-sheet.show .lp-more-panel{transform:none}
.lp-more-grab{width:40px;height:5px;border-radius:3px;background:var(--line2);margin:10px auto 0}
.lp-more-head{display:flex;align-items:center;padding:6px 10px 2px 20px}
.lp-more-head b{font-size:18px;font-weight:800}
.lp-more-close{margin-left:auto;width:44px;height:44px;border:0;background:none;color:var(--soft);display:grid;place-items:center;cursor:pointer}
.lp-more-close svg{width:20px;height:20px}
.lp-more-body{flex:1;overflow-y:auto;padding:4px 16px 12px;display:flex;flex-direction:column;gap:14px}
.lp-more-group h3{display:flex;align-items:center;gap:8px;margin:0 0 8px 4px;font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.lp-more-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.lp-more-tile{display:flex;flex-direction:column;align-items:center;gap:6px;padding:4px 0;text-decoration:none;color:var(--soft);font-size:11px;font-weight:650;text-align:center}
.lp-more-tile>span{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:var(--lp-accent-soft);color:var(--lp-accent-ink)}
.lp-more-tile>span svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.lp-more-tile.mine>span{background:color-mix(in srgb,var(--purple) 13%,transparent);color:var(--purple)}
.lp-more-tile.active>span{background:var(--lp-accent);color:#fff;box-shadow:0 0 18px -3px color-mix(in srgb,var(--lp-accent) 80%,transparent)}
.lp-more-tile.active b{color:var(--text)}
.lp-more-foot{display:flex;align-items:center;gap:8px;border-top:1px solid var(--line);padding:10px 16px 16px}
.lp-more-account{display:flex;align-items:center;gap:10px;flex:1;min-width:0;border:0;background:none;padding:0;font:inherit;color:inherit;text-align:left;cursor:pointer}
.lp-more-account .avatar{width:36px;height:36px;border-radius:50%;flex-shrink:0;font-size:12px}
.lp-more-account span{display:flex;flex-direction:column;min-width:0}
.lp-more-account b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lp-more-account small{font-size:11px;color:var(--muted);font-weight:600}
.lp-more-foot-link{display:flex;align-items:center;gap:6px;min-height:40px;padding:0 12px;border:1px solid var(--line);border-radius:10px;text-decoration:none;color:var(--soft);font-size:12px;font-weight:650}
.lp-more-foot-link svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
@media(min-width:901px){.lp-more-sheet{display:none}}
@media(prefers-reduced-motion:reduce){.lp-more-panel,.lp-more-scrim,.nav-group-chev{transition:none}}
