* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #f5f5f7;
  color: #1a1a1a;
}

.page-header {
  padding: 1.5rem 2rem;
}

main {
  padding: 0 2rem 2rem;
}

/* --- Tile Grid --- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tile {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tile:hover,
.tile:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tile img {
  width: 48px;
  height: 48px;
}

.tile span {
  font-size: 0.9rem;
  text-align: center;
}

/* --- Overlay (Backdrop) --- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 90;
}

/* --- Sidebar --- */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 380px;
  max-width: 90vw;
  background: #fff;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 100;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.sidebar-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}

.sidebar-content h2 {
  margin-top: 0;
}

/* --- Mobile --- */
@media (max-width: 600px) {
  .sidebar {
	width: 100%;
	max-width: 100%;
	top: auto;
	bottom: 0;
	height: 80vh;
	border-radius: 16px 16px 0 0;
	transform: translateY(100%);
  }

  .sidebar.open {
	transform: translateY(0);
  }

  .page-header {
	padding: 1rem 1.25rem;
  }

  main {
	padding: 0 1.25rem 1.25rem;
  }
}