:root {
  --bg: #f6f1ea;
  --bg-elevated: #fffdf9;
  --ink: #1f1712;
  --ink-muted: #6b5c52;
  --accent: #b45309;
  --accent-dark: #8b4513;
  --accent-soft: #fde8c8;
  --border: #e7ddd2;
  --shadow: 0 10px 30px rgba(31, 23, 18, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "DM Serif Display", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(180, 83, 9, 0.08), transparent 40%),
    linear-gradient(180deg, #faf6f0 0%, var(--bg) 100%);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-dark);
}

button,
input,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: var(--accent-dark);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  font-size: 1.5rem;
  line-height: 1;
}

.brand-kicker {
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.brand-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.1;
}

.header-nav {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-link--active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.nav-link--soon::after {
  content: "Soon";
  margin-left: 0.35rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

/* Layout */
.app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem;
  padding-bottom: calc(1.5rem + var(--safe-bottom));
}

.main-content {
  min-width: 0;
}

/* Hero */
.hero {
  margin-bottom: 1.25rem;
}

.hero-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
}

.hero-copy {
  margin: 0;
  color: var(--ink-muted);
}

@media (min-width: 640px) {
  .hero-copy {
    white-space: nowrap;
  }
}

.what-i-have-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: #edf7ed;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(27, 94, 32, 0.08);
}

.what-i-have__heading {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1b5e20;
}

.what-i-have__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.what-i-have__chips[hidden] {
  display: none;
}

.what-i-have__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 100%;
  background: #c8e6c9;
  color: #1b5e20;
  border: 1px solid #81c784;
  border-radius: 999px;
  padding: 0.28rem 0.35rem 0.28rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.what-i-have__chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.what-i-have__chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #1b5e20;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.what-i-have__chip-remove:hover,
.what-i-have__chip-remove:focus-visible {
  background: rgba(27, 94, 32, 0.12);
  outline: none;
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.15rem 0;
}

.results-count {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
  text-align: right;
}

/* Buttons */
.btn {
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent-dark);
  color: white;
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid var(--border);
}

.btn--filter {
  background: var(--bg-elevated);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.btn--coopers {
  width: 100%;
  background: var(--accent-dark);
  color: white;
  text-decoration: none;
  margin-top: auto;
}

.filter-badge {
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
}

/* Filters panel — mobile slide-over */
.filters-panel {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(100%, 360px);
  max-width: 100%;
  background: var(--bg-elevated);
  z-index: 60;
  padding: 0.75rem;
  padding-bottom: calc(0.75rem + var(--safe-bottom));
  overflow-y: auto;
  transform: translateX(-105%);
  transition: transform 0.25s ease;
  box-shadow: var(--shadow);
}

.filters-panel.is-open {
  transform: translateX(0);
}

.filters-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.filters-panel__header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
}

.filters-close {
  display: inline-flex;
}

.filters-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 23, 18, 0.4);
  z-index: 55;
}

.filter-group {
  margin-bottom: 0.85rem;
}

.filter-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.filter-input,
.filter-select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  background: white;
  color: var(--ink);
}

.sort-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  width: 100%;
}

.sort-toggle__btn {
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.4rem;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.sort-toggle__btn:hover,
.sort-toggle__btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent-dark);
  outline: none;
}

.sort-toggle__btn.is-active {
  background: var(--accent-soft);
  border-color: rgba(180, 83, 9, 0.35);
  color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.12);
}

