html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

:root {
  --fm-primary: #1f8f4d;
  --fm-secondary: #0f172a;
  --fm-bg: #f4f7f2;
  --fm-card-bg: rgba(255, 255, 255, 0.92);
  --fm-card-bg-strong: #ffffff;
  --fm-text: #10231a;
  --fm-muted: #5b6b62;
  --fm-accent: #ffe58f;
  --fm-border: rgba(16, 35, 26, 0.1);
  --fm-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --fm-hero: linear-gradient(135deg, rgba(31, 143, 77, 0.18), rgba(255, 229, 143, 0.2));
  --fm-success: #15803d;
  --fm-danger: #dc2626;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.1rem rgba(255,255,255,0.8), 0 0 0 0.25rem rgba(31, 143, 77, 0.25);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--fm-text);
  background: var(--fm-bg);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.app-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.4), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0));
}

.app-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.18;
}

.site-header {
  padding: 1rem 0 0;
}

.site-navbar {
  width: min(1180px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 1.2rem;
  background: linear-gradient(135deg, rgba(10, 18, 32, 0.86), rgba(22, 42, 28, 0.88));
  backdrop-filter: blur(14px);
  box-shadow: var(--fm-shadow);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
  text-decoration: none;
}

.site-brand:hover {
  color: #fff;
}

.site-brand__crest {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--fm-accent), #ffffff);
  color: #142617;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.site-brand small {
  display: block;
  color: rgba(255,255,255,0.72);
  font-size: 0.78rem;
}

.site-navbar .nav-link {
  color: rgba(255,255,255,0.82);
  font-weight: 500;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-welcome {
  color: #fff;
}

.site-navbar .btn-light {
  border-radius: 999px;
}

.app-container {
  padding-top: 1.35rem;
  padding-bottom: 2rem;
}

.site-footer {
  padding: 0 0 1.5rem;
}

.site-footer__content {
  width: min(1180px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.48);
  color: var(--fm-muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.page-kicker {
  display: inline-block;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--fm-primary);
}

.page-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
}

.page-subtitle {
  margin-top: 0.6rem;
  color: var(--fm-muted);
  max-width: 760px;
}

.hero-card,
.card,
.album-section-card,
.album-page-card,
.album-slot-card,
.theme-choice-card {
  background: var(--fm-card-bg);
  border: 1px solid var(--fm-border);
  box-shadow: var(--fm-shadow);
  backdrop-filter: blur(10px);
}

.hero-card {
  padding: 2rem;
  border-radius: 1.6rem;
  background-image: var(--fm-hero);
}

.stat-card {
  height: 100%;
  padding: 1.2rem;
  border-radius: 1.2rem;
  background: var(--fm-card-bg-strong);
  border: 1px solid var(--fm-border);
  box-shadow: var(--fm-shadow);
}

.stat-card__label {
  color: var(--fm-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-card__value {
  margin-top: 0.4rem;
  font-size: 2rem;
  font-weight: 800;
}

.fm-surface {
  padding: 1.35rem;
  border-radius: 1.25rem;
  background: var(--fm-card-bg);
  border: 1px solid var(--fm-border);
  box-shadow: var(--fm-shadow);
}

.fm-list-reset {
  margin: 0;
  padding-left: 1rem;
}

.fm-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--fm-secondary);
  font-size: 0.82rem;
  font-weight: 700;
}

.fm-badge-soft {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.74);
  color: var(--fm-text);
  font-size: 0.82rem;
  font-weight: 700;
}

.fm-alert-success {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(21, 128, 61, 0.24);
  color: #166534;
  border-radius: 1rem;
  box-shadow: var(--fm-shadow);
}

.theme-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.theme-choice-card {
  overflow: hidden;
  border-radius: 1.4rem;
}

.theme-choice-card--active {
  outline: 3px solid rgba(255,255,255,0.72);
}

.theme-choice-card__preview {
  padding: 1rem;
  min-height: 160px;
  color: #fff;
}

.theme-choice-card__body {
  padding: 1rem;
}

.theme-choice-card__body h2 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.theme-choice-card__body p {
  color: var(--fm-muted);
  min-height: 52px;
}

