/* iToro desktop. Daylight to find, night to pray.
   Tokens follow constants/Colors.ts (stone scale, brand gold) and the gathering
   surface (glass, ember, sage, dusk). The shell, lists and forms are warm stone;
   each request is a night plate; the request and the recorder share one earth-lit
   stage. One gold moment per surface. */
:root {
  color-scheme: light;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --stone-950: #0c0a09;
  --gold: #d4a574;
  --gold-pale: #f3ddbb;
  --gold-soft: #e7d0b5;
  --gold-ink: #8a6d1f;
  --gold-line: rgba(212, 165, 116, 0.28);
  --ember: #f2a08b;
  --sage: #9db89a;
  --dusk: #a9b9cf;
  --green: #16a34a;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-line: rgba(255, 255, 255, 0.14);
  --paper-line: var(--stone-200);
  --ink: var(--stone-900);
  --muted: var(--stone-600);
  --focus-day: #a16a32;
  --focus-night: var(--gold);
  --radius-plate: 24px;
  --rail: 248px;
  --pray-green: #22c55e;
  --radius-field: 14px;
  --font-system:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica,
    Arial, sans-serif;
  --font-light: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--stone-50);
  color: var(--ink);
  font: 16px/1.6 var(--font-system);
}
button,
input,
select,
textarea {
  font: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.6px;
  font-weight: 600;
}
h2 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.3px;
  font-weight: 600;
}
h3 {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible {
  outline: 3px solid var(--focus-day);
  outline-offset: 3px;
}
.night :focus-visible,
.night:focus-visible {
  outline-color: var(--focus-night);
}

/* Buttons. Gold is the step, green is the prayer leaving your hands, quiet is
   everything else. Every control is at least 44px tall. */
button,
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--gold);
  color: var(--stone-950);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  max-width: 100%;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button.quiet,
.button.quiet {
  border-color: var(--stone-300);
  background: transparent;
  color: var(--ink);
}
button.quiet:not(:disabled):hover,
.button.quiet:hover {
  background: var(--stone-100);
}
.night button.quiet,
.night .button.quiet {
  border-color: var(--glass-line);
  background: var(--glass);
  color: var(--gold-pale);
}
.night button.quiet:not(:disabled):hover,
.night .button.quiet:hover {
  background: rgba(255, 255, 255, 0.11);
}
button.pray {
  background: var(--green);
  color: var(--stone-950);
}
.night button.pray:disabled {
  opacity: 1;
  background: var(--glass);
  border-color: var(--glass-line);
  color: var(--stone-400);
}
button.link,
.button.link {
  min-height: 40px;
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--gold-ink);
  font-weight: 600;
}
.night button.link,
.night .button.link {
  color: var(--gold);
}
button.link:not(:disabled):hover,
.button.link:hover {
  text-decoration: underline;
}
button svg,
.button svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.glyph {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Shell */
.shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 100vh;
  overflow-y: auto;
  padding: 28px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-right: 1px solid var(--paper-line);
  background: var(--stone-100);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 12px;
  width: fit-content;
}
.brand svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.brand b {
  font: 300 27px/1 var(--font-light);
  letter-spacing: -0.4px;
}
.brand-line {
  margin: 8px 0 0 6px;
  font-size: 12px;
  color: var(--stone-500);
}
nav {
  display: grid;
  gap: 4px;
}
nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--stone-600);
  font-weight: 500;
  text-decoration: none;
}
nav a svg {
  width: 22px;
  height: 22px;
  flex: none;
}
nav a:hover {
  background: var(--stone-200);
  color: var(--ink);
}
nav a[aria-current="page"] {
  background: var(--stone-900);
  color: var(--gold-pale);
}
.mobile-invitation {
  margin-top: auto;
  padding: 16px 6px 0;
  border-top: 1px solid var(--paper-line);
  font-size: 13px;
  line-height: 1.45;
}
.mobile-invitation p {
  font-weight: 600;
  color: var(--ink);
}
.mobile-invitation span {
  display: block;
  margin-top: 2px;
  color: var(--stone-500);
  font-size: 12px;
}
.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.store-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 8px;
}
.store-links img {
  display: block;
  height: 36px;
  width: auto;
}
.sidebar-foot {
  display: grid;
  gap: 8px;
  padding: 0 6px;
  font-size: 13px;
  color: var(--stone-600);
}
.sidebar-foot p {
  overflow-wrap: anywhere;
}
.sidebar-foot .row {
  display: flex;
  gap: 8px 14px;
  flex-wrap: wrap;
  align-items: center;
}
.sidebar-foot button.quiet {
  min-height: 40px;
  padding: 6px 14px;
  font-size: 13px;
}
main {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 20px 40px 72px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin-bottom: 8px;
}
#refresh {
  margin-left: auto;
}
#status {
  font-size: 14px;
  color: var(--stone-500);
  min-height: 1.4em;
}
#status:empty {
  display: none;
}
#error {
  color: #7a2d22;
  background: #fbeeea;
  border: 1px solid #ecc9c0;
  border-radius: 14px;
  padding: 12px 16px;
  margin: 4px 0 16px;
  white-space: pre-wrap;
  font-size: 15px;
}
#error:empty {
  display: none;
}
.skip {
  position: absolute;
  top: -80px;
  left: 20px;
  padding: 12px 16px;
  border-radius: 12px;
  background: white;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}

/* Page heads and daylight panels */
.page-head {
  display: grid;
  gap: 8px;
  max-width: 720px;
  margin: 8px 0 20px;
}
.page-head p {
  font-size: 17px;
  color: var(--muted);
}
/* The ticker: one line of the community's news at the heading's left edge,
   fading through in turn. The slot keeps its height before the news lands. */
.ticker-slot {
  min-height: 40px;
  max-width: 720px;
  margin: 10px 0 14px;
}
.ticker {
  position: relative;
  min-height: 40px;
}
.tick {
  --tick: var(--gold-ink);
  position: absolute;
  inset: 0 auto auto 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}