.filter-input:focus,
.filter-select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ingredient-groups {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.multi-select {
  position: relative;
}

.multi-select__trigger {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.multi-select__trigger[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(180, 83, 9, 0.15);
}

.multi-select__label {
  font-weight: 600;
  font-size: 0.9rem;
}

.multi-select__meta {
  font-size: 0.78rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

.multi-select__chevron {
  color: var(--ink-muted);
  font-size: 0.75rem;
  transition: transform 0.15s ease;
}

.multi-select__trigger[aria-expanded="true"] .multi-select__chevron {
  transform: rotate(180deg);
}

.multi-select__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 30;
  max-height: 240px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.5rem;
}

.multi-select__panel[hidden] {
  display: none;
}

.multi-select__option {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.4rem 0.4rem;
  border-radius: 8px;
  cursor: pointer;
  min-height: 38px;
}

.multi-select__option:hover {
  background: #faf6f0;
}

.multi-select__option input {
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  flex-shrink: 0;
  accent-color: var(--accent-dark);
}

.multi-select__option span {
  font-size: 0.88rem;
  line-height: 1.35;
}

.range-filters {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.range-filter__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.range-filter__header .filter-label {
  margin-bottom: 0;
}

.range-filter__output {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-dark);
  white-space: nowrap;
}

.range-filter__track-wrap {
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;
}

.range-filter__rail,
.range-filter__fill {
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 999px;
  pointer-events: none;
}

.range-filter__rail {
  background: #e8dfd4;
}

.range-filter__fill {
  background: var(--accent-soft);
  border: 1px solid rgba(180, 83, 9, 0.25);
  right: auto;
}

.range-filter__input {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 32px;
  margin: 0;
  appearance: none;
  background: transparent;
  pointer-events: none;
}

.range-filter__input::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
  border: none;
}

.range-filter__input::-moz-range-track {
  height: 6px;
  background: transparent;
  border: none;
}

.range-filter__input::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2px solid white;
  background: var(--accent-dark);
  box-shadow: 0 1px 4px rgba(31, 23, 18, 0.25);
  cursor: grab;
  pointer-events: auto;
}

.range-filter__input:active::-webkit-slider-thumb {
  cursor: grabbing;
}

.range-filter__input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid white;
  background: var(--accent-dark);
  box-shadow: 0 1px 4px rgba(31, 23, 18, 0.25);
  cursor: grab;
  pointer-events: auto;
}

.range-filter__input:active::-moz-range-thumb {
  cursor: grabbing;
}

.range-filter__input--max {
  z-index: 2;
}

.range-filter__input--min {
  z-index: 3;
}

.range-filter__input.is-active {
  z-index: 5;
}

.filter-actions {
  margin-top: 0.85rem;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
}

/* Recipe grid */
.recipe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.recipe-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.recipe-card__media {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f3e8d8, #fffaf3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
}

.recipe-card__media img {
  width: min(220px, 80%);
  height: auto;
  object-fit: contain;
}

.recipe-card__body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}

.recipe-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
}

.stat-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  width: 100%;
}

.stat-pill {
  font-size: 0.74rem;
  background: #f3ebe2;
  color: var(--ink-muted);
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
  flex: 1;
  text-align: center;
  min-width: 0;
}

.stat-pill--abv {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}

.meta-line {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.meta-line strong {
  color: var(--ink);
  font-weight: 600;
}

.ingredient-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ingredient-list li {
  font-size: 0.85rem;
  color: var(--ink-muted);
  padding-left: 1rem;
  position: relative;
}

.ingredient-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.ingredient-toggle {
  background: none;
  border: none;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0;
  cursor: pointer;
  text-align: left;
  min-height: 44px;
}

.ingredient-list[hidden] {
  display: none;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

.empty-state h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 400;
}

.empty-state p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

/* Coming soon page */
.coming-soon {
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.coming-soon__card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.coming-soon__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}

.coming-soon__card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
}

.coming-soon__card p {
  margin: 0 0 1.5rem;
  color: var(--ink-muted);
}

