/* Shell — Topbar + Sidebar + Main + Aside */

.shell { display: grid; grid-template-rows: var(--shell-topbar-h) 1fr; height: 100vh; overflow: hidden; }

.topbar {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: var(--s-lg);
  padding: 0 var(--s-lg);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.topbar__brand { font-weight: 700; letter-spacing: 0.18em; font-size: 12px; color: var(--c-primary); }
.topbar__crumbs { color: var(--c-text-muted); font-size: 12px; }
.topbar__crumbs .cur { color: var(--c-text); font-weight: 700; }
.topbar__sep { color: var(--c-text-faint); margin: 0 6px; }
.topbar__search {
  width: 280px; height: 28px; padding: 0 10px;
  border: 1px solid var(--c-border); border-radius: var(--r-sm);
  background: var(--c-surface-muted); font-size: 12px; color: var(--c-text);
}
.topbar__search:focus { outline: none; border-color: var(--c-primary); }
.topbar__actions { display: flex; gap: var(--s-xs); align-items: center; font-size: 12px; }
.topbar__actions .meta { color: var(--c-text-muted); }
.topbar__btn {
  height: 28px; padding: 0 12px; border-radius: var(--r-sm);
  border: 1px solid var(--c-border); background: var(--c-surface);
  font-size: 12px;
}
.topbar__btn--primary { background: var(--c-text); color: var(--c-on-primary); border-color: var(--c-text); font-weight: 700; }

.shell__body { display: grid; grid-template-columns: var(--shell-side-w) 1fr; min-height: 0; }

.shell-sidebar { background: var(--c-surface-muted); border-right: 1px solid var(--c-border-soft); padding: var(--s-md) 0; overflow-y: auto; }
.shell-sidebar__group { padding: var(--s-md) 0 var(--s-xs); }
.shell-sidebar__title {
  font-size: 10px; letter-spacing: 0.18em; color: var(--c-text-muted); text-transform: uppercase;
  padding: 0 var(--s-md) var(--s-xs); font-weight: 700;
}
.shell-sidebar__item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px var(--s-md); cursor: pointer; color: var(--c-text-secondary);
  border-left: 2px solid transparent; font-size: 13px;
}
.shell-sidebar__item:hover { background: var(--c-base); }
.shell-sidebar__item.is-active { background: var(--c-surface); color: var(--c-text); font-weight: 700; border-left-color: var(--c-primary); }
.shell-sidebar__item .count { font-size: 11px; color: var(--c-text-muted); font-variant-numeric: tabular-nums; }
.shell-sidebar__item.is-active .count { color: var(--c-text); }

.shell-main { padding: var(--s-lg) var(--s-xl); overflow-y: auto; min-width: 0; }
.shell-main__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--s-lg); }
.shell-main__head h1 { font-size: 20px; font-weight: 700; margin: 0; }
.shell-main__head .meta { font-size: 12px; color: var(--c-text-muted); }

.shell-aside { background: var(--c-surface); border-left: 1px solid var(--c-border-soft); padding: var(--s-lg); overflow-y: auto; }
