/* Threshold popup */

* { box-sizing: border-box; margin: 0; padding: 0; }

/* The UA's [hidden] rule loses to any author display value, so every
   hidden-able section (pending card, trend pill, gate-this, banner) is
   pinned here once instead of per-selector. */
[hidden] { display: none !important; }

:root {
  --bg: #0C0B09;
  --bg-elev: #14120E;
  --bg-card-1: #171411;
  --bg-card-2: #0E0C0A;
  --cream: #ECE6DA;
  --cream-soft: #C9C0AF;
  --cream-mute: #908778;
  --cream-faint: #5D5648;
  --gold: #C8A876;
  --gold-deep: #A88A5C;
  --gold-light: #DCC08A;
  --gold-soft: rgba(200, 168, 118, 0.14);
  --gold-line: rgba(200, 168, 118, 0.22);
  --coral: #D27866;
  --serif: 'Fraunces', 'Iowan Old Style', 'Hoefler Text', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
  width: 360px;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background:
    radial-gradient(700px 500px at 15% -10%, rgba(220, 192, 138, 0.06), transparent 60%),
    radial-gradient(600px 500px at 110% 110%, rgba(120, 90, 60, 0.05), transparent 65%),
    var(--bg);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.018) 0.5px, transparent 0.6px);
  background-size: 3px 3px;
  mix-blend-mode: screen;
  opacity: 0.45;
}

.popup {
  position: relative;
  padding: 22px 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- Header lockup ---------- */
.popup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.popup__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.popup__brand-mark {
  width: 18px;
  height: 22px;
  flex-shrink: 0;
  display: block;
}

.popup__brand-word {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: -0.005em;
  color: var(--cream);
  font-variation-settings: "opsz" 60;
  line-height: 1;
  padding-bottom: 1px;
}

.popup__icon-link {
  background: transparent;
  border: none;
  color: var(--cream-mute);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 200ms ease, background 200ms ease;
}
.popup__icon-link:hover {
  color: var(--gold-light);
  background: rgba(200, 168, 118, 0.06);
}
.popup__icon-link:active {
  background: rgba(200, 168, 118, 0.10);
  transition-duration: 100ms;
}

/* ---------- Primary action bar: unmissable site management ---------- */
/* The column's flex gap owns the vertical rhythm; cards carry no margins of
   their own so intervals stay even down the whole popup. */
.popup__primary {
  margin: 0;
}
.popup__primary-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(200,168,118,0.14), rgba(200,168,118,0.06));
  border: 1px solid rgba(200,168,118,0.34);
  border-radius: 8px;
  cursor: pointer;
  transition: all 200ms ease;
  text-align: left;
}
.popup__primary-btn:hover {
  background: linear-gradient(180deg, rgba(200,168,118,0.20), rgba(200,168,118,0.09));
  border-color: rgba(200,168,118,0.55);
  transform: translateY(-1px);
}
.popup__primary-btn:active {
  transform: translateY(0);
  transition-duration: 100ms;
}

/* While gating is off, the permission banner is the only gold moment; the
   site-management bar steps back so the popup asks for one thing. */
.popup__primary--quiet .popup__primary-btn {
  background: transparent;
  border-color: rgba(232, 225, 212, 0.10);
}
.popup__primary--quiet .popup__primary-btn:hover {
  background: rgba(200, 168, 118, 0.04);
  border-color: rgba(200, 168, 118, 0.30);
  transform: none;
}
.popup__primary--quiet .popup__primary-icon {
  background: rgba(200, 168, 118, 0.16);
  color: var(--gold-light);
}
.popup__primary--quiet .popup__primary-count { color: var(--cream-mute); }
.popup__primary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold);
  color: #16110A;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 0;
  font-weight: 400;
  padding-bottom: 2px;
}
.popup__primary-label {
  flex: 1;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: -0.006em;
  color: var(--cream);
  font-variation-settings: "opsz" 36;
}
.popup__primary-count {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
/* ---------- "Gate this site" card (current tab one-click add) ---------- */
.gate-this {
  margin: 0;
  padding: 14px 16px 14px;
  border: 1px solid rgba(200, 168, 118, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(200, 168, 118, 0.05), rgba(200, 168, 118, 0.02)),
    rgba(20, 18, 14, 0.6);
  animation: gate-this-in 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gate-this__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.gate-this__label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.gate-this__domain {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--cream);
  font-variation-settings: "opsz" 48;
}

.gate-this__actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.gate-this__btn {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(232, 225, 212, 0.12);
  border-radius: 999px;
  color: var(--cream-mute);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 14px;
  cursor: pointer;
  transition: all 200ms ease;
}

.gate-this__btn:hover {
  color: var(--cream);
  border-color: rgba(200, 168, 118, 0.4);
}
.gate-this__btn:active {
  background: rgba(200, 168, 118, 0.08);
  transition-duration: 100ms;
}

.gate-this__btn--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #14120E;
}