/* Footer */
.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem calc(1.5rem + var(--safe-bottom));
  color: var(--ink-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Tablet */
@media (min-width: 600px) {
  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop — sidebar filters */
@media (min-width: 900px) {
  .app-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.25rem;
    align-items: start;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .filters-panel {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    transform: none;
    width: auto;
    max-height: calc(100dvh - var(--header-h) - 2rem);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.85rem;
  }

  .filters-panel__header .filters-close,
  .btn--filter,
  .filters-backdrop {
    display: none !important;
  }

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

@media (min-width: 1100px) {
  .recipe-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Recipe ratings & comments */
.recipe-card__community {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: -0.15rem;
}

.recipe-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.15rem 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: left;
}

.recipe-card__rating:hover .star-display__fill,
.recipe-card__rating:focus-visible .star-display__fill {
  filter: brightness(1.05);
}

.recipe-card__rating:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.recipe-card__rating-count {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.recipe-card__comments {
  border: none;
  background: transparent;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.25rem 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.recipe-card__comments:hover,
.recipe-card__comments:focus-visible {
  color: var(--accent);
  outline: none;
}

.star-display {
  --star-size: 0.95rem;
  --star-color: #f59e0b;
  --star-empty: #ddd5c8;
  position: relative;
  display: inline-block;
  width: calc(var(--star-size) * 5);
  height: var(--star-size);
  line-height: 1;
  vertical-align: middle;
}

.star-display--lg {
  --star-size: 1.65rem;
}

.star-display__track,
.star-display__fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: var(--star-size);
  letter-spacing: 0.05em;
}

.star-display__track::before,
.star-display__fill::before {
  content: "★★★★★";
}

.star-display__track {
  color: var(--star-empty);
}

.star-display__fill {
  color: var(--star-color);
  width: 0;
}

.star-display__value {
  margin-left: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-muted);
  vertical-align: middle;
}

.community-modal__average .star-display {
  display: block;
  margin: 0 auto;
  --star-size: 1.35rem;
}

.community-modal__average-value {
  margin: 0.25rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.star-input {
  display: inline-flex;
  gap: 0.15rem;
}

.star-input__star {
  border: none;
  background: transparent;
  color: #ddd5c8;
  font-size: 1.55rem;
  line-height: 1;
  padding: 0.1rem;
  cursor: pointer;
  transition: color 0.12s ease, transform 0.12s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.star-input__star.is-filled {
  color: #f59e0b;
}

.star-input__star:hover,
.star-input__star:focus-visible {
  color: #f59e0b;
  transform: scale(1.08);
}

.star-input__star:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

body.modal-open {
  overflow: hidden;
}

.community-modal[hidden] {
  display: none;
}

.community-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 0.65rem;
}

.community-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 23, 18, 0.55);
  backdrop-filter: blur(4px);
}

.community-modal__dialog {
  position: relative;
  width: min(100%, 520px);
  max-height: min(92dvh, 780px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(31, 23, 18, 0.22);
  padding: 0.85rem 1rem 1rem;
}

.community-modal__close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f3ebe2;
  color: var(--ink-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.community-modal__close:hover,
.community-modal__close:focus-visible {
  background: #e8dfd4;
  outline: none;
}

.community-modal__title {
  margin: 0 2rem 0.55rem 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
  padding-right: 1rem;
}

.community-modal__summary {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: linear-gradient(135deg, #fffaf3 0%, #f8efe4 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.community-modal__average {
  text-align: center;
}

.community-modal__average-meta {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.community-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.community-form .filter-label {
  margin-bottom: 0.3rem;
}

.community-form .filter-input {
  min-height: 40px;
  padding: 0.5rem 0.75rem;
}

.community-form__field {
  border: none;
  margin: 0;
  padding: 0;
}

.community-form__field--stars {
  margin-bottom: 0.1rem;
}

.community-form__field--stars .filter-label,
.community-form__field--stars legend {
  margin-bottom: 0.2rem;
}

.community-form__textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  resize: vertical;
  background: white;
  color: var(--ink);
  font: inherit;
}

.community-form__textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.community-form__hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ink-muted);
  line-height: 1.35;
}

.community-form__submit {
  width: 100%;
  min-height: 40px;
  padding: 0.55rem 1rem;
}

.community-modal__comments-heading {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.community-modal__comments {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.community-modal__empty {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.community-comment {
  padding: 0.6rem 0.75rem;
  background: #faf6f0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.community-comment__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.2rem;
}

.community-comment__author {
  font-size: 0.9rem;
  color: var(--ink);
}

.community-comment__date {
  font-size: 0.78rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

.community-comment__stars {
  margin-bottom: 0.2rem;
}

.community-comment__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--ink);
  white-space: pre-wrap;
}