.theme-preview-chip {
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  font-size: 0.78rem;
}

.theme-preview-title {
  margin-top: 1rem;
  font-size: 1.45rem;
  font-weight: 800;
}

.theme-preview-lines {
  margin-top: 1rem;
  display: grid;
  gap: 0.45rem;
}

.theme-preview-lines span {
  display: block;
  height: 12px;
  width: 75%;
  border-radius: 999px;
  background: rgba(255,255,255,0.34);
}

.theme-preview-field { background: linear-gradient(140deg, #1f8f4d, #0f5132); }
.theme-preview-gold { background: linear-gradient(140deg, #10243f, #b9942e); }
.theme-preview-stadium { background: linear-gradient(140deg, #0f172a, #403f8f); }
.theme-preview-red { background: linear-gradient(140deg, #5d1010, #dc2626); }
.theme-preview-sky { background: linear-gradient(140deg, #57b8ff, #1c4f9c); }

.album-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 1.4rem;
  background: var(--fm-hero);
  border: 1px solid var(--fm-border);
  box-shadow: var(--fm-shadow);
}

.album-hero--compact {
  align-items: center;
}

.album-kicker {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fm-primary);
}

.album-stats {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.album-stat-card {
  min-width: 110px;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: rgba(255,255,255,0.84);
  border: 1px solid var(--fm-border);
  text-align: center;
}

.album-stat-card strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1.1;
}

.album-stat-card span {
  color: var(--fm-muted);
  font-size: 0.9rem;
}

.album-stat-card--owned {
  border-color: rgba(21, 128, 61, 0.28);
  background: linear-gradient(180deg, rgba(247,255,247,0.96), rgba(220,252,231,0.9));
}

.album-stat-card--missing {
  border-color: rgba(220, 38, 38, 0.32);
  background: linear-gradient(180deg, rgba(255,247,247,0.96), rgba(255,228,230,0.92));
}

.album-stat-card--duplicate {
  border-color: rgba(22, 101, 52, 0.32);
  background: linear-gradient(180deg, rgba(247,255,247,0.96), rgba(187,247,208,0.9));
}

.album-stat-card--owned strong,
.album-count-success {
  color: #166534;
}

.album-stat-card--missing strong,
.album-count-danger {
  color: #991b1b;
}

.album-section-grid,
.album-page-grid,
.album-slot-grid,
.album-sticker-status-grid {
  display: grid;
  gap: 1rem;
}

.album-section-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.album-page-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.album-slot-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.album-sticker-status-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.album-slot-form,
.album-inline-form {
  margin: 0;
}

.album-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.album-hero-actions__hint {
  color: var(--fm-muted);
  font-size: 0.95rem;
}

.album-section-card,
.album-page-card,
.album-slot-card {
  display: block;
  height: 100%;
  padding: 1rem;
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
}

.album-section-card--complete,
.album-page-card--complete {
  border-color: rgba(21, 128, 61, 0.24);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(240,253,244,0.88));
}

.album-section-card--missing,
.album-page-card--missing {
  border-color: rgba(220, 38, 38, 0.34);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,228,230,0.9));
}

.album-section-card:hover,
.album-page-card:hover {
  border-color: rgba(255,255,255,0.48);
  transform: translateY(-2px);
}

.album-section-card__top,
.album-page-card__header,
.album-slot-card__header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.album-section-card h2,
.album-page-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.album-section-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--fm-muted);
  font-size: 0.95rem;
}

.album-progress {
  height: 8px;
  margin-top: 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.album-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #15803d);
}

.album-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--fm-secondary);
  font-size: 0.8rem;
  font-weight: 700;
}

.album-code-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.album-code-preview span {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--fm-secondary);
  font-size: 0.8rem;
}

.album-page-card__cta {
  margin-top: 1rem;
  color: var(--fm-primary);
  font-weight: 700;
}

.album-section-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  font-weight: 700;
}

.album-section-card__cta span {
  color: var(--fm-muted);
  font-size: 0.92rem;
}

.album-page-card__status {
  margin: 0.25rem 0 0;
  font-weight: 700;
}

