:root {
  --admin-nav-width: 228px;
  --admin-bg: #f5f7fb;
  --admin-ink: #172033;
  --admin-muted: #667085;
  --admin-border: #e4e7ec;
  --admin-accent: #6657d9;
}

body.amcAdminShell {
  margin: 0;
  min-height: 100vh;
  background: var(--admin-bg);
  color: var(--admin-ink);
}

.amcAdminLayout {
  display: grid;
  grid-template-columns: var(--admin-nav-width) minmax(0, 1fr);
  min-height: 100vh;
}

.amcAdminNav {
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
  border-right: 1px solid var(--admin-border);
  background: #111827;
  color: #fff;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  z-index: 40;
}

.amcAdminBrand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 22px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.amcAdminBrandMark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #8b7cf6, #5b4dca);
  font-size: 13px;
}

.amcAdminNavLabel {
  padding: 0 10px 8px;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.amcAdminNav a {
  color: #d0d5dd;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  margin-bottom: 5px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 650;
}

.amcAdminNav a:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}

.amcAdminNav a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(139,124,246,.34), rgba(91,77,202,.52));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.amcAdminNavFooter {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 14px 10px 4px;
  color: #98a2b3;
  font-size: 12px;
  line-height: 1.6;
}

.amcAdminMain {
  min-width: 0;
}

@media (max-width: 900px) {
  .amcAdminLayout {
    display: block;
  }

  .amcAdminNav {
    position: static;
    height: auto;
    padding: 10px;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .amcAdminBrand {
    padding: 0 10px 0 4px;
    white-space: nowrap;
  }

  .amcAdminNavLabel,
  .amcAdminNavFooter {
    display: none;
  }

  .amcAdminNav a {
    white-space: nowrap;
    margin: 0 4px 0 0;
  }
}
