.reviews-body {
  max-width: 800px;
}

/* ── History tab ── */
.hist-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 10px;
  transition: box-shadow 0.15s;
}

.hist-card:hover {
  box-shadow: var(--shadow-sm);
}

.hist-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}

.hist-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hist-author {
  font-size: 14px;
  font-weight: 700;
}

.hist-stars {
  font-size: 13px;
}

.hist-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hist-date {
  font-size: 12px;
  color: var(--faint);
}

.hist-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--olive);
  background: var(--olive-bg);
  border: 1px solid var(--olive-border);
  padding: 3px 9px;
  border-radius: 4px;
  white-space: nowrap;
}

.hist-review-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
  font-style: italic;
}

.hist-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hist-toggle-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--olive);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  padding: 0;
}

.hist-toggle-btn:hover {
  opacity: 0.75;
}

.hist-reply {
  margin-top: 12px;
  background: var(--olive-bg);
  border: 1px solid var(--olive-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hist-reply-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--olive);
  margin-bottom: 8px;
}

.hist-reply-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.65;
}

.hist-stats {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.hist-stat {
  text-align: center;
}

.hist-stat-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--olive);
}

.hist-stat-label {
  font-size: 11px;
  color: var(--faint);
  margin-top: 2px;
}

/* ── Tone selector ── */
.tone-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.tone-bar-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-bottom: 10px;
}

.tone-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tone-pill {
  padding: 6px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--off);
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}

.tone-pill.on {
  border-color: var(--olive);
  background: var(--olive-bg);
  color: var(--olive);
  font-weight: 600;
}

/* ── Tabs ── */
.tabs-row {
  display: flex;
  gap: 2px;
  background: var(--off);
  padding: 4px;
  border-radius: var(--radius-sm);
  width: fit-content;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 7px 16px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  background: transparent;
  color: var(--muted);
}

.tab-btn.on {
  background: var(--white);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ── Review cards ── */
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
}

.review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.review-author {
  font-size: 14px;
  font-weight: 700;
}

.review-stars {
  font-size: 14px;
}

.review-badge {
  font-size: 11px;
  color: var(--faint);
  background: var(--off);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
}

.review-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* ── Reply box ── */
.reply-out {
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.reply-out-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--olive);
  margin-bottom: 8px;
}

.reply-out-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 12px;
  white-space: pre-wrap;
}

.reply-actions {
  display: flex;
  gap: 6px;
}

/* ── Star picker ── */
.star-pick {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.star-btn {
  width: 36px;
  height: 36px;
  border-radius: 5px;
  border: 1.5px solid var(--border);
  background: var(--off);
  font-size: 16px;
  cursor: pointer;
  font-family: var(--font);
  color: var(--faint);
  transition: all 0.15s;
}

.star-btn.on {
  border-color: #c8a84b;
  background: #fffbeb;
  color: #c8a84b;
}

/* ── Custom textarea ── */
.custom-ta {
  width: 100%;
  background: var(--off);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  resize: vertical;
  font-family: var(--font);
  box-sizing: border-box;
  margin-bottom: 12px;
}

.custom-ta:focus {
  border-color: var(--olive);
}
