.account-menu[open] summary {
  border-color: #0f172a;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(148px, 42vw);
  gap: 0.75rem;
  margin-left: -1rem;
  margin-right: -1rem;
  overflow-x: auto;
  padding: 0 1rem 0.25rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.mobile-row::-webkit-scrollbar {
  display: none;
}

.category-pill,
.book-pill,
.empty-pill {
  min-height: 5.5rem;
  scroll-snap-align: start;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 0.9rem;
  color: #334155;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.category-pill.is-active,
.book-pill.is-active {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
}

.empty-pill,
.empty-card {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  color: #64748b;
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

.memory-card {
  display: flex;
  min-height: 11.5rem;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.06);
}

.memory-card-button {
  display: flex;
  min-height: 8.75rem;
  width: 100%;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.memory-card-footer {
  border-top: 1px solid #f1f5f9;
  padding: 0.75rem 1rem;
}

.form-panel {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 1rem;
}

.field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
}

.field-input {
  min-height: 2.75rem;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
}

.primary-button {
  min-height: 2.75rem;
  border-radius: 0.5rem;
  background: #0f172a;
  padding: 0 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
}

.show-body {
  min-height: 100vh;
  background: #020617;
}

.show-shell {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding: 1rem;
}

.show-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
}

.show-back,
.show-edit {
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #e2e8f0;
}

.show-card {
  margin: auto 2.25rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 1.25rem;
}

.show-nav {
  position: fixed;
  top: 50%;
  display: flex;
  width: 2.5rem;
  height: 4rem;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  color: #ffffff;
  font-size: 2.25rem;
  line-height: 1;
}

.show-nav-left {
  left: 0.5rem;
}

.show-nav-right {
  right: 0.5rem;
}

.show-nav.is-disabled {
  opacity: 0.28;
}

@media (min-width: 640px) {
  .mobile-row {
    grid-auto-columns: minmax(180px, 1fr);
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .show-card {
    margin-left: auto;
    margin-right: auto;
    width: min(760px, calc(100vw - 8rem));
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