.album-missing-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(220, 38, 38, 0.28);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255,247,247,0.96), rgba(255,228,230,0.9));
  box-shadow: 0 18px 40px rgba(127, 29, 29, 0.08);
}

.album-missing-strip h2 {
  margin: 0;
  font-size: 1.35rem;
  color: #991b1b;
}

.album-slot-card {
  width: 100%;
  min-height: 220px;
  text-align: left;
}

.album-slot-card__body {
  display: block;
}

.album-slot-card__title {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--fm-text);
}

.album-slot-card__footer {
  display: inline-block;
  margin-top: 1rem;
  color: var(--fm-primary);
  font-size: 0.92rem;
  font-weight: 700;
}

.album-slot-card--duplicate {
  border-color: rgba(21, 128, 61, 0.32);
  background: linear-gradient(180deg, rgba(247,255,247,0.95) 0%, rgba(220,252,231,0.9) 100%);
}

.album-slot-card--owned {
  border-color: rgba(21, 128, 61, 0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(240,253,244,0.9));
}

.album-slot-card--missing {
  border-color: rgba(220, 38, 38, 0.34);
  background: linear-gradient(180deg, rgba(255,247,247,0.95) 0%, rgba(255,228,230,0.92) 100%);
}

.album-slot-card--missing .album-slot-card__footer,
.album-slot-card--missing .album-slot-card__title {
  color: #991b1b;
}

.album-slot-card--duplicate .album-slot-card__title {
  color: #166534;
}

.album-slot-card__state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 0.7rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.album-slot-card__state--owned {
  background: rgba(21, 128, 61, 0.12);
  color: #166534;
}

.album-slot-card__state--missing {
  background: rgba(220, 38, 38, 0.14);
  color: #991b1b;
}

.album-page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--fm-border);
  border-radius: 1rem;
  background: rgba(255,255,255,0.74);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.album-page-nav__progress {
  text-align: center;
}

.album-page-nav__progress strong {
  display: block;
  font-size: 1.15rem;
  color: var(--fm-text);
}

.album-page-nav__progress span {
  color: var(--fm-muted);
  font-size: 0.9rem;
}

.album-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--fm-muted);
  font-size: 0.95rem;
}

.album-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.album-legend__swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--fm-border);
  background: #ffffff;
}

.album-legend__swatch--missing {
  border-color: rgba(220, 38, 38, 0.45);
  background: #fecdd3;
}

.album-legend__swatch--complete {
  border-color: rgba(21, 128, 61, 0.45);
  background: #dcfce7;
}

.album-legend__swatch--duplicate {
  border-color: rgba(21, 128, 61, 0.45);
  background: #bbf7d0;
}

.album-slot-card__status {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.album-status-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--fm-border);
}

.album-duplicate-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.album-duplicate-qty {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  color: var(--fm-text);
}

.album-slot-card__country {
  margin-bottom: 0.35rem;
  color: var(--fm-secondary);
  font-weight: 600;
}

.album-slot-card__type {
  margin-bottom: 0;
  color: var(--fm-muted);
  font-size: 0.95rem;
}

.album-sticker-status {
  padding-top: 0.5rem;
}