.gate-this__btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: #14120E;
}
.gate-this__btn--primary:active {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: #14120E;
  transition-duration: 100ms;
}

.gate-this__hint {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--cream-faint);
}

.gate-this--added {
  border-color: rgba(200, 168, 118, 0.4);
  background: linear-gradient(180deg, rgba(200, 168, 118, 0.12), rgba(200, 168, 118, 0.04));
}
.gate-this--added .gate-this__actions,
.gate-this--added .gate-this__hint { display: none; }

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

/* Gating off: the one state where the extension can do nothing until the user
   grants host access. Carries a touch more gold than the gate-this card so it
   reads as the thing to resolve first, without raising its voice. */
.gating-off {
  margin: 0;
  padding: 16px 16px 14px;
  border: 1px solid rgba(200, 168, 118, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(200, 168, 118, 0.09), rgba(200, 168, 118, 0.03)),
    rgba(20, 18, 14, 0.6);
}

.gating-off__title {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
}

.gating-off__sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.5;
  color: var(--cream-soft);
  margin-bottom: 14px;
}

.gating-off__btn {
  width: 100%;
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: #14120E;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 11px 14px;
  cursor: pointer;
  transition: all 200ms ease;
}

.gating-off__btn:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}
.gating-off__btn:active {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  transition-duration: 100ms;
}

/* Card nudge: a quiet invitation to the shareable card, shown once the score
   has settled. An invitation, not a nag. */
.card-nudge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(200, 168, 118, 0.10), rgba(200, 168, 118, 0.035));
  border: 1px solid rgba(200, 168, 118, 0.22);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: border-color 200ms ease, background 200ms ease;
}
.card-nudge:hover {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(200, 168, 118, 0.16), rgba(200, 168, 118, 0.06));
}
.card-nudge:active {
  border-color: var(--gold-deep);
  transition-duration: 100ms;
}
.card-nudge__text {
  font-family: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  color: var(--gold-light);
}
.card-nudge__arrow {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--gold);
  transition: transform 200ms ease;
}
.card-nudge:hover .card-nudge__arrow { transform: translateX(3px); }

.hero {
  display: block;
  width: 100%;
  padding: 16px 16px 14px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
  font: inherit;
  color: inherit;
}
.hero:hover {
  background: rgba(200, 168, 118, 0.04);
  border-color: rgba(200, 168, 118, 0.16);
}
.hero:active {
  background: rgba(200, 168, 118, 0.06);
  transition-duration: 100ms;
}
.hero:hover .hero__open { color: var(--gold-light); }
.hero:hover .hero__open-arrow { transform: translateX(3px); }

/* One champagne pulse when a resolved reflection moves the score. It fades
   back to the resting card; reduced-motion strips the animation entirely. */
.hero--pulse {
  animation: hero-pulse 900ms ease-out 1;
}
@keyframes hero-pulse {
  0%   { background: rgba(200, 168, 118, 0.10); border-color: rgba(200, 168, 118, 0.40); }
  100% { background: transparent; border-color: transparent; }
}

/* ---------- Weekly digest line ---------- */
/* One quiet sentence above the hero when the week's digest is ready.
   No badge, no count: the week arriving is news enough. */