.tick.entering {
  opacity: 0;
  transform: translateY(8px);
}
.tick.leaving {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}
.avatar.tick-face {
  width: 36px;
  height: 36px;
  font-size: 14px;
  border-width: 1.5px;
}
.tick-icon {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--tick);
  background: color-mix(in srgb, var(--tick) 16%, var(--stone-50));
  border: 1.5px solid color-mix(in srgb, var(--tick) 40%, transparent);
}
.tick-icon .glyph {
  width: 18px;
  height: 18px;
}
.tick-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.tick-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--tick);
}
.tick-line {
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  color: var(--stone-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
a.tick:hover .tick-line,
a.tick:focus-visible .tick-line {
  text-decoration: underline;
  text-underline-offset: 3px;
}
a.tick:focus-visible {
  outline: 2px solid var(--focus-day);
  outline-offset: 4px;
  border-radius: 8px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.night .eyebrow {
  color: var(--gold);
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.night .muted {
  color: var(--stone-300);
}
.panel {
  padding: 24px;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-plate);
  background: white;
}
.panel + .panel,
.plate + .plate,
.plate + .panel,
.panel + .plate {
  margin-top: 16px;
}
.form-panel {
  max-width: 640px;
  display: grid;
  gap: 4px;
}
.detail-column {
  max-width: 760px;
}
.heading-line {
  display: flex;
  justify-content: space-between;
  gap: 12px 16px;
  align-items: center;
  flex-wrap: wrap;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.back {
  margin-bottom: 14px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border: 1px solid var(--stone-300);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--stone-600);
  white-space: nowrap;
}
.night .chip {
  border-color: var(--glass-line);
  color: var(--stone-300);
}
.chip.gold {
  border-color: var(--gold-line);
  color: var(--gold-ink);
  background: rgba(212, 165, 116, 0.12);
}
.night .chip.gold {
  color: var(--gold);
}
.chip.sage {
  border-color: rgba(157, 184, 154, 0.5);
  color: #4d6b4a;
  background: rgba(157, 184, 154, 0.14);
}
.night .chip.sage {
  color: var(--sage);
}
.chip.ember {
  border-color: rgba(242, 160, 139, 0.5);
  color: #9a3f2a;
  background: rgba(242, 160, 139, 0.14);
}
.night .chip.ember {
  color: var(--ember);
}
.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.note {
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: var(--stone-100);
  color: var(--stone-700);
  font-size: 15px;
}
.night .note {
  background: var(--glass);
  color: var(--stone-200);
}
.empty {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 28px;
  border: 1px dashed var(--stone-300);
  border-radius: 20px;
  color: var(--muted);
}
.night .empty {
  border-color: var(--glass-line);
  color: var(--stone-300);
}
.more {
  margin: 24px auto 0;
  display: flex;
}

/* Filters: a quiet toolbar, visible labels for the screen reader, pills to the eye */
.filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.filters select {
  width: auto;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 40px 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--stone-300);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2357534e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
      right 14px center/16px no-repeat,
    white;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
}
.segments {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--stone-300);
  border-radius: 999px;
  background: white;
  margin-bottom: 20px;
}
.segments button {
  min-height: 40px;
  padding: 6px 16px;
  border-color: transparent;
  background: transparent;
  color: var(--stone-600);
  font-weight: 500;
}
.segments button[aria-pressed="true"] {
  background: var(--stone-900);
  color: var(--gold-pale);
}

/* People */
.person {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.avatar {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-line);
  background: var(--stone-200);
}
/* The monogram disc under every photo, tinted by the person's accent. */
.initials {
  --accent: var(--gold-ink);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--stone-50));
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.initials img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.night .initials {
  background: color-mix(in srgb, var(--accent) 16%, var(--stone-800));
}
.person-identity {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.person-identity h3 {
  font-size: 18px;
}
.person.large {
  gap: 16px;
  align-items: center;
}
.person.large .avatar {
  width: 60px;
  height: 60px;
  font-size: 22px;
}
.person.large h2 {
  font: 300 clamp(26px, 2.4vw, 32px) / 1.15 var(--font-light);
  letter-spacing: -0.2px;
  color: var(--stone-50);
}
.request-location {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.45;
  color: var(--gold-ink);
}
.night .request-location {
  color: var(--gold-soft);
}
.request-location svg {
  width: 17px;
  height: 20px;
  flex: 0 0 17px;
}
.request-location span {
  overflow-wrap: anywhere;
}

/* Request cards, as the app draws them: the night earth across the top with the
   mark breathing over it, the person, the request as the headline, and one
   green action. The whole card is the link. */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}
.plate {
  position: relative;
  color: var(--stone-50);
  background:
    radial-gradient(
      110% 70% at 100% 0%,
      rgba(212, 165, 116, 0.11),
      transparent 60%
    ),
    var(--stone-900);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-plate);
  padding: 24px;
}
.prayer-card {
  --tint: rgba(28, 25, 23, 0.1);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 404px;
  border-radius: 22px;
  background: var(--stone-900);
  color: #fff;
  box-shadow: 0 10px 20px rgba(28, 25, 23, 0.25);
}
.prayer-card.praise {
  --tint: rgba(212, 165, 116, 0.26);
}
.prayer-card.private {
  --tint: rgba(155, 123, 174, 0.28);
}
.card-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--stone-900);
}
.card-sky img {
  position: absolute;
  left: -5%;
  top: 0;
  width: 110%;
  height: 90%;
  object-fit: cover;
  object-position: 50% 0;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 62%);
  mask-image: linear-gradient(180deg, #000 40%, transparent 62%);
}
.card-sky::before,
.card-sky::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card-sky::before {
  z-index: 1;
  background: var(--tint);
}
.card-sky::after {
  z-index: 3;
  background:
    linear-gradient(
      90deg,
      rgba(28, 25, 23, 0.82),
      rgba(28, 25, 23, 0.62) 34%,
      rgba(28, 25, 23, 0.28) 70%,
      rgba(28, 25, 23, 0.02)
    ),
    linear-gradient(
      180deg,
      rgba(28, 25, 23, 0.55),
      rgba(28, 25, 23, 0.1) 30%,
      rgba(28, 25, 23, 0.75) 60%,
      var(--stone-900) 78%
    );
}
.pin {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(212, 165, 116, 0.22);
  box-shadow: 0 0 8px rgba(212, 165, 116, 0.9);
  animation: pin-breathe 2.8s ease-in-out infinite alternate;
}
.pin svg {
  width: 12px;
  height: 12px;
}
@keyframes pin-breathe {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}
.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px 0 12px;
}
.avatar.big {
  width: 84px;
  height: 84px;
  font-size: 30px;
  border: 2.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.card-top-text {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
}
.kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.kicker.gold {
  color: var(--gold);
}
.card-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}
.card-time {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.8);
}
.card-top .chevron {
  width: 18px;
  height: 18px;
  flex: none;
  color: rgba(255, 255, 255, 0.8);
}
.prayer-card .chip {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.prayer-card .chip.gold {
  background: var(--gold);
  color: var(--stone-900);
}
.prayer-card .chip.latest {
  background: #c2664a;
}
.prayer-card .chip.private {
  background: rgba(155, 123, 174, 0.5);
}
.card-bottom {
  display: grid;
  gap: 12px;
  padding: 12px 16px 22px;
}
.headline {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #fff;
  padding-right: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.headline.quiet {
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
}
.asked {
  margin-top: -4px;
  font-size: 12.5px;
  line-height: 17px;
  color: rgba(255, 255, 255, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.asked b {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}
/* The request in their own voice, on the card. Above the card's link. */
.card-voice {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 8px;
  margin: 2px 0 4px;
}
.card-voice .audio-row {
  display: grid;
}
.card-voice .player {
  max-width: none;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 165, 116, 0.35);
}
.card-voice .player button.play {
  width: 36px;
  height: 36px;
  min-height: 36px;
}
.card-voice .player button.play svg {
  width: 15px;
  height: 15px;
}
.card-voice .player time {
  font-size: 12px;
}
.card-stats {
  display: grid;
  gap: 6px;
}
.card-category {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.card-place {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}
.card-audio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}
.waveform {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  flex: none;
}
.waveform i {
  display: block;
  width: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.35);
}
.waveform.lit i {
  background: var(--gold);
}
.prayer-card .pray {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--pray-green);
  color: var(--stone-950);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
  transition: filter 0.15s ease;
}
.prayer-card .pray::after {
  content: "";
  position: absolute;
  inset: 0;
}
.prayer-card .pray.manage {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}
.prayer-card:hover .pray {
  filter: brightness(1.08);
}
.prayer-card:has(.pray:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.prayer-card .pray:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.card-kind {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--stone-300);
  letter-spacing: 0.1px;
}
.words {
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.1px;
  color: var(--stone-50);
  white-space: pre-wrap;
}
.words.private {
  color: var(--stone-300);
}
.card-meta {
  font-size: 13px;
  color: var(--stone-400);
}

/* The daylight sky behind the Prayers page: the light earth turning at the
   top right, marks rising through the page. The cards are night plates on it. */
.sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #fbf8f1, var(--stone-50) 900px);
}
.sky .globe {
  top: -110px;
  right: -40px;
  box-shadow:
    0 0 0 1px rgba(212, 165, 116, 0.35),
    0 24px 80px rgba(138, 109, 31, 0.14),
    0 0 120px rgba(212, 165, 116, 0.22);
}
/* The sunrise on the limb, as on the app's night earth. */
.sky .globe::after {
  box-shadow:
    inset 0 0 0 1px rgba(212, 165, 116, 0.3),
    inset 26px 22px 60px -30px rgba(212, 165, 116, 0.75);
}
.rising {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--rail);
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.rise {
  position: absolute;
  left: var(--x);
  bottom: -40px;
  width: var(--s);
  height: var(--s);
  color: var(--gold);
  opacity: 0;
  animation: mark-rise var(--d) linear infinite;
  animation-delay: var(--delay);
}
.rise svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 6px rgba(212, 165, 116, 0.55));
}
@keyframes mark-rise {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  10% {
    opacity: 0.55;
  }
  50% {
    transform: translate(var(--sway), -55vh);
  }
  90% {
    opacity: 0.45;
  }
  100% {
    transform: translate(0, -115vh);
    opacity: 0;
  }
}