.album-sticker-status-card {
  display: grid;
  gap: 0.5rem;
  min-height: 142px;
  padding: 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid var(--fm-border);
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.album-sticker-status-card:hover {
  transform: translateY(-2px);
}

.album-sticker-status-card--missing {
  border-color: rgba(220, 38, 38, 0.46);
  background: linear-gradient(180deg, #fff7f7, #fee2e2);
}

.album-sticker-status-card--owned {
  border-color: rgba(21, 128, 61, 0.22);
  background: linear-gradient(180deg, #ffffff, #f0fdf4);
}

.album-sticker-status-card__top {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  color: var(--fm-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.album-sticker-status-card strong {
  color: var(--fm-text);
  line-height: 1.25;
}

.album-sticker-status-card small {
  color: var(--fm-muted);
}

.album-sticker-status-card__state {
  justify-self: start;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(21, 128, 61, 0.12);
  color: #166534;
  font-size: 0.82rem;
  font-weight: 800;
}

.album-sticker-status-card--missing .album-sticker-status-card__state {
  background: rgba(220, 38, 38, 0.14);
  color: #991b1b;
}

.album-sticker-status-card--missing strong {
  color: #991b1b;
}

.album-book {
  display: grid;
  gap: 1.5rem;
}

.album-book-spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.album-book-page {
  min-height: 520px;
  padding: 1rem;
  border: 1px solid rgba(16, 35, 26, 0.14);
  border-radius: 0.75rem;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.04), transparent 18px),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.album-book-page--blank {
  background: rgba(255, 255, 255, 0.42);
  border-style: dashed;
}

.album-book-page__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--fm-border);
}

.album-book-page__header span {
  color: var(--fm-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.album-book-page__header h2 {
  margin: 0.2rem 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.album-book-page__header small {
  color: var(--fm-muted);
}

.album-book-page__summary {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.album-book-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 0.55rem;
}

.album-book-slot {
  position: relative;
  display: grid;
  gap: 0.25rem;
  min-height: 118px;
  padding: 0.55rem;
  border: 1px solid var(--fm-border);
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
}

.album-book-slot:hover {
  transform: translateY(-2px);
}

.album-book-slot--owned {
  border-color: rgba(21, 128, 61, 0.24);
  background: linear-gradient(180deg, #ffffff, #f0fdf4);
}

.album-book-slot--missing {
  border-color: rgba(220, 38, 38, 0.46);
  background: linear-gradient(180deg, #fff7f7, #fee2e2);
}

.album-book-slot--duplicate {
  box-shadow: inset 0 -4px 0 rgba(21, 128, 61, 0.28);
}

.album-book-slot__number,
.album-book-slot small {
  color: var(--fm-muted);
  font-size: 0.72rem;
}

.album-book-slot strong {
  color: var(--fm-text);
  font-size: 0.82rem;
  line-height: 1.15;
}

.album-book-slot--missing strong {
  color: #991b1b;
}

.album-book-slot__duplicate {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(21, 128, 61, 0.14);
  color: #166534;
  font-size: 0.72rem;
  font-weight: 800;
}

.fm-inline-note {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
  font-size: 0.85rem;
  font-weight: 600;
}

.fm-collection-list {
  display: grid;
  gap: 1rem;
}

.fm-list-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px) minmax(150px, 220px) auto;
  align-items: end;
  gap: 0.9rem;
  padding: 0.9rem;
  border: 1px solid var(--fm-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
}

.fm-list-filter__search {
  min-width: 0;
}

.fm-list-filter__count {
  align-self: center;
  justify-self: end;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--fm-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.fm-list-filter__count strong {
  color: var(--fm-text);
}

.fm-empty-filter {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px dashed var(--fm-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.68);
  color: var(--fm-muted);
  text-align: center;
}

.fm-collection-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--fm-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.fm-collection-item--missing {
  border-color: rgba(220, 38, 38, 0.24);
}

.fm-collection-item--duplicate {
  border-color: rgba(21, 128, 61, 0.24);
}

.fm-collection-item__main {
  display: grid;
  gap: 0.45rem;
}

.fm-collection-item__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fm-text);
}

.fm-collection-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.fm-collection-item__actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fm-quantity-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(21, 128, 61, 0.16);
  color: #166534;
  font-size: 0.85rem;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .site-navbar {
    width: calc(100% - 1rem);
  }

  .app-container {
    padding-top: 1rem;
  }

  .page-header,
  .album-hero,
  .site-footer__content {
    flex-direction: column;
    align-items: stretch;
  }

  .fm-collection-item {
    flex-direction: column;
    align-items: stretch;
  }

  .fm-collection-item__actions {
    justify-content: stretch;
  }

  .album-stats {
    flex-wrap: wrap;
  }

  .album-page-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .album-book-spread {
    grid-template-columns: 1fr;
  }

  .album-book-page {
    min-height: auto;
  }

  .fm-list-filter {
    grid-template-columns: 1fr;
  }

  .fm-list-filter__count {
    justify-self: stretch;
    text-align: center;
  }
}
