.main-content { min-width: 0; }
.categories-intro { margin: -0.35rem 0 2rem; color: #777; line-height: 1.6; }
.category-directory { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.category-tile { position: relative; min-height: 140px; padding: 1.5rem; border: 1px solid #e9e9e9; border-radius: 14px; background: #fafaf9; color: #000; text-decoration: none; box-sizing: border-box; }
.category-tile h2 { margin: 0 0 0.6rem; padding-right: 0.75rem; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.category-tile > span { color: #777; font-size: 0.85rem; }
.category-tile .category-arrow { position: absolute; right: 1.25rem; bottom: 1.25rem; color: #000; font-size: 1.2rem; }
.category-tile:hover { background: #f2f2f0; border-color: #ccc; }
.category-tile:focus-visible, .category-filters a:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.category-add-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 140px;
  margin: 0;
  padding: 1.5rem;
  box-sizing: border-box;
  border-style: dashed;
  border-color: #d9d3ca;
  background: #fff;
  cursor: pointer;
}
.category-add-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-align: center;
}
.category-add-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #f1efe9;
  font-size: 1.8rem;
  line-height: 1;
  color: #111;
}
.category-add-label {
  color: #111;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.category-add-tile:hover { background: #f9f6f1; }
.categories-back { display: inline-block; margin-bottom: 1.25rem; color: #666; font-size: 0.85rem; text-underline-offset: 4px; }
.category-total { color: #777; font-size: 1rem; font-weight: 400; }
.category-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.category-filters a { padding: 0.5rem 1rem; border: 1px solid #ddd; border-radius: 999px; color: #555; text-decoration: none; font-size: 0.85rem; }
.category-filters a[aria-current="page"] { border-color: #000; color: #000; background: #f5f5f5; }
.category-empty { color: #777; line-height: 1.6; }
.category-empty a { color: #000; text-underline-offset: 4px; }
@media (max-width: 1050px) { .category-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .category-directory { grid-template-columns: 1fr; } }
