/* Review page layout. Tokens come from /design/re-reset.css; nothing is redeclared here. */
.rv-main{
  max-width: 640px;
  margin-inline: auto;
  padding: var(--sp-md) 16px var(--sp-xl);
  display: grid;
  gap: var(--sp-md);
}
#page{ display: grid; gap: var(--sp-md); }
#page[hidden], .rv-missing[hidden]{ display: none; }
.rv-mark{
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: var(--step--1);
  color: var(--green-800);
  border-bottom: 2px solid var(--gold-600);
  padding-bottom: var(--sp-xs);
  margin: 0;
  width: max-content;
}
.rv-intro h1{ font-size: var(--step-3); margin-bottom: var(--sp-sm); }
.rv-step h3{ margin-bottom: var(--sp-xs); }
.rv-sub{ color: var(--ink-muted); }

.rv-form{ display: grid; gap: var(--sp-sm); margin-top: var(--sp-sm); }
.rv-form label{ display: grid; gap: 6px; font-weight: 500; }
.rv-form textarea{
  width: 100%;
  font: inherit;
  font-size: 17px; /* 16px+ stops iOS from zooming the page on focus */
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 12px;
  resize: vertical;
}
.rv-form textarea:focus{ border-color: var(--terracotta-600); outline: none; }
.rv-form .rv-check{ display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-muted); }
.rv-check input{ width: 20px; height: 20px; margin-top: 3px; accent-color: var(--terracotta-600); flex: none; }
.rv-form .rr-btn, .rv-actions .rr-btn{ width: 100%; text-align: center; }

.rv-actions{ display: grid; gap: var(--sp-xs); margin-top: var(--sp-sm); }
.rv-upload{ display: block; }
.rv-video-wrap{
  position: relative;
  margin-top: var(--sp-sm);
  background: var(--green-900);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-height: 70vh;
}
.rv-video-wrap video{ width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-timer{
  position: absolute; top: 12px; left: 12px;
  background: var(--terracotta-600); color: #fff;
  font-weight: 600; font-variant-numeric: tabular-nums;
  padding: 4px 10px; border-radius: var(--radius);
}
.rv-fine{ font-size: var(--step--1); color: var(--ink-muted); margin-top: var(--sp-sm); }
.rv-status{ font-size: var(--step--1); color: var(--terracotta-800); min-height: 1.2em; margin: 0; }
.rv-done h4{ margin-bottom: var(--sp-xs); }
.rv-done #google{ margin-top: var(--sp-sm); }
.rv-foot{ text-align: center; color: var(--ink-muted); font-size: var(--step--1); margin: var(--sp-md) auto 0; }
.rv-sr{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* A finished card goes quiet so the next one stands out. */
.rv-step.is-done{ background: var(--surface-2); }

/* Star rating. The row is reversed in markup so ~ can light every star up to the hovered one. */
.rv-stars{ border: 0; padding: 0; margin: 0; }
.rv-stars legend{ font-weight: 500; padding: 0; margin-bottom: 6px; }
.rv-stars__row{ display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rv-stars input{ position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-stars label{ font-size: 40px; line-height: 1; color: var(--sand-300); cursor: pointer; padding: 2px; min-width: 44px; text-align: center; }
.rv-stars input:checked ~ label,
.rv-stars label:hover, .rv-stars label:hover ~ label{ color: var(--gold-600); }
.rv-stars input:focus-visible + label{ outline: 2px solid var(--terracotta-600); outline-offset: 2px; }

/* The hidden attribute wins over component display rules (.rr-btn, .rv-actions). */
[hidden]{ display: none !important; }
