[hidden] { display: none !important; }
.reviews-page { max-width: 1000px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-left, 0px)); }
.reviews-page h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; letter-spacing: -.025em; margin: 24px 0 8px; }
.reviews-page h2 { font-size: 24px; line-height: 1.3; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.reviews-page .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.review-card { border-radius: 20px; padding: 24px; background: var(--tile); overflow-wrap: anywhere; }
.review-card h2, .review-card h3 { font-size: 17px; margin: 0 0 8px; }
.review-meta { color: var(--ink-muted); font-size: 13px; }
.review-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.review-card .review-body { margin-bottom: 0; }
.review-stars { letter-spacing: 2px; margin: 0 0 16px; }
.review-form { display: grid; gap: 20px; max-width: 760px; margin: 24px 0; }
.review-fields { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 16px; }
.review-form label, #review-success label { display: grid; gap: 8px; }
.review-form input:not([type=radio]):not([type=checkbox]), .review-form textarea, .review-form select, #review-delete-link {
  width: 100%; min-width: 0; font: inherit; color: var(--ink); background: var(--background);
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px;
}
.review-form textarea { resize: vertical; min-height: 150px; }
.review-form fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
.review-form legend { padding: 0; margin-bottom: 8px; }
.review-form p { margin: 0; }
.review-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.reviews-page .btn, [data-reviews-home] .review-button { border-radius: 12px; }
.review-text-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--ink-muted); font: 500 14px/1.4 var(--font-sans); cursor: pointer; text-decoration: none; }
.review-text-button:hover { color: var(--ink); }
.review-rating { display: flex; gap: 4px; width: max-content; max-width: 100%; }
.review-rating label { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: var(--ink-muted); cursor: pointer; }
.review-rating input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.review-star { width: 32px; height: 32px; fill: transparent; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; transition: fill 160ms ease, color 160ms ease, transform 160ms ease; pointer-events: none; }
.review-rating label:has(:checked), .review-rating label:has(~ label :checked) { color: var(--ink); }
.review-rating label:has(:checked) .review-star, .review-rating label:has(~ label :checked) .review-star { fill: currentColor; }
.review-rating label:has(:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.review-rating-field #rating-caption { margin-top: 8px; min-height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .review-rating:has(label:hover) label { color: var(--ink-muted); }
  .review-rating:has(label:hover) .review-star { fill: transparent; }
  .review-rating:has(label:hover) label:hover, .review-rating:has(label:hover) label:has(~ label:hover) { color: var(--ink); }
  .review-rating:has(label:hover) label:hover .review-star, .review-rating:has(label:hover) label:has(~ label:hover) .review-star { fill: currentColor; }
  .review-rating label:hover .review-star { transform: translateY(-2px); }
}
.review-form .review-consent { display: flex; align-items: flex-start; gap: 12px; }
.review-consent input { margin-top: 5px; flex: none; }
.review-form a, .review-rules a { text-decoration: underline; text-underline-offset: 3px; }
.review-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.review-rules { margin-top: 24px; max-width: 760px; }
.review-rules summary { cursor: pointer; }
.review-form .btn { justify-self: start; }
.btn:disabled { cursor: default; opacity: .55; transform: none; }
.review-card + .review-card { margin-top: 16px; }
.review-grid .review-card + .review-card { margin-top: 0; }
#review-success .btn { margin-top: 16px; }
[aria-current=page] { outline: 1px solid var(--ink); }
#write, #delete-review { scroll-margin-top: 24px; }
@media (max-width: 700px) { .review-grid, .reviews-page .review-grid, .review-fields { grid-template-columns: minmax(0, 1fr); } }

.review-form:not(:has(select[name=status] option[value=rejected]:checked)) .rejection-reason { display:none; }