/* The globe: copies of the earth scrolling inside a circle under a spherical shade. */
.globe {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
  background: var(--stone-950);
}
.globe[data-tone="day"] {
  background: #fffaf0;
}
.globe-scroll {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--map-w) * 4);
  height: var(--map-h);
  transform: translate(var(--phase), var(--ty));
  animation: globe-turn var(--turn) linear infinite;
}
@keyframes globe-turn {
  to {
    transform: translate(calc(var(--phase) + var(--map-w)), var(--ty));
  }
}
.globe-copy {
  position: absolute;
  top: 0;
  width: var(--map-w);
  height: var(--map-h);
}
.globe-copy img {
  display: block;
  width: 100%;
  height: 100%;
}
.globe[data-tone="night"] .globe-copy img {
  opacity: 0.85;
}
.globe-mark {
  position: absolute;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(212, 165, 116, 0.18);
  animation: pin-breathe 3.2s ease-in-out infinite alternate;
}
.globe-mark svg {
  width: 9px;
  height: 9px;
}
.globe::before,
.globe::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 1;
}
.globe[data-tone="night"]::before {
  background:
    radial-gradient(
      circle at 34% 28%,
      rgba(255, 255, 255, 0.16),
      rgba(255, 255, 255, 0.04) 55%,
      transparent 100%
    ),
    radial-gradient(
      circle at 50% 50%,
      transparent 56%,
      rgba(12, 10, 9, 0.04) 58%,
      rgba(12, 10, 9, 0.42) 80%,
      rgba(12, 10, 9, 0.86) 94%,
      var(--stone-950) 100%
    );
}
.globe[data-tone="day"]::before {
  background:
    radial-gradient(
      circle at 34% 28%,
      rgba(255, 255, 255, 0.55),
      rgba(255, 255, 255, 0.12) 55%,
      transparent 100%
    ),
    radial-gradient(
      circle at 50% 50%,
      transparent 58%,
      rgba(231, 229, 228, 0.1) 64%,
      rgba(214, 211, 209, 0.42) 86%,
      rgba(168, 162, 158, 0.55) 100%
    );
}
.globe[data-tone="day"] .globe-mark {
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  color: var(--gold-ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 0 0 1px rgba(212, 165, 116, 0.5),
    0 0 14px rgba(212, 165, 116, 0.7);
}
.globe[data-tone="day"] .globe-mark svg {
  width: 13px;
  height: 13px;
  stroke-width: 1.8;
}
.globe::after {
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(212, 165, 116, 0.55);
}
.globe[data-tone="day"]::after {
  box-shadow: inset 0 0 0 1px rgba(212, 165, 116, 0.3);
}
.skeleton {
  min-height: 404px;
  border-radius: 22px;
  border-color: var(--stone-200);
  background: var(--stone-100);
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 70%
  );
  animation: shimmer 1.6s linear infinite;
}
.skeleton i {
  display: block;
  height: 14px;
  border-radius: 7px;
  background: var(--stone-200);
  margin: 0 0 12px;
}
@keyframes shimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