.digest-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 2px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(200, 168, 118, 0.14);
  cursor: pointer;
  text-align: left;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 13.5px;
  color: var(--gold-light);
  transition: color 200ms ease;
}
.digest-line:hover { color: var(--cream); }
.digest-line:active { color: var(--gold); transition-duration: 100ms; }
.digest-line__arrow {
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  transition: transform 200ms ease;
}
.digest-line:hover .digest-line__arrow { transform: translateX(3px); }

.hero__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.hero__value {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 72px;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--cream);
  font-variation-settings: "opsz" 144;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
/* Tone the score by health. A low score is never shown in celebratory gold.
   The colour withholds judgement rather than inflicting it. */
.hero--high .hero__value { color: var(--gold-light); }
.hero--mid  .hero__value { color: var(--cream); }
.hero--low  .hero__value { color: var(--cream-mute); }
.hero--forming .hero__value {
  font-size: 40px;
  font-style: italic;
  color: var(--cream-mute);
}

.hero__denom {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0;
  color: var(--cream-mute);
  font-variation-settings: "opsz" 36;
}

/* Trend: movement shown co-equal with the number. */
.hero__trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
}
.hero__trend-arrow { font-size: 12px; line-height: 1; }
.hero__trend--up {
  color: #C8A876;
  background: rgba(200, 168, 118, 0.10);
}
.hero__trend--down {
  color: var(--cream-mute);
  background: rgba(232, 225, 212, 0.05);
}

.hero__rule {
  margin: 4px 0 14px;
}

.hero__rule svg {
  display: block;
  width: 100%;
  height: 14px;
}

.hero__desc {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--cream-soft);
  max-width: 38ch;
  font-variation-settings: "opsz" 24;
  margin-bottom: 14px;
}

.hero__open {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-mute);
  padding-top: 12px;
  border-top: 1px solid rgba(232, 225, 212, 0.06);
  transition: color 200ms ease;
}
.hero__open-arrow {
  transition: transform 220ms ease;
  font-size: 13px;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat {
  padding: 14px 14px 13px;
  background: linear-gradient(180deg, rgba(23,20,17,0.85), rgba(14,12,10,0.85));
  border: 1px solid rgba(232,225,212,0.06);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,168,118,0.18), transparent);
}

.stat__label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-faint);
  margin-bottom: 6px;
}

.stat__value {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 30px;
  line-height: 1;
  color: var(--cream);
  font-variation-settings: "opsz" 60;
  display: flex;
  align-items: baseline;
  gap: 3px;
  letter-spacing: -0.02em;
}

.stat__unit {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0;
  font-variation-settings: "opsz" 36;
}

.stat__sub {
  margin-top: 5px;
  font-size: 11px;
  color: var(--cream-mute);
  letter-spacing: 0.01em;
}

.stat__bar {
  margin-top: 11px;
  height: 1.5px;
  background: rgba(232,225,212,0.07);
  border-radius: 2px;
  overflow: hidden;
}

.stat__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  width: 0%;
  transition: width 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.stat__bar-fill.over { background: var(--coral); }

.stat__dots {
  margin-top: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 8px;
}

.stat__dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(232,225,212,0.10);
}
.stat__dots .dot.held { background: var(--gold); }
.stat__dots .dot.today { box-shadow: 0 0 0 1px var(--gold-light); background: var(--gold-light); }

/* ---------- Recent ---------- */
.recent {
  margin: 0;
}

.recent__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(232,225,212,0.06);
}

.recent__label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

.recent__meta {
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  color: var(--cream-mute);
  letter-spacing: 0;
}

.recent__list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.recent__list li {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: baseline;
  column-gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(232,225,212,0.04);
}

.recent__list li:last-child {
  border-bottom: none;
}

.recent__flag {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cream-faint);
  align-self: center;
  margin-top: 1px;
}
.recent__flag.yes { background: var(--gold); box-shadow: 0 0 0 2px rgba(200,168,118,0.15); }
.recent__flag.partial { background: rgba(200,168,118,0.45); }
.recent__flag.no { background: var(--coral); }
.recent__flag.unknown { background: rgba(232,225,212,0.18); }

