/* ---------------------------------------------------------------------------
   REFLECTION HEARTS (rh-2026-10-21). The author's side: who hearted which
   answer, on the Today handoff card and at #/reflection/:id. Backline tokens
   only; the chip shape follows the Floor Notes reaction chips (.rx-chip).
   --------------------------------------------------------------------------- */

/* the chips under one answer: a filled heart, the reactors' faces, a name */
.rh-chips {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  min-height: 32px; max-width: 100%; padding: 3px 12px 3px 8px;
  background: var(--surf2); border: 1px solid var(--line2); border-radius: 999px;
  color: var(--ink2); font-size: 12px; font-weight: 700; text-decoration: none;
  -webkit-user-select: none; user-select: none;
}
a.rh-chips { cursor: pointer; transition: border-color 140ms ease, background-color 140ms ease; }
a.rh-chips:hover { border-color: var(--violetStroke2); background: var(--surf3); }
.rh-chips.mine { border-color: var(--violetStroke); }
.rh-heart { font-size: 14px; line-height: 1; color: var(--bad); flex: 0 0 auto; }
.rh-faces { display: inline-flex; flex: 0 0 auto; }
.rh-face {
  width: 24px; height: 24px; border-radius: 50%; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: -6px; border: 2px solid var(--surf2);
  background: linear-gradient(135deg, #3A2F6B 0%, #1C5C58 100%);
  color: var(--ink); font-size: 8.5px; font-weight: 800; letter-spacing: 0.2px;
}
.rh-face:first-child { margin-left: 0; }
.rh-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rh-face.more { background: var(--surf3); color: var(--ink2); font-family: var(--mono); }
.rh-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rh-more {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  min-height: 32px; padding: 4px 2px;
  color: var(--ink2); font-size: 12px; font-weight: 600; text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.rh-more:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a.rh-chips:focus-visible, .rh-more:focus-visible, .rh-back:focus-visible, .rh-field:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px;
}
@media (pointer: coarse) { a.rh-chips, .rh-more { min-height: 44px; } }

/* #/reflection/:id */
.rh-view { gap: 14px; }
.rh-back {
  display: inline-flex; align-items: center; gap: 4px; align-self: flex-start;
  min-height: 44px; padding: 0 6px 0 0;
  color: var(--ink2); font-size: 13px; font-weight: 600; text-decoration: none;
}
.rh-head { display: flex; flex-direction: column; gap: 6px; }
.rh-head .screen-title { margin: 0; }
.rh-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--mut); font-size: 12.5px; font-weight: 600; }
.rh-mood { display: inline-flex; align-items: center; gap: 8px; color: var(--ink2); }
.rh-mood-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.rh-mood-bar { width: 4px; border-radius: 2px; background: var(--line2); }
.rh-mood-bar:nth-child(1) { height: 6px; } .rh-mood-bar:nth-child(2) { height: 8px; }
.rh-mood-bar:nth-child(3) { height: 10px; } .rh-mood-bar:nth-child(4) { height: 12px; }
.rh-mood-bar:nth-child(5) { height: 14px; }
.rh-mood-bar.on { background: var(--teal); }
.rh-count { font-variant-numeric: tabular-nums; }
.rh-hint { margin: 0; color: var(--mut); font-size: 12.5px; }

.rh-fields { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.rh-field {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 14px 16px; background: var(--surf); border: 1px solid var(--line); border-radius: 14px;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  touch-action: manipulation; cursor: default; scroll-margin: 96px 0;
}
.rh-field.blank { background: var(--bg2); }
.rh-field-l {
  margin: 0; font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 1.1px; text-transform: uppercase; color: var(--mut);
}
.rh-field-t { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; white-space: pre-line; }
.rh-field.blank .rh-field-t { color: var(--mut); font-style: italic; font-size: 13px; }
.rh-err { color: var(--warn); font-size: 12px; font-weight: 600; }

/* the answer a heart landed on: a violet ring that pulses for two seconds.
   Opacity only, on a pseudo-element, so nothing reflows. */
.rh-field::after {
  content: ''; position: absolute; inset: -3px; border-radius: 16px;
  border: 2px solid var(--violet2); opacity: 0; pointer-events: none;
}
.rh-field.lit::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .rh-field.lit::after { animation: rh-pulse 1000ms ease-in-out 2; }
}
@keyframes rh-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.rh-gone { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 18px 16px; background: var(--surf); border: 1px solid var(--line); border-radius: 14px; }
.rh-gone-t { font-size: 16px; font-weight: 700; color: var(--ink); }
.rh-gone-b { font-size: 13px; color: var(--mut); }

/* the toast rides .wl-toast (css/parity-wall.css); these are its two lines */
a.wl-toast.rh-toast { z-index: 9001; text-decoration: none; color: inherit; border-color: var(--violetStroke); background: var(--surf3); }
.rh-toast .g { color: var(--bad); }
.rh-toast-col { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rh-toast .tl { display: block; }
.rh-toast-sub { font-size: 12.5px; font-weight: 500; color: var(--mut); }
.rh-toast:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* the notification tray row for a heart */
.icon-tile.ntf-heart { background: var(--badSoft); color: var(--bad); font-size: 16px; line-height: 1; }