/* The prayer stage: request and recorder on one earth-lit surface */
.stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--stone-50);
  background: var(--stone-950);
  border: 1px solid var(--gold-line);
  border-radius: 28px;
}
.stage-earth {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
/* The earth rising through the lower stage: its limb is a horizon under the
   words, with the sunrise glow the app's night earth carries. */
.stage-earth .globe {
  top: 56%;
  left: 50%;
  margin-left: calc(var(--size) / -2);
  box-shadow: 0 -24px 90px rgba(212, 165, 116, 0.26);
}
.stage-earth .globe::after {
  box-shadow:
    inset 0 0 0 1px rgba(212, 165, 116, 0.35),
    inset 0 44px 100px -50px rgba(212, 165, 116, 0.6);
}
.stage-earth::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    60% 60% at 70% 20%,
    rgba(212, 165, 116, 0.12),
    transparent 70%
  );
}
.stage-earth::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 10, 9, 0.45),
    rgba(12, 10, 9, 0.2) 40%,
    rgba(12, 10, 9, 0.62)
  );
}
.light {
  position: absolute;
  left: var(--x);
  bottom: -20px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--gold-pale);
  box-shadow:
    0 0 10px rgba(212, 165, 116, 0.7),
    0 0 26px rgba(212, 165, 116, 0.35);
  opacity: 0;
  animation: light-rise var(--duration) linear infinite;
  animation-delay: var(--delay);
}
@keyframes light-rise {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  12% {
    opacity: 0.55;
  }
  50% {
    transform: translate(var(--sway), -50%);
  }
  88% {
    opacity: 0.5;
  }
  100% {
    transform: translate(0, -110%);
    opacity: 0;
  }
}
html[data-hidden] .light,
html[data-hidden] .globe-scroll,
html[data-hidden] .globe-mark,
html[data-hidden] .pin,
html[data-hidden] .rise,
html[data-hidden] .skeleton::after,
html[data-hidden] .rec-dot {
  animation-play-state: paused;
}
.stage-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 32px;
  padding: 32px;
}
.stage-request {
  display: grid;
  gap: 18px;
  align-content: start;
  max-width: 620px;
}
.stage-request .words {
  font-size: clamp(21px, 1.9vw, 25px);
  line-height: 1.42;
}
.stage-side {
  display: grid;
  gap: 16px;
  align-content: start;
}
.glass {
  padding: 24px;
  border-radius: var(--radius-plate);
  background: rgba(28, 25, 23, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: grid;
  gap: 14px;
}
.glass h2 {
  color: var(--stone-50);
}
.glass p {
  color: var(--stone-300);
  font-size: 15px;
}
.stage .audio-row {
  display: grid;
  gap: 6px;
}
.audio-row .label {
  font-size: 13px;
  color: var(--stone-300);
}

/* Recorder: idle, asking, recording, review, sending, sent. State is in words
   and the clock; the ember dot only joins while sound is being captured. */
.rec {
  display: grid;
  gap: 14px;
}
.rec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
}
.rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 0 rgba(242, 160, 139, 0.6);
  animation: breathe 1.6s ease-out infinite;
  flex: none;
}
@keyframes breathe {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 160, 139, 0.55);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(242, 160, 139, 0);
  }
}
.rec-status {
  flex: 1;
  min-width: 0;
  color: var(--stone-200);
  font-size: 15px;
}
.rec[data-state="recording"] .rec-status {
  color: var(--ember);
  font-weight: 600;
}
.rec-clock {
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 300;
  color: var(--stone-50);
  letter-spacing: 0.5px;
  min-width: 56px;
  text-align: right;
}
.rec-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.rec button.stop {
  background: transparent;
  border-color: var(--ember);
  color: var(--ember);
}
.rec button.stop svg {
  fill: currentColor;
  stroke: none;
}
.rec button.record svg {
  fill: none;
}
.send-row {
  display: grid;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--glass-line);
}
.send-row p {
  font-size: 13px;
  color: var(--stone-400);
}
.glass.sent {
  border-color: rgba(157, 184, 154, 0.45);
  background: rgba(28, 25, 23, 0.86);
}
.sent h3 {
  color: var(--sage);
  font-size: 20px;
}
.sent p {
  color: var(--stone-200);
  font-size: 15px;
}
.sent .actions .button.quiet {
  color: var(--gold-pale);
}

/* Player: the native element is the engine; the controls are ours so they are
   legible on the night and usable from the keyboard. */
.player {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
  max-width: 560px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
}
.panel .player {
  border-color: var(--stone-300);
  background: var(--stone-100);
}
.player button.play {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  flex: none;
  border-radius: 50%;
  background: var(--gold);
  color: var(--stone-950);
}
.player button.play svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}
.player input[type="range"] {
  flex: 1;
  min-width: 60px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--gold);
  cursor: pointer;
}
.player time {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--stone-300);
  flex: none;
}
.panel .player time {
  color: var(--stone-600);
}
.player[data-state="error"] {
  border-color: rgba(242, 160, 139, 0.5);
}
.player .player-error {
  font-size: 13px;
  color: var(--ember);
  flex: 1;
}
.panel .player .player-error {
  color: #9a3f2a;
}