.recent__intent {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 14px;
  color: var(--cream);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variation-settings: "opsz" 24;
}

.recent__intent--quiet {
  font-style: italic;
  color: var(--cream-mute);
}

.recent__meta-r {
  font-family: var(--sans);
  font-size: 10.5px;
  color: var(--cream-faint);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.recent__meta-r .dot-sep {
  display: inline-block;
  margin: 0 5px;
  opacity: 0.5;
}

.recent__empty {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--cream-mute);
  padding: 18px 0 6px;
}

/* ---------- Footer ---------- */
.popup__foot {
  padding-top: 4px;
  border-top: 1px solid rgba(232,225,212,0.04);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.popup__link {
  background: transparent;
  border: none;
  color: var(--cream-mute);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 10px 12px;
  text-align: center;
  transition: color 200ms ease, background 200ms ease;
}

.popup__link:hover { color: var(--gold-light); background: rgba(200,168,118,0.04); }
.popup__link:active { background: rgba(200,168,118,0.08); transition-duration: 100ms; }

.popup__link--primary {
  color: var(--gold-light);
  font-weight: 600;
  border: 1px solid rgba(200,168,118,0.22);
  border-radius: 2px;
  margin-top: 6px;
}
.popup__link--primary:hover {
  color: #16110A;
  background: var(--gold);
  border-color: var(--gold);
}
.popup__link--primary:active {
  color: #16110A;
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  transition-duration: 100ms;
}

/* ---------- Pending reflections ---------- */
/* Surfaces sessions the user left unanswered. Quieter than the hero, louder than
   the recent list. The visual weight matches the editorial weight: this is a
   question waiting for an answer. */
.pending {
  padding: 16px 18px 14px;
  background: linear-gradient(180deg, rgba(200,168,118,0.05), rgba(200,168,118,0.015));
  border: 1px solid rgba(200,168,118,0.16);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pending__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.pending__label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.pending__count {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--cream-mute);
}
.pending__count span { color: var(--cream); font-style: normal; font-weight: 500; }

.pending__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pending__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 10px 0 12px;
  border-top: 1px solid rgba(200,168,118,0.08);
  transition: opacity 280ms ease, transform 280ms ease;
}
.pending__item:first-child { border-top: 0; padding-top: 2px; }

.pending__item--resolving {
  opacity: 0;
  transform: translateY(-4px);
}

.pending__intent {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--cream);
}

.pending__meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--cream-faint);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pending__meta .dot-sep { opacity: 0.6; }

.pending__actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.pending__answer {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(232,225,212,0.10);
  color: var(--cream-mute);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 0;
  border-radius: 2px;
  cursor: pointer;
  transition: all 200ms ease;
}
.pending__answer:hover { color: var(--cream); border-color: rgba(200,168,118,0.45); }
.pending__answer:active { background: rgba(200,168,118,0.08); transition-duration: 100ms; }
.pending__answer--yes:hover { color: #C8A876; border-color: rgba(200,168,118,0.5); }
.pending__answer--no:hover { color: #E89E8C; border-color: rgba(210,120,102,0.5); }
.pending__answer:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

/* The emptied card earns a beat of acknowledgment before it goes; answering
   the last question is the best moment in the popup, not housekeeping. */
.pending__done {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 13.5px;
  color: var(--cream-soft);
  padding: 4px 0 6px;
}

/* When more sessions wait than the card shows, say so plainly. */
.pending__more {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 12px;
  color: var(--cream-faint);
  padding-top: 2px;
}

/* ---------- Reduced motion ----------
   The gate-this card reveals from opacity:0, so we pin its end-state. The
   resolving-item exit sets opacity:0 directly (not via the animation), so it
   still clears. We neutralize timing, not the opacity itself. */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .gate-this { opacity: 1; transform: none; }
}

/* Keyboard focus: a consistent champagne ring; mouse focus stays clean. */
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
input:focus-visible, textarea:focus-visible { outline: none; }
