/* ---------- Shell (PageBase) ---------- */
.shell { height: 100vh; overflow: hidden; }
.shell.collapsed { --aw: 120px; }
.aside { position: fixed; left: 24px; top: 24px; bottom: 24px; width: calc(var(--aw) - 24px); z-index: 10; transition: width .2s; }
.aside-card {
  position: relative; height: 100%; background: #ede9dc; border-radius: 16px; box-shadow: 0 2px 12px rgba(0,0,0,.08);
  padding: 24px 0; display: flex; flex-direction: column;
}
.aside-toggle {
  position: absolute; top: 138px; right: -14px; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--primary); z-index: 2; padding: 0;
}
.aside-logo { display: flex; justify-content: center; padding: 0 36px; cursor: pointer; }
.aside-divider { height: 1px; background: rgba(54,58,58,.12); width: calc(100% - 36px); margin: 12px auto 24px; flex-shrink: 0; }
.aside-nav { flex: 1; overflow-y: auto; padding: 16px 24px; display: flex; flex-direction: column; row-gap: 19.2px; }
.nav-pill { background: #fff; border-radius: 10px; color: var(--pl); font-size: 12px; }
.nav-row {
  display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; color: inherit; font: inherit;
  padding: 7.2px; border-radius: 10px; cursor: pointer; text-align: left; transition: background .15s, color .15s;
}
.nav-pill.leaf .nav-row:hover, .nav-pill.leaf.active .nav-row { background: var(--pl); color: #ede9dc; }
.nav-pill.group > .nav-row { padding: 2.4px 7.2px; }
.nav-label { flex: 1; }
.nav-children { padding: 0 18px 4px; }
.nav-child {
  display: block; width: 100%; border: 0; background: transparent; font: inherit; color: var(--pl); font-size: 12px;
  padding: 3.6px 3.6px 3.6px 10px; margin: 5px 0; border-radius: 8px; text-align: left; cursor: pointer; transition: background .15s;
}
.nav-child:hover, .nav-child.active { background: #a4e0dc; }
.aside-foot { text-align: center; flex-shrink: 0; }
.aside-foot .aside-divider { margin-top: 0; margin-bottom: 16px; }
.aside-foot img { height: 64px; display: block; margin: 0 auto 8px; }
.aside-foot p { font-size: 14px; color: var(--pl); padding: 0 12px; }
.shell.collapsed .nav-label, .shell.collapsed .nav-arrow, .shell.collapsed .nav-children, .shell.collapsed .aside-foot p { display: none; }
.shell.collapsed .aside-nav { padding: 16px 20px; }
.shell.collapsed .nav-row { justify-content: center; }
.shell.collapsed .aside-logo { padding: 0 12px; }
.shell.collapsed .aside-foot img { height: 40px; }

.toolbar {
  position: fixed; top: 24px; left: calc(var(--aw) + 34px); right: 24px; height: 80px; background: var(--pl); border-radius: 16px;
  padding: 0 48px; display: flex; align-items: center; justify-content: space-between; z-index: 9; color: #fff; transition: left .2s;
}
.tb-user { font-size: 16px; color: #fff; background: none; border: 0; cursor: pointer; padding: 0; font-family: inherit; }
.tb-icons { display: flex; gap: 16px; align-items: center; }
.tb-icon { position: relative; background: none; border: 0; color: #fff; cursor: pointer; padding: 0; display: flex; }
.tb-badge {
  position: absolute; top: -10px; right: -10px; min-width: 20px; height: 20px; border-radius: 10px; background: #d00416; color: #fff;
  font-size: 12px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.panel {
  position: fixed; top: 128px; left: calc(var(--aw) + 34px); right: 24px; bottom: 24px; background: #fff; border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08); border: 1px solid rgba(0,0,0,.06); overflow-y: auto; transition: left .2s;
}