/* Forms */
label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  margin: 12px 0 16px;
}
.field {
  margin: 12px 0 16px;
}
.field label {
  margin: 0;
}
.hint {
  margin-top: 6px;
  color: var(--stone-500);
  font-size: 13px;
  line-height: 1.5;
}
.night .hint {
  color: var(--stone-400);
}
.plate > .conversation:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  background: #fff;
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-field);
  color: var(--ink);
  padding: 11px 14px;
}
textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.55;
}
.night input,
.night select,
.night textarea {
  background: rgba(12, 10, 9, 0.6);
  border-color: var(--glass-line);
  color: var(--stone-50);
}
label.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 400;
  font-size: 15px;
  margin: 10px 0;
}
label.check input {
  width: 22px;
  min-height: 22px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--gold-ink);
}
.night label.check input {
  accent-color: var(--gold);
}
.form-foot {
  display: flex;
  gap: 12px 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.success {
  color: #2f5a2f;
  background: rgba(157, 184, 154, 0.18);
  border: 1px solid rgba(157, 184, 154, 0.5);
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 15px;
}
.success:empty {
  display: none;
}
details.panel summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Welcome: night, as in the app. The earth rises under the promise on the
   left; the forms sit in glass on the right. Sign in and Create an account
   are one segmented control so the two can never be confused. */
.auth {
  margin: 4px 0 0;
  min-height: calc(100vh - 140px);
  display: grid;
}
.auth .stage-earth .globe {
  top: 48%;
  left: 38%;
}
.auth-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 460px);
  gap: 40px;
  align-items: center;
  padding: clamp(28px, 4vw, 56px);
}
.auth-hero {
  display: grid;
  gap: 18px;
  max-width: 560px;
}
.auth-hero .brand {
  padding: 0;
  color: var(--stone-50);
}
.auth-hero .brand b {
  color: var(--stone-50);
}
.auth-hero .eyebrow {
  color: var(--gold);
  margin-top: 8px;
}
.auth-hero h1 {
  font: 300 clamp(38px, 4.4vw, 60px) / 1.05 var(--font-light);
  letter-spacing: -1px;
  color: var(--stone-50);
}
.auth-lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--stone-300);
  max-width: 480px;
}
.auth-promises {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.auth-promises li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 15px;
  color: var(--stone-200);
}
.auth-promises .glyph {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--gold);
}
.auth-card {
  gap: 18px;
  padding: 28px;
  background: rgba(28, 25, 23, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.auth-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 999px;
  background: rgba(12, 10, 9, 0.6);
  border: 1px solid var(--glass-line);
}
.auth-modes button {
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--stone-300);
  border: 0;
  font-weight: 600;
}
.auth-modes button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--stone-900);
}
.auth-modes button:not([aria-pressed="true"]):hover {
  color: var(--stone-50);
}
.auth form {
  display: grid;
  gap: 12px;
  margin: 0;
}
.auth form label {
  margin: 0;
  color: var(--stone-200);
}
.auth form .field {
  margin: 0;
  display: grid;
  gap: 6px;
}
.auth form .hint {
  margin: 0;
  font-weight: 400;
  color: var(--stone-400);
}
.setup-form .field {
  margin: 0;
  display: grid;
  gap: 6px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.auth form .actions {
  margin-top: 2px;
}
.auth button.wide {
  width: 100%;
  min-height: 48px;
  background: var(--gold);
  color: var(--stone-900);
  font-size: 16px;
}
.auth button.wide:not(:disabled):hover {
  filter: brightness(1.06);
}
.auth input#code {
  font-size: 24px;
  letter-spacing: 6px;
  font-variant-numeric: tabular-nums;
}
.auth input:-webkit-autofill {
  -webkit-text-fill-color: var(--stone-50);
  box-shadow: 0 0 0 1000px rgba(12, 10, 9, 0.9) inset;
}
#codeIntro {
  font-size: 15px;
  color: var(--stone-300);
}
#signupMessage:empty {
  display: none;
}
#signupMessage {
  color: var(--gold-pale);
  font-size: 14px;
  line-height: 1.5;
}
.auth .consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.45;
}
.auth .consent input {
  width: 20px;
  min-height: 20px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--gold);
}
.auth .consent a,
.auth-foot a {
  color: var(--gold);
}
.auth-card:has(#signupForm:not([hidden])) .auth-foot {
  display: none;
}
.auth-foot {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--stone-400);
}
.auth .link {
  background: none;
  color: var(--gold);
  padding: 0 4px;
  min-height: 0;
}
/* Signed out, the rail holds only the brand and the stores. */
body:has(#signIn:not([hidden])) .sidebar nav,
body:has(#signIn:not([hidden])) .sidebar-foot a[data-view] {
  display: none;
}

/* Lists: my prayers, praise, messages */
.stack {
  display: grid;
  gap: 16px;
  max-width: 880px;
}
.row-card {
  display: grid;
  gap: 12px;
}
.row-card .head {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.row-card .head .muted {
  margin-left: auto;
}
.conversation {
  display: grid;
  gap: 14px;
  padding-top: 20px;
  margin-top: 6px;
  border-top: 1px solid var(--glass-line);
}
.conversation h3 {
  color: var(--stone-50);
}
.messages {
  display: grid;
  gap: 10px;
}
.message {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 4px 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.message .avatar {
  width: 32px;
  height: 32px;
  font-size: 13px;
  grid-row: span 2;
  border-width: 1px;
}
.message strong {
  font-size: 14px;
  color: var(--gold-pale);
  font-weight: 600;
}
.message p {
  white-space: pre-wrap;
  color: var(--stone-100);
  font-size: 15px;
}
.message small {
  color: var(--stone-400);
  font-size: 12px;
  grid-column: 2;
}
.composer {
  display: grid;
  gap: 8px;
}
.composer label {
  margin: 0;
  color: var(--stone-200);
}
.composer textarea {
  min-height: 92px;
}
.composer .actions {
  justify-content: space-between;
}

/* Groups: the people glyph names a group, the ringed mark names a gathering.
   Gold only when something waits on the member. */
.group {
  display: grid;
  gap: 14px;
  max-width: 880px;
}
.group-head {
  display: flex;
  gap: 10px 14px;
  align-items: center;
  flex-wrap: wrap;
}
.group-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.group-head .eyebrow svg {
  width: 18px;
  height: 18px;
}
.group h2 {
  color: var(--stone-50);
  font-size: 24px;
}
.members {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.members li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  font-size: 14px;
  color: var(--stone-100);
}
.members .avatar {
  width: 28px;
  height: 28px;
  font-size: 12px;
  border-width: 1px;
}
.meeting {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--stone-200);
}
.meeting svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.group .actions {
  padding-top: 4px;
}

/* Responsive. Three frames: full sidebar, a labelled rail, and a top bar.
   Nothing depends on hover; nothing key moves below the fold. */
@media (max-width: 1180px) {
  .stage-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  .stage-request {
    max-width: none;
  }
}
@media (max-width: 1100px) {
  :root {
    --rail: 96px;
  }
  .shell {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .sidebar {
    padding: 20px 10px 16px;
    gap: 20px;
    align-items: stretch;
  }
  .brand {
    flex-direction: column;
    gap: 4px;
    padding: 4px;
    margin: 0 auto;
  }
  .brand b {
    font-size: 20px;
  }
  .brand-line {
    display: none;
  }
  nav a {
    flex-direction: column;
    gap: 4px;
    padding: 8px 4px;
    font-size: 11px;
    text-align: center;
    line-height: 1.2;
  }
  .mobile-invitation p,
  .mobile-invitation span,
  .sidebar .store-links img {
    display: none;
  }
  .mobile-invitation {
    padding: 12px 0 0;
  }
  .sidebar .store-links {
    flex-direction: column;
    gap: 4px;
    margin: 0;
  }
  .sidebar .store-links a {
    justify-content: center;
    font-size: 11px;
    text-decoration: none;
    color: var(--stone-600);
    border-radius: 12px;
  }
  .sidebar .store-links a::after {
    content: attr(data-short);
  }
  .sidebar .store-links a:hover {
    background: var(--stone-200);
  }
  .sidebar-foot {
    padding: 0;
    font-size: 11px;
    text-align: center;
  }
  .sidebar-foot p {
    display: none;
  }
  .sidebar-foot .row {
    flex-direction: column;
    gap: 4px;
  }
  .sidebar-foot button.quiet {
    padding: 6px 10px;
    font-size: 11px;
    white-space: nowrap;
  }
  main {
    padding: 16px 24px 64px;
  }
}
/* Also the top-bar frame for short, zoomed windows where a rail cannot show every door. */
@media (max-width: 700px), (max-width: 1100px) and (max-height: 640px) {
  :root {
    --rail: 0px;
  }
  .sky .globe {
    top: -330px;
    right: -200px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    height: auto;
    overflow: visible;
    padding: 10px 16px 0;
    gap: 0;
    border-right: 0;
    border-bottom: 1px solid var(--paper-line);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .brand {
    flex-direction: row;
    margin: 0;
    padding: 4px 0;
  }
  .brand b {
    font-size: 22px;
  }
  nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 4px -16px 0;
    padding: 0 16px 8px;
  }
  nav::-webkit-scrollbar {
    display: none;
  }
  nav {
    -webkit-mask-image: linear-gradient(
      90deg,
      #000 calc(100% - 40px),
      transparent
    );
    mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  }
  nav a {
    flex-direction: row;
    gap: 8px;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 14px;
  }
  nav a svg {
    width: 18px;
    height: 18px;
  }
  .mobile-invitation {
    display: none;
  }
  .sidebar-foot {
    grid-row: 1;
    grid-column: 2;
    padding: 0;
  }
  .sidebar-foot .row {
    flex-direction: row;
    gap: 8px;
  }
  .sidebar-foot p {
    display: none;
  }
  .sidebar-foot a[href="/support"] {
    display: none;
  }
  main {
    padding: 14px 16px 48px;
  }
  .panel,
  .plate,
  .glass {
    padding: 18px;
  }
  .sky .globe {
    top: -140px;
    right: -180px;
  }
  .stage-grid {
    padding: 18px;
    gap: 18px;
  }
  .stage {
    border-radius: 22px;
  }
  .auth {
    min-height: 0;
  }
  .auth-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 18px 28px;
  }
  .auth .stage-earth .globe {
    top: 72%;
    left: 50%;
  }
  .auth-card {
    padding: 20px;
  }
  .auth-modes button {
    font-size: 14px;
    padding: 8px 10px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .filters {
    gap: 8px;
  }
  .filters select {
    flex: 1 1 150px;
    min-width: 0;
    padding: 8px 34px 8px 14px;
    font-size: 15px;
  }
  .rec-actions > button,
  .send-row > button {
    flex: 1 1 auto;
  }
  .footer-invitation {
    display: grid;
    gap: 6px;
    margin: 40px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--paper-line);
    font-size: 14px;
  }
  .footer-invitation span {
    color: var(--stone-500);
    font-size: 13px;
  }
}
.footer-invitation {
  display: none;
}
/* Also the top-bar frame for short, zoomed windows where a rail cannot show every door. */
@media (max-width: 700px), (max-width: 1100px) and (max-height: 640px) {
  .footer-invitation {
    display: grid;
  }
  .ticker-slot,
  .ticker {
    min-height: 48px;
  }
  .tick-line {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tick {
    transition: none;
  }
  .light,
  .globe-scroll,
  .globe-mark,
  .pin,
  .rise,
  .skeleton::after,
  .rec-dot {
    animation: none;
  }
  .globe-mark,
  .pin {
    opacity: 0.6;
  }
  .rise {
    opacity: 0.3;
    bottom: auto;
    top: calc(20% + var(--sway) * 2);
  }
  .light {
    opacity: 0.35;
    bottom: auto;
    top: calc(25% + var(--sway));
  }
  * {
    scroll-behavior: auto !important;
  }
}

/* Setup: daylight, no box. The app's thin gold track across the top, the
   question in the display face, one column of answers as cards. */
.setup {
  position: relative;
  max-width: 680px;
  margin: 24px 0 64px;
  display: grid;
  gap: 14px;
}
.setup-track {
  position: absolute;
  left: 0;
  right: 0;
  top: -32px;
  width: 100%;
  height: 3px;
  appearance: none;
  border: 0;
  border-radius: 2px;
  background: rgba(120, 113, 108, 0.22);
  overflow: hidden;
}
.setup-track::-webkit-progress-bar {
  background: transparent;
}
.setup-track::-webkit-progress-value {
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.setup-track::-moz-progress-bar {
  background: var(--gold);
  border-radius: 2px;
}
.setup h1 {
  font: 300 clamp(34px, 4vw, 50px) / 1.08 var(--font-light);
  letter-spacing: -0.8px;
  margin-top: 6px;
  outline: none;
}
.setup-lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 560px;
}
.setup-form {
  display: grid;
  gap: 18px;
  margin-top: 14px;
}
.setup-form label {
  margin: 0;
  gap: 8px;
}
.setup-form label .hint {
  font-weight: 400;
  margin-top: 2px;
}
.setup-form select,
.setup-form input:not([type="radio"]):not([type="file"]) {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  font-size: 16px;
}
.setup .actions {
  margin-top: 6px;
  gap: 12px;
}
.setup .actions button[type="submit"] {
  min-height: 50px;
  padding: 12px 28px;
  font-size: 16px;
}
.form-error {
  color: #9d3027;
  font-size: 15px;
}
.form-error:empty {
  display: none;
}
/* Answer cards */
.choice-group {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  display: grid;
  gap: 10px;
}
.choice-group legend {
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  margin-bottom: 2px;
}
.choices {
  display: grid;
  gap: 10px;
}
.choice-group.compact .choices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  min-height: 56px;
  font-size: 16px;
  font-weight: 500;
  color: var(--stone-600);
  background: #fff;
  border: 2px solid transparent;
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(28, 25, 23, 0.06);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.choice:hover {
  border-color: var(--stone-300);
}
.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice-mark {
  width: 24px;
  height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--stone-400);
}
.choice-mark .glyph {
  width: 20px;
  height: 20px;
}
.choice span {
  flex: 1;
  min-width: 0;
}
.choice-tick {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--stone-900);
  color: var(--gold-pale);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}
.choice-tick .glyph {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}
.choice:has(input:checked) {
  border-color: var(--stone-900);
  background: #fff;
  color: var(--stone-900);
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.1);
}
.choice:has(input:checked) .choice-mark {
  color: var(--gold-ink);
}
.choice:has(input:checked) .choice-tick {
  opacity: 1;
  transform: scale(1);
}
.choice-group.compact .choice-tick {
  display: none;
}
.choice-group.compact .choice:has(input:checked) {
  background: var(--stone-900);
  color: var(--stone-50);
}
.choice:has(input:focus-visible) {
  outline: 2px solid var(--focus-day);
  outline-offset: 2px;
}
.choice-group.compact .choice {
  justify-content: center;
  padding: 12px;
}
.choice-group.compact .choice-mark {
  display: none;
}
/* Location */
.location-picker {
  display: grid;
  gap: 12px;
}
.location-picker .search-field {
  margin: 0;
}
.location-picker .quiet {
  justify-self: start;
}
.location-picker .quiet .glyph {
  width: 18px;
  height: 18px;
}
.place-results {
  display: grid;
  gap: 8px;
}
.place-results:empty {
  display: none;
}
.place-results small {
  color: var(--stone-500);
  font-size: 12px;
  padding-left: 4px;
}
.place-option {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  white-space: normal;
  min-height: 48px;
  padding: 10px 14px;
  background: #fff;
  color: var(--stone-800);
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  font-weight: 500;
}
.place-option .glyph {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--gold-ink);
}
.place-option:not(:disabled):hover {
  border-color: var(--gold);
  background: #fff;
}
.selected-place {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
}
.selected-place:empty {
  display: none;
}
.selected-place .glyph {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--gold-ink);
}
.selected-place small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-ink);
  border: 1px solid var(--gold-line);
  background: rgba(212, 165, 116, 0.14);
  border-radius: 999px;
  padding: 3px 9px;
}
.night .place-option {
  background: rgba(12, 10, 9, 0.5);
  color: var(--stone-100);
  border-color: var(--glass-line);
}
.night .place-option .glyph,
.night .selected-place .glyph,
.night .selected-place small {
  color: var(--gold);
}
/* Photo */
.photo-preview {
  display: grid;
  justify-items: start;
}
.avatar.face {
  width: 128px;
  height: 128px;
  font-size: 46px;
  border-width: 3px;
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.14);
}
.photo-field {
  position: relative;
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--stone-900);
  color: var(--stone-50);
  font-weight: 600;
  cursor: pointer;
}
.photo-field input {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 0;
  opacity: 0;
  cursor: pointer;
}
.photo-field:has(input:focus-visible) {
  outline: 2px solid var(--focus-day);
  outline-offset: 3px;
}
/* The app, in hand */
.app-handoff {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 26px 28px;
  border-radius: var(--radius-plate);
  background:
    radial-gradient(
      110% 70% at 100% 0%,
      rgba(212, 165, 116, 0.14),
      transparent 60%
    ),
    var(--stone-900);
  border: 1px solid var(--gold-line);
  color: var(--stone-50);
  margin-top: 8px;
}
.app-handoff-words {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.app-handoff-words h2 {
  font-size: 21px;
  color: var(--stone-50);
}
.app-handoff-words p:not(.eyebrow) {
  color: var(--stone-300);
  font-size: 15px;
}
.app-handoff-words .button {
  margin-top: 4px;
}
.app-handoff-qr {
  width: 112px;
  height: 112px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
}
/* Account: who they are in night, like their card; the rest on paper. */
.account-hero,
.account-billing,
.account-profile,
.account-moments,
.app-handoff.account-handoff {
  max-width: 820px;
}
.account-hero {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-plate);
  background:
    radial-gradient(
      110% 70% at 100% 0%,
      rgba(212, 165, 116, 0.16),
      transparent 60%
    ),
    var(--stone-900);
  border: 1px solid var(--gold-line);
  color: var(--stone-50);
  margin-bottom: 16px;
}
.account-identity {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.account-identity h1 {
  font: 300 clamp(30px, 3.2vw, 42px) / 1.1 var(--font-light);
  letter-spacing: -0.6px;
  color: var(--stone-50);
}
.account-identity .card-place {
  color: var(--stone-200);
}
.account-email {
  font-size: 14px;
  color: var(--stone-400);
}
.paper {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-plate);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--gold-line);
  backdrop-filter: blur(8px);
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
.paper h2 {
  font-size: 24px;
}
.account-status {
  font-size: 16px;
  color: var(--stone-800);
}
.account-billing .actions,
.account-profile .actions {
  margin-top: 2px;
}
.onboarding-active .sidebar nav {
  display: none;
}
[hidden] {
  display: none !important;
}

