.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.shell-sidebar {
  background: linear-gradient(180deg, var(--crimson-start), var(--crimson-mid));
  color: #F0DCDC;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.shell-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shell-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--crimson-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.shell-brand-name { font-size: 13px; font-weight: 800; color: #fff; line-height: 1.3; }
.shell-brand-sub { font-size: 10.5px; color: #E0B8B8; }

.shell-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.shell-user-name { font-size: 12px; font-weight: 700; color: #fff; }
.shell-user-logout { font-size: 10.5px; font-weight: 700; color: var(--gold); text-decoration: none; }
.shell-user-logout:hover { text-decoration: underline; }

.shell-nav { display: flex; flex-direction: column; gap: 3px; }
.shell-nav a {
  color: #F0DCDC;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 8px;
}
.shell-nav a:hover { background: rgba(255, 255, 255, 0.08); }
.shell-nav a.active { background: var(--gold); color: var(--crimson-mid); }
.shell-nav-divider { height: 1px; background: rgba(255, 255, 255, 0.12); margin: 6px 4px; }
.shell-nav-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); color: var(--crimson-mid);
  font-size: 9.5px; font-weight: 800; margin-right: 4px; flex-shrink: 0;
}
.shell-nav a.active .shell-nav-num { background: var(--crimson-mid); color: var(--gold); }

.shell-sidebar-foot {
  margin-top: auto;
  font-size: 10.5px;
  color: var(--gold);
  background: rgba(255, 196, 0, 0.12);
  border: 1px solid rgba(255, 196, 0, 0.35);
  border-radius: 8px;
  padding: 8px 10px;
}

.shell-main { display: flex; flex-direction: column; background: var(--bg); }
.shell-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.shell-header h1 { margin: 0; font-size: 1.3rem; font-weight: 800; color: var(--ink); }
.shell-content { padding: 24px 28px 48px; flex: 1; }

@media (max-width: 780px) {
  .shell { grid-template-columns: 1fr; }
  .shell-sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .shell-nav { flex-direction: row; flex-wrap: wrap; }
  .shell-sidebar-foot { display: none; }
}