/* Phone widths for setup and account, after their base rules. */
@media (max-width: 700px), (max-width: 1100px) and (max-height: 640px) {
  .setup {
    margin-top: 8px;
  }
  .setup-track {
    position: static;
    margin-bottom: 6px;
  }
  .setup h1 {
    font-size: 32px;
  }
  .choice-group.compact .choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-handoff {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }
  .paper,
  .account-hero {
    padding: 22px 20px;
  }
  .account-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* The pulse: a prayer rose. Quiet: the ticker is taken over, the mark lifts
   in the face disc and breathes once in gold. Immersive: the night rises
   over the screen and the mark blooms at the centre. Each carries its own
   two controls, so peace is one click away. */
.pulse-stage {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 40;
  width: min(380px, calc(100vw - 32px));
}
.pulse-tick {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pulse-tick.in {
  opacity: 1;
  transform: translateY(0);
}
.pulse-tick.out {
  opacity: 0;
  transform: translateY(-16px);
  transition:
    opacity 0.7s ease,
    transform 0.8s ease;
}
/* Over the ticker: the ticker's own line dims and this one sits on it. */
.pulse-tick.in-ticker {
  position: absolute;
  inset: 0 auto auto 0;
  max-width: 100%;
  z-index: 2;
}
.ticker:has(.pulse-tick.in) > .tick {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.pulse-stage .pulse-tick {
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  color: var(--stone-50);
  background: rgba(12, 10, 9, 0.86);
  border: 1px solid rgba(212, 165, 116, 0.35);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}
.pulse-disc {
  position: relative;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-ink);
  background: rgba(212, 165, 116, 0.16);
  border: 1.5px solid rgba(212, 165, 116, 0.6);
  box-shadow: 0 0 22px rgba(212, 165, 116, 0.35);
}
.pulse-stage .pulse-disc {
  color: var(--gold);
}
.pulse-disc > .glyph {
  width: 22px;
  height: 22px;
  stroke-width: 1.4;
  filter: drop-shadow(0 0 5px rgba(212, 165, 116, 0.7));
  transform: translateY(10px);
  opacity: 0;
}
.in .pulse-disc > .glyph {
  animation: pulse-lift 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s forwards;
}
@keyframes pulse-lift {
  0% {
    transform: translateY(10px);
    opacity: 0;
  }
  60% {
    transform: translateY(-2px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.pulse-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(212, 165, 116, 0.55),
    rgba(212, 165, 116, 0) 70%
  );
  opacity: 0;
  pointer-events: none;
}
.in .pulse-halo {
  animation: pulse-breathe 2.6s ease-out 0.25s 2;
}
@keyframes pulse-breathe {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  25% {
    opacity: 0.9;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}
.pulse-spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  color: var(--gold-ink);
  opacity: 0;
  pointer-events: none;
}
.pulse-stage .pulse-spark,
.pulse-veil .pulse-spark {
  color: var(--gold-pale);
}
.pulse-spark .glyph {
  width: 10px;
  height: 10px;
  stroke-width: 1.6;
}
.in .pulse-spark {
  animation: pulse-spark 2.2s ease-out var(--delay) 1 forwards;
}
@keyframes pulse-spark {
  0% {
    transform: translate(0, 0) scale(0.6);
    opacity: 0;
  }
  20% {
    opacity: 0.9;
  }
  100% {
    transform: translate(var(--x), -46px) scale(1);
    opacity: 0;
  }
}
.pulse-words {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.pulse-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.pulse-stage .pulse-kicker,
.pulse-veil .pulse-kicker {
  color: var(--gold);
}
.pulse-line {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--stone-900);
}
.pulse-stage .pulse-line {
  color: var(--stone-50);
}
.pulse-sub {
  font-size: 13px;
  color: var(--stone-600);
}
.pulse-stage .pulse-sub,
.pulse-veil .pulse-sub {
  color: var(--stone-300);
}
.pulse-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-size: 12px;
  color: var(--stone-500);
  margin-left: 6px;
}
.pulse-controls button {
  background: none;
  border: 0;
  padding: 2px 2px;
  min-height: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--stone-500);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.pulse-controls button:hover {
  color: var(--stone-900);
}
.pulse-stage .pulse-controls button {
  color: var(--stone-400);
}
.pulse-stage .pulse-controls button:hover {
  color: var(--stone-50);
}
.dot-sep {
  opacity: 0.6;
}
/* Immersive */
.pulse-veil {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  color: var(--stone-50);
  background:
    radial-gradient(
      60% 50% at 50% 60%,
      rgba(212, 165, 116, 0.18),
      transparent 70%
    ),
    rgba(12, 10, 9, 0.97);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(6%);
  transition:
    opacity 1.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 1.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: default;
}
.pulse-incense {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2.4s ease 0.3s;
}
.pulse-veil.in .pulse-incense {
  opacity: 0.85;
}
.pulse-incense.front {
  opacity: 0;
  transition: opacity 3s ease 1s;
  -webkit-mask-image: radial-gradient(
    38% 50% at 50% 46%,
    #000 30%,
    transparent 100%
  );
  mask-image: radial-gradient(38% 50% at 50% 46%, #000 30%, transparent 100%);
}
.pulse-veil.in .pulse-incense.front {
  opacity: 0.55;
}
.pulse-veil.in {
  opacity: 1;
  transform: translateY(0);
}
.pulse-veil.out {
  opacity: 0;
  transform: translateY(-4%);
  transition:
    opacity 1.4s ease,
    transform 1.5s ease;
}
.pulse-earth {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.pulse-earth .globe {
  top: 72%;
  left: 50%;
  margin-left: calc(var(--size) / -2);
  box-shadow: 0 -30px 120px rgba(212, 165, 116, 0.3);
}
.pulse-earth .globe::after {
  box-shadow:
    inset 0 0 0 1px rgba(212, 165, 116, 0.4),
    inset 0 50px 120px -50px rgba(212, 165, 116, 0.65);
}
.pulse-earth::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 10, 9, 0.2),
    rgba(12, 10, 9, 0) 55%,
    rgba(12, 10, 9, 0.5)
  );
}
.pulse-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.pulse-rise {
  position: absolute;
  left: var(--x);
  bottom: -40px;
  width: var(--s);
  height: var(--s);
  color: var(--gold);
  opacity: 0;
}
.pulse-rise .glyph {
  width: 100%;
  height: 100%;
  stroke-width: 1.2;
  filter: drop-shadow(0 0 6px rgba(212, 165, 116, 0.6));
}
.pulse-veil.in .pulse-rise {
  animation: veil-rise var(--d) ease-out var(--delay) infinite;
}
@keyframes veil-rise {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  15% {
    opacity: 0.75;
  }
  50% {
    transform: translate(var(--sway), -55vh);
  }
  100% {
    transform: translate(0, -112vh);
    opacity: 0;
  }
}
.pulse-centre {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  max-width: 720px;
  padding: 0 24px;
}
.pulse-big {
  position: relative;
  width: 132px;
  height: 132px;
  margin-bottom: 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(212, 165, 116, 0.1);
  border: 1px solid rgba(212, 165, 116, 0.45);
  box-shadow:
    0 0 60px rgba(212, 165, 116, 0.35),
    0 0 140px rgba(212, 165, 116, 0.18);
}
.pulse-big > .glyph {
  width: 72px;
  height: 72px;
  stroke-width: 1;
  filter: drop-shadow(0 0 14px rgba(212, 165, 116, 0.9)) blur(8px);
  transform: translateY(28px) scale(1.15);
  opacity: 0;
}
/* The mark comes together out of the smoke: soft and large, then sharp. */
.pulse-veil.in .pulse-big > .glyph {
  animation: pulse-lift-big 2.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards;
}
@keyframes pulse-lift-big {
  0% {
    transform: translateY(28px) scale(1.15);
    filter: drop-shadow(0 0 14px rgba(212, 165, 116, 0.9)) blur(8px);
    opacity: 0;
  }
  55% {
    transform: translateY(-4px) scale(1.02);
    filter: drop-shadow(0 0 18px rgba(212, 165, 116, 1)) blur(1px);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 14px rgba(212, 165, 116, 0.9)) blur(0);
    opacity: 1;
  }
}
.pulse-halo.big {
  width: 160px;
  height: 160px;
  margin: -80px 0 0 -80px;
}
.pulse-veil.in .pulse-halo.big {
  animation: pulse-breathe 3.6s ease-out 0.8s 2;
}
.pulse-title {
  font: 300 clamp(30px, 4vw, 52px) / 1.1 var(--font-light);
  letter-spacing: -0.8px;
  color: var(--stone-50);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 1.4s ease 1.5s,
    transform 1.6s ease 1.5s;
}
.pulse-veil.in .pulse-title {
  opacity: 1;
  transform: none;
}
.pulse-veil .pulse-sub {
  font-size: 17px;
  opacity: 0;
  transition: opacity 1.2s ease 2.3s;
}
.pulse-veil.in .pulse-sub {
  opacity: 1;
}
.pulse-veil .pulse-controls {
  position: relative;
  z-index: 1;
  margin: 0 0 28px;
  font-size: 13px;
  color: var(--stone-500);
}
.pulse-veil .pulse-controls button {
  font-size: 13px;
  color: var(--stone-400);
  min-height: 44px;
  padding: 0 6px;
}
.pulse-veil .pulse-controls button:hover {
  color: var(--stone-50);
}
@media (max-width: 700px) {
  .pulse-stage {
    top: 12px;
    right: 16px;
    left: 16px;
    width: auto;
  }
  .pulse-tick .pulse-controls {
    display: none;
  }
  .pulse-big {
    width: 104px;
    height: 104px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-tick,
  .pulse-tick.out,
  .pulse-veil,
  .pulse-veil.out,
  .pulse-title {
    transform: none;
    transition: opacity 0.4s ease;
  }
  .in .pulse-halo,
  .in .pulse-spark,
  .pulse-veil.in .pulse-rise,
  .pulse-veil.in .pulse-halo.big {
    animation: none;
  }
  .in .pulse-disc > .glyph,
  .pulse-veil.in .pulse-big > .glyph {
    animation: none;
    transform: none;
    opacity: 1;
  }
  .pulse-veil.in .pulse-rise {
    opacity: 0.35;
    bottom: auto;
    top: calc(10% + var(--sway) * 2);
  }
  .pulse-incense {
    display: none;
  }
}

/* The blessing: when a prayer goes up, every card on the page glows and
   lifts a little, lit from behind, in a wave. Shadow and transform only. */
.prayer-card,
.stage.night {
  transition:
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) var(--bless-delay, 0ms),
    box-shadow 0.9s ease var(--bless-delay, 0ms),
    filter 0.9s ease var(--bless-delay, 0ms);
}
.prayer-card.blessed,
.stage.night.blessed {
  transform: translateY(-10px);
  box-shadow:
    0 0 0 1.5px rgba(212, 165, 116, 0.7),
    0 28px 70px rgba(212, 165, 116, 0.5),
    0 0 90px 18px rgba(212, 165, 116, 0.42),
    0 0 180px 40px rgba(243, 221, 187, 0.35);
  filter: brightness(1.1);
}
/* The first time: a few words on what just happened. */
.pulse-tip {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: min(360px, calc(100vw - 32px));
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 20px;
  color: var(--stone-50);
  background: rgba(12, 10, 9, 0.92);
  border: 1px solid rgba(212, 165, 116, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s ease,
    transform 0.6s ease;
}
.pulse-tip.in {
  opacity: 1;
  transform: none;
}
.pulse-tip p {
  color: var(--stone-300);
}
.pulse-tip-title {
  font-weight: 600;
  color: var(--stone-50) !important;
}
.pulse-tip button {
  justify-self: start;
  background: var(--gold);
  color: var(--stone-900);
  min-height: 38px;
  padding: 6px 16px;
}
@media (prefers-reduced-motion: reduce) {
  .prayer-card.blessed,
  .stage.night.blessed {
    transform: none;
  }
  .pulse-tip {
    transform: none;
  }
}

/* The existing gold disclosure opens the recorded-voice translation controls. */
.voice-translation{margin-top:12px;width:100%;font-size:14px}.voice-translation summary{color:#b8956a;cursor:pointer;padding:12px 16px;border:1px solid #b8956a;border-radius:999px;display:inline-block}.voice-translation-body{padding:16px;margin-top:10px;border:1px solid #b8956a;border-radius:18px;background:#211f1b;color:#faf9f6}.voice-translation-body label{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.voice-translation-body select{min-height:44px;border-radius:12px;padding:8px;background:#211f1b;color:#faf9f6;border:1px solid #b8956a}.voice-translation-body p{line-height:1.5}.voice-translation-transcript{white-space:pre-wrap}.voice-translation-body button{min-height:44px;border-radius:999px;padding:10px 18px}
