/* ShiftedMind — free edition, rebuilt.
   One visual language for every page: twilight plum, warm serif display,
   glass cards, amber only where something is alive. */

:root {
  --ink: #f6f1e7;
  --ink-soft: rgba(246, 241, 231, 0.74);
  /* 0.52 read fine on the plum page but sat at 4.33:1 on the lighter glass
     cards, under the 4.5 the eye needs for small text. 0.60 clears 5.2:1 on
     the lightest card while still reading as quiet second-tier text. */
  --ink-mute: rgba(246, 241, 231, 0.6);
  --amber: #f6d6ac;
  --amber-deep: #f0c07e;
  --plum: #120b26;
  --glass: rgba(38, 30, 56, 0.66);
  --line: rgba(255, 255, 255, 0.13);
  --line-soft: rgba(255, 255, 255, 0.08);
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 1.15rem;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

/* Browsers paint placeholder text in a grey of their own, which sat at about
   3.4:1 on these dark fields — too faint to read and a poor hint of what to
   write. It now uses the same quiet ink as other second-tier text. */
input::placeholder,
textarea::placeholder { color: var(--ink-mute); opacity: 1; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 9.5rem; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  background:
    radial-gradient(135% 80% at 50% -14%, #322449 0%, #1d1435 40%, #120b26 100%) fixed,
    var(--plum);
  -webkit-font-smoothing: antialiased;
}

/* A quiet horizon and a scatter of stars behind every page. */
body::before {
  content: "";
  position: fixed;
  inset: auto 0 0 0;
  height: 26vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 100% at 30% 100%, rgba(240, 170, 120, 0.22), transparent 70%),
    radial-gradient(120% 100% at 75% 100%, rgba(150, 90, 180, 0.28), transparent 65%),
    linear-gradient(to top, rgba(18, 11, 38, 0.9), transparent);
}
body::after {
  content: "";
  position: fixed;
  inset: auto 0 0 0;
  height: 22vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  background:
    radial-gradient(64% 100% at 22% 100%, rgba(22, 13, 42, 0.95) 0%, rgba(22, 13, 42, 0) 72%),
    radial-gradient(78% 100% at 78% 100%, rgba(16, 9, 32, 0.9) 0%, rgba(16, 9, 32, 0) 70%);
}

a { color: inherit; }

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 60rem;
  margin-inline: auto;
  padding: 0 1rem 5rem;
}
.page--wide { max-width: 74rem; }

/* ---------------- header ---------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.7rem 0 0.55rem;
  margin-bottom: 1rem;
  background: linear-gradient(to bottom, rgba(18, 11, 38, 0.95), rgba(18, 11, 38, 0.72) 78%, rgba(18, 11, 38, 0.35));
  backdrop-filter: blur(10px);
}

/* The bar is filled in by script, so until that runs it is empty and barely
   twenty pixels tall — and everything below it jumped down when the brand, nav
   and buttons arrived. Holding the finished height keeps the first paint still. */
.top:empty { min-height: 117px; }
@media (max-width: 374px) { .top:empty { min-height: 157px; } }
@media (min-width: 820px) { .top:empty { min-height: 69px; } }

/* On a phone the destinations get their own row, so every label is legible. */
@media (max-width: 819px) {
  .top .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow: visible;
    padding: 0.15rem 0 0;
    border-top: 1px solid var(--line-soft);
    margin-top: 0.15rem;
  }
  .top .nav a { flex: 1; min-width: 0; font-size: 0.76rem; letter-spacing: 0.06em; padding-inline: 0.1rem; }
  .top .nav a .full { display: none; }
  .top .nav a .short { display: inline; }
  /* The wordmark and the Set up pill sat almost shoulder to shoulder on a
     phone; a little air between them reads as two separate things. */
  .top .brand { margin-inline-end: 0.5rem; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand em { font-style: normal; color: var(--amber); }
.brand svg { width: 1.5rem; height: 1.5rem; flex: none; }

.nav {
  display: flex;
  align-items: flex-end;
  gap: 0.1rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 3.1rem;
  padding: 0.35rem 0.3rem;
  border-radius: 0.7rem;
  text-decoration: none;
  color: var(--ink-mute);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
}
.nav a svg { width: 1.15rem; height: 1.15rem; }
.nav a .short { display: none; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.nav a[aria-current="page"] { color: var(--amber); background: rgba(246, 214, 172, 0.1); }

.who {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.3rem 0.6rem 0.3rem 0.3rem;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  white-space: nowrap;
}
.who:hover { background: rgba(255, 255, 255, 0.09); }
.who .dot {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #f5d9b4, #d8a7e0 70%);
  color: #241a33;
  font-weight: 700;
  font-size: 0.82rem;
  flex: none;
}

/* ---------------- type ---------------- */

.eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  font-size: clamp(1.9rem, 7.2vw, 3.1rem);
}
.display .name { color: var(--amber); }
.sub { margin: 0.6rem 0 0; color: var(--ink-soft); font-size: 0.95rem; max-width: 34rem; }
.small { font-size: 0.8rem; color: var(--ink-mute); }
/* A small link used on its own (not inside a sentence) gets a full 24px of
   height to tap, which is the smallest target touch guidance allows. */
a.small { display: inline-flex; align-items: center; min-height: 24px; }
.muted { color: var(--ink-mute); }

/* ---------------- surfaces ---------------- */

.card {
  position: relative;
  border-radius: var(--radius);
  padding: 1.15rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(226, 222, 208, 0.08), rgba(226, 222, 208, 0.02)),
    linear-gradient(rgba(166, 109, 179, 0.05), transparent 35%, rgba(232, 168, 105, 0.06)),
    var(--glass);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07), 0 20px 44px -26px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
}
.card h2, .card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.18;
}
.card h2 { font-size: 1.22rem; }
.card h3 { font-size: 1.05rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

.grid { display: grid; gap: 0.9rem; }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--hero { grid-template-columns: 1.25fr 1fr; }
}

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.62rem 1.05rem;
  border: 0;
  cursor: pointer;
  background: #f4ecdf;
  color: #1b1226;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: #fff7ea; }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.11); }
.btn--small { padding: 0.42rem 0.8rem; font-size: 0.84rem; }
.btn--block { width: 100%; }
.btn--quiet {
  background: none;
  border: 0;
  color: var(--ink-mute);
  font: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0.3rem;
}
.btn--quiet:hover { color: var(--amber); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ---------------- greeting ---------------- */

.greeting { padding: 0.4rem 0 1.2rem; }
.greeting .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
  margin-top: 0.9rem;
}
.tonight { color: var(--ink-soft); font-size: 0.9rem; }
.tonight b { color: var(--ink); font-weight: 600; }

/* ---------------- tonight's sky ---------------- */

.tonight-card { overflow: hidden; }
.tonight-card::after {
  content: "";
  position: absolute;
  width: 8rem;
  height: 8rem;
  right: -3rem;
  top: -3.5rem;
  border-radius: 999px;
  opacity: 0.55;
  background: radial-gradient(circle at 40% 40%, rgba(140, 132, 255, 0.4), rgba(20, 12, 40, 0.9) 62%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
  z-index: 0;
}
.tonight-card > * { position: relative; z-index: 1; }
.card .eyebrow { letter-spacing: 0.2em; }
.prompt-list { display: grid; gap: 0.5rem; margin-top: 0.9rem; }
.prompt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 0.86rem;
  color: var(--ink);
  padding: 0.6rem 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.prompt:hover { border-color: rgba(246, 214, 172, 0.5); background: rgba(246, 214, 172, 0.08); }
.prompt .spark { color: var(--amber); flex: none; }

/* ---------------- the sky ---------------- */

.sky-wrap { padding: 0; overflow: hidden; }
.sky {
  position: relative;
  min-height: 24rem;
  border-radius: var(--radius);
  touch-action: none;
  background:
    radial-gradient(60% 45% at 22% 18%, rgba(120, 100, 220, 0.22), transparent 70%),
    radial-gradient(50% 40% at 80% 30%, rgba(240, 170, 120, 0.16), transparent 70%),
    linear-gradient(to top, #2a1a3e 0%, #1d1336 45%, #140d2b 100%);
  overflow: hidden;
  isolation: isolate;
}
.sky .hint {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  max-width: calc(100% - 1.5rem);
  background: rgba(16, 10, 32, 0.72);
  border: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: center;
  white-space: normal;
  line-height: 1.5;
  text-wrap: balance;
  /* Sized by its text and centred: without this the box only gets half the
     sky, and the line is what overflows, which a narrow phone clips. */
  width: max-content;
}

.star {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  cursor: grab;
  transform: translate(-50%, -50%);
  touch-action: none;
}
.star:active { cursor: grabbing; }
.star .core {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 10px 2px rgba(255, 246, 220, 0.85);
  transition: transform 0.2s, box-shadow 0.2s;
}
.star .star-note {
  position: absolute;
  top: calc(50% + 1.25rem);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(11.5rem, 54vw);
  padding: 0.32rem 0.6rem;
  border-radius: 0.6rem;
  background: rgba(16, 10, 32, 0.93);
  border: 1px solid rgba(246, 214, 172, 0.38);
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s;
  pointer-events: none;
  z-index: 4;
}
.star-note-moment {
  display: block;
  margin-top: 0.18rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
/* The star you tapped says what it is, in full, underneath it. */
.star[data-focus="true"] .star-note { opacity: 1; visibility: visible; }
/* Near the bottom of the sky the label opens upward instead of being cut off. */
.star[data-note="above"] .star-note { top: auto; bottom: calc(50% + 1.25rem); }
/* Labels near an edge open inward instead of being clipped by the sky. */
.star[data-side="left"] .star-note { transform: translateX(-6%); text-align: left; }
.star[data-side="right"] .star-note { left: auto; right: 50%; transform: translateX(6%); text-align: right; }
.star[aria-pressed="true"] .core {
  transform: scale(1.5);
  background: var(--amber);
  box-shadow: 0 0 18px 6px rgba(246, 214, 172, 0.55);
}

.sky-empty {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 0.3rem;
  text-align: center;
  padding: 2rem;
  color: var(--ink-mute);
  font-size: 0.86rem;
}

/* ---------------- the record (no streak) ---------------- */

.record { margin-top: 0.9rem; }
.record-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.dots { display: flex; gap: 0.28rem; flex-wrap: wrap; margin-top: 0.8rem; }
.dot-day {
  width: 1.1rem;
  height: 1.5rem;
  border-radius: 0.45rem;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
}
.dot-day[data-kept="true"] {
  background: linear-gradient(to top, #f0c07e, #f7dcae);
  border-color: transparent;
}
.days { display: flex; justify-content: space-between; margin-top: 0.35rem; color: var(--ink-mute); font-size: 0.78rem; letter-spacing: 0.08em; }
.record p { margin-top: 0.7rem; font-size: 0.84rem; color: var(--ink-mute); }

/* ---------------- chips / suggestions ---------------- */

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.chip {
  font: inherit;
  font-size: 0.84rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.chip:hover { border-color: rgba(246, 214, 172, 0.5); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: rgba(246, 214, 172, 0.16);
  border-color: rgba(246, 214, 172, 0.6);
  color: #fbe8cd;
}

/* ---------------- sheet (new intention) ---------------- */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: end center;
  padding: 0;
  background: rgba(8, 5, 18, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.sheet[data-open="true"] { opacity: 1; pointer-events: auto; }
.sheet-panel {
  width: min(34rem, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 1.3rem 1.15rem 1.6rem;
  border-radius: 1.4rem 1.4rem 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: linear-gradient(to bottom, #211636, #170f2c 70%);
  box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, 0.8);
  transform: translateY(1.5rem);
  transition: transform 0.25s ease;
}
.sheet[data-open="true"] .sheet-panel { transform: none; }
@media (min-width: 640px) {
  .sheet { place-items: center; padding: 1.5rem; }
  .sheet-panel { border-radius: 1.4rem; border-bottom: 1px solid var(--line); }
}
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; }
.sheet-close {
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-soft);
  font-size: 1rem;
  cursor: pointer;
}
.sheet-close:hover { color: var(--ink); background: rgba(255, 255, 255, 0.1); }
.sheet label { display: block; margin: 1.1rem 0 0.35rem; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); }
.sheet textarea {
  width: 100%;
  min-height: 4.6rem;
  resize: vertical;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}
.sheet textarea:focus { border-color: rgba(246, 214, 172, 0.6); outline: none; }
.count { text-align: right; margin-top: 0.25rem; font-size: 0.82rem; color: var(--ink-mute); font-family: var(--mono); }
.sheet .label-split { display: flex; justify-content: space-between; align-items: baseline; }
.sheet-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 1.2rem; }

/* ---------------- observatory ---------------- */

.chart {
  display: grid;
  gap: 0.8rem;
}
@media (min-width: 620px) { .chart { grid-template-columns: auto 1fr; align-items: start; } }
.chart-mark {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  color: var(--amber);
  background: rgba(240, 192, 126, 0.14);
  border: 1px solid rgba(246, 214, 172, 0.28);
}
.chart-mark svg { display: block; width: 1.9rem; height: 1.9rem; }
.chart-meta { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.chart h3 { margin: 0.2rem 0 0.4rem; }
.chart a.more { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 24px; margin-top: 0.7rem; color: var(--amber); font-size: 0.8rem; text-decoration: none; }
.chart a.more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- footer ---------------- */

.foot {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 0.8rem;
  color: var(--ink-mute);
  font-size: 0.82rem;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--amber); }
.foot .fine { font-size: 0.82rem; line-height: 1.6; max-width: 42rem; }

/* ---------------- welcome ---------------- */

.welcome { max-width: 30rem; margin: 6vh auto 0; }
.welcome .card { padding: 1.5rem; }
.field { display: grid; gap: 0.3rem; margin-top: 1rem; }
.field label { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); }
.field input {
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}
.field input:focus { border-color: rgba(246, 214, 172, 0.6); outline: none; }
.welcome .btn { margin-top: 1.2rem; }
.skip-line { text-align: center; margin: 0.6rem 0 0; }
/* On a short phone screen the intro has to give up a little air, otherwise
   "Continue as Stargazer" falls below the fold just after "Enter my sky".
   The skip line is secondary, so it is set smaller than body copy here. */
@media (max-height: 700px) {
  .welcome { margin-top: 0.15rem; }
  .welcome .card { padding: 0.85rem 1rem; }
  .welcome .sub { font-size: 0.94rem; line-height: 1.4; }
  .welcome .btn { margin-top: 0.7rem; }
  .welcome .skip-line { font-size: 0.84rem; line-height: 1.45; margin-top: 0.3rem; }
}
/* A 320px-wide phone wraps the intro into more lines again, so it tightens
   further — this is the oldest screen size still in use. */
@media (max-height: 700px) and (max-width: 340px) {
  .welcome { margin-top: 0; }
  .welcome .card { padding: 0.65rem 0.9rem; }
  .welcome .eyebrow { font-size: 0.7rem; }
  .welcome .sub { font-size: 0.9rem; line-height: 1.35; }
}
.err { margin: 0.6rem 0 0; color: #f7a8b8; font-size: 0.8rem; }

/* ---------------- tone lab ---------------- */

.instrument-label {
  display: block;
  margin: 1rem 0 0.35rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.instrument {
  width: 100%;
  min-height: 6.5rem;
  resize: vertical;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}
.instrument:focus { border-color: rgba(246, 214, 172, 0.6); outline: none; }
.instrument-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.65rem; }
.instrument-row .small { margin-left: auto; font-family: var(--mono); font-size: 0.8rem; }

.tone-read {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.8rem;
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
}
.tone-read .reading {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: #fbe8cd;
}
.tone-detail { margin: 0.3rem 0 0; font-size: 0.88rem; line-height: 1.55; color: var(--ink-soft); }

.meters { display: grid; gap: 0.5rem; margin-top: 1rem; }
@media (min-width: 620px) { .meters { grid-template-columns: 1fr 1fr; } }
.meter { display: flex; align-items: center; gap: 0.55rem; }
.meter .k {
  width: 3.6rem;
  flex: none;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.meter .track { flex: 1; height: 0.4rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.meter .fill { display: block; height: 100%; border-radius: 999px; transition: width 0.5s ease; }
.meter .v { width: 1.6rem; text-align: right; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-mute); }
.meter[data-tone="rude"] .fill { background: #f9a8b8; }
.meter[data-tone="direct"] .fill { background: #c4b5fd; }
.meter[data-tone="funny"] .fill { background: #fdba74; }
.meter[data-tone="warm"] .fill { background: var(--amber); }
.meter[data-tone="neutral"] .fill { background: #cbd5e1; }

.flags { display: grid; gap: 0.45rem; margin-top: 1rem; }
.flag {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.flag b { color: var(--ink); font-weight: 600; }
.flag[data-kind="harsh"] { border-color: rgba(249, 168, 184, 0.32); background: rgba(249, 168, 184, 0.08); }
.flag[data-kind="demand"] { border-color: rgba(253, 186, 116, 0.3); background: rgba(253, 186, 116, 0.08); }
.flag[data-kind="shout"] { border-color: rgba(246, 214, 172, 0.3); background: rgba(246, 214, 172, 0.08); }
.flag[data-kind="absolute"] { border-color: rgba(240, 171, 252, 0.28); background: rgba(240, 171, 252, 0.08); }
.flag[data-kind="hedge"] { border-color: rgba(196, 181, 253, 0.3); background: rgba(196, 181, 253, 0.08); }

.tone-split {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}
.tone-split .eyebrow { margin: 0; }

.variants { list-style: none; margin: 0.7rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.variant {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.variant p { flex: 1; margin: 0; font-size: 0.86rem; line-height: 1.5; color: var(--ink); }
.variant .small { font-family: var(--mono); font-size: 0.78rem; padding-top: 0.15rem; }
.copy {
  flex: none;
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-mute);
  cursor: pointer;
}
.copy:hover { color: var(--amber); border-color: rgba(246, 214, 172, 0.45); }

/* ---------------- community ---------------- */

.notice {
  max-width: 42rem;
  margin-top: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(246, 214, 172, 0.16);
}
.notice .eyebrow { margin: 0 0 0.3rem; color: var(--amber); }

.post + .post { margin-top: 0.9rem; }
.post-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.who { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.who b { display: block; font-size: 0.87rem; font-weight: 600; }
.avatar {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 0.84rem;
  font-weight: 700;
  color: #241a33;
  background: linear-gradient(150deg, #f5d9b4, #d8a7e0 70%);
}
.avatar--sm { width: 1.7rem; height: 1.7rem; font-size: 0.8rem; }
.handle {
  display: block;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}
.post-tools { display: flex; align-items: center; gap: 0.45rem; flex: none; }
.post-tools .btn--quiet { font-size: 0.84rem; }
.tag {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
  border: 1px solid var(--line);
  color: var(--ink-mute);
}
.post-text {
  margin: 0.8rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.post-img {
  width: 100%;
  max-height: 22rem;
  object-fit: cover;
  border-radius: 0.8rem;
  border: 1px solid var(--line-soft);
  margin-top: 0.8rem;
  display: block;
}
.post-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.85rem; }
.glow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font: inherit;
  font-size: 0.84rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.glow:hover { border-color: rgba(246, 214, 172, 0.5); color: var(--ink); }
.glow[aria-pressed="true"] { background: rgba(246, 214, 172, 0.16); border-color: rgba(246, 214, 172, 0.55); color: #fbe8cd; }
.comments {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line-soft);
}
.comment { display: flex; gap: 0.5rem; }
.comment p { margin: 0.1rem 0 0; font-size: 0.82rem; line-height: 1.45; color: var(--ink-soft); }
.comment-form { display: flex; gap: 0.4rem; align-items: center; }
.input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 0.84rem;
  color: var(--ink);
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}
.input:focus { border-color: rgba(246, 214, 172, 0.6); outline: none; }

/* ---------------- notes ---------------- */

.notes-split { display: grid; gap: 0.9rem; }
.thread-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.thread-list { display: grid; gap: 0.25rem; margin-top: 0.55rem; }
.thread-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem;
  border-radius: 0.7rem;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
}
.thread-row:hover { background: rgba(255, 255, 255, 0.05); }
.thread-row[aria-current="true"] { background: rgba(246, 214, 172, 0.1); border-color: rgba(246, 214, 172, 0.35); }
.thread-meta { min-width: 0; }
.thread-meta .t { display: block; font-size: 0.83rem; font-weight: 600; }
.thread-meta .p {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 11rem;
}
.quiet-state { display: grid; gap: 0.45rem; justify-items: start; padding: 0.6rem 0.2rem; }
.quiet-state h3 { margin: 0; font-size: 1rem; }
.quiet-state p { margin: 0; font-size: 0.82rem; line-height: 1.5; }
.quiet-state .btn { margin-top: 0.35rem; }

.thread-panel { display: none; }
.notes-split[data-open="true"] .thread-panel { display: block; }
.notes-split[data-open="true"] .thread-pane { display: none; }

.thread-panel-head { display: flex; align-items: center; gap: 0.55rem; }
.thread-panel-head b { display: block; font-size: 0.9rem; }
.thread-panel-head .btn--quiet { font-size: 1.1rem; text-decoration: none; padding: 0.1rem 0.35rem; }

.note-log {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  max-height: 22rem;
  overflow-y: auto;
  margin-top: 0.9rem;
  padding: 0.15rem;
}
.bubble {
  justify-self: start;
  max-width: min(82%, 30rem);
  padding: 0.55rem 0.75rem;
  border-radius: 0.85rem 0.85rem 0.85rem 0.3rem;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble--me {
  justify-self: end;
  border-radius: 0.85rem 0.85rem 0.3rem 0.85rem;
  border-color: rgba(246, 214, 172, 0.4);
  background: rgba(246, 214, 172, 0.16);
  color: #fbe8cd;
}
.bubble time {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  opacity: 0.6;
}
.note-compose { display: flex; align-items: flex-end; gap: 0.45rem; margin-top: 0.9rem; }
.note-compose textarea {
  flex: 1;
  min-height: 2.6rem;
  max-height: 8rem;
  resize: none;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink);
  padding: 0.6rem 0.75rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}
.note-compose textarea:focus { border-color: rgba(246, 214, 172, 0.6); outline: none; }
.send {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 0;
  background: var(--amber);
  color: #2a1a05;
  font-size: 1rem;
  cursor: pointer;
}
.send:hover { background: #fff0d6; }

@media (min-width: 820px) {
  .notes-split { grid-template-columns: 15.5rem minmax(0, 1fr); align-items: start; }
  .notes-split .thread-pane,
  .thread-panel { display: block; }
}

/* ---------------- workouts (mind gym, grounding) ---------------- */

.workout { display: flex; flex-direction: column; gap: 0.75rem; }
.workout-head { display: flex; gap: 0.65rem; align-items: flex-start; }
.workout-head h3 { margin: 0 0 0.15rem; font-size: 1rem; }
.workout-head p { margin: 0; font-size: 0.82rem; line-height: 1.45; }
.workout .glyph {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 1rem;
  background: rgba(246, 214, 172, 0.12);
  border: 1px solid rgba(246, 214, 172, 0.26);
}
@media (min-width: 720px) { .workout--wide { grid-column: 1 / -1; } }

.stage {
  position: relative;
  flex: 1;
  min-height: 11.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem;
  text-align: center;
  border-radius: 0.9rem;
  border: 1px solid var(--line-soft);
  background: rgba(24, 16, 44, 0.5);
  overflow: hidden;
}
.stage-title { margin: 0; font-family: var(--display); font-weight: 600; font-size: 0.98rem; line-height: 1.35; color: var(--ink); }
.stage-note { margin: 0; font-size: 0.84rem; line-height: 1.5; color: var(--ink-mute); max-width: 22rem; }
.stage-emoji { margin: 0; font-size: 1.9rem; line-height: 1; }
.stage-caption {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.stage-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; }
.urge {
  position: absolute;
  transform: translate(-50%, -50%);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 168, 184, 0.45);
  background: rgba(249, 168, 184, 0.16);
  color: #ffdfe6;
  cursor: pointer;
  white-space: nowrap;
}
.pips { display: flex; gap: 0.25rem; }
.pips span { width: 1.1rem; height: 0.3rem; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.pips span[data-filled="true"] { background: var(--amber); }
.quiet {
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.82rem;
  color: var(--ink-mute);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0.2rem;
}
.quiet:hover { color: var(--amber); }

.bubble-row { display: flex; width: 100%; justify-content: center; }
.bubble-thought {
  margin: 0;
  padding: 0.7rem 0.9rem;
  max-width: 16rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.86rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  transition: transform 0.9s ease, opacity 0.9s ease;
}
.bubble-thought[data-state="watching"] { transform: translateX(8%); opacity: 0.72; }
.bubble-thought[data-state="free"] { transform: translateX(16%) scale(0.96); opacity: 0.42; }

.lens {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(196, 181, 253, 0.35);
  background: rgba(196, 181, 253, 0.1);
  color: #ece6ff;
  font-size: 0.85rem;
  line-height: 1.5;
}
.pair { display: flex; gap: 0.45rem; width: 100%; max-width: 20rem; }
.pair-btn {
  flex: 1;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  padding: 0.7rem 0.5rem;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.pair-btn:hover { border-color: rgba(246, 214, 172, 0.5); background: rgba(246, 214, 172, 0.1); transform: translateY(-1px); }

/* ---------------- breathe ---------------- */

.orb-wrap { position: relative; display: grid; place-items: center; height: 15rem; margin-top: 0.6rem; }
.orb-glow {
  position: absolute;
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(251, 176, 59, 0.18), rgba(196, 181, 253, 0.09) 55%, transparent 72%);
  transition: transform 4s cubic-bezier(0.37, 0, 0.63, 1);
}
.orb {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 999px;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  font: inherit;
  color: #2a1a04;
  background: radial-gradient(circle at 36% 30%, rgba(255, 240, 214, 0.95), rgba(251, 176, 59, 0.6) 42%, rgba(196, 140, 255, 0.26) 72%, rgba(110, 100, 225, 0.12) 100%);
  box-shadow: 0 0 34px 4px rgba(251, 176, 59, 0.3), inset 0 0 24px rgba(255, 255, 255, 0.28);
  transition: transform 4s cubic-bezier(0.37, 0, 0.63, 1);
}
.orb .num { font-family: var(--display); font-weight: 700; font-size: 1.45rem; }
.orb-label {
  margin: 0.6rem 0 0;
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fbe8cd;
}

/* ---------------- archetype quiz ---------------- */

.quiz-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.steps { display: flex; gap: 0.28rem; margin-top: 0.6rem; }
.steps span { flex: 1; height: 0.28rem; border-radius: 999px; background: rgba(255, 255, 255, 0.1); transition: background 0.2s; }
.steps span[data-done="true"] { background: var(--amber); }
.quiz-emoji { margin: 0.4rem 0 0; font-size: 1.5rem; }
.answers { display: grid; gap: 0.5rem; margin-top: 0.9rem; }
.answer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink);
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.answer:hover { border-color: rgba(246, 214, 172, 0.5); background: rgba(246, 214, 172, 0.08); }
.answer .arrow { color: var(--amber); opacity: 0.6; flex: none; }
.quiz-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 1.1rem; }

.outcome-head { display: flex; align-items: center; gap: 0.8rem; }
.outcome-glyph {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 1.9rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}
.outcome-name { margin: 0.1rem 0 0; font-family: var(--display); font-size: 1.6rem; letter-spacing: -0.02em; color: var(--amber); }
.outcome-body { margin: 1rem 0 0; font-size: 0.9rem; line-height: 1.6; }
.panel-note {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(196, 181, 253, 0.28);
  background: rgba(196, 181, 253, 0.08);
}
.panel-note .eyebrow { margin-bottom: 0.3rem; }
.panel-note p:last-child { margin: 0; font-size: 0.86rem; line-height: 1.55; color: var(--ink); }
.bars { display: grid; gap: 0.45rem; margin-top: 0.6rem; }
.bar-row { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--ink-soft); }
.bar-row .name { width: 8rem; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .track { flex: 1; height: 0.4rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar-row .fill { display: block; height: 100%; border-radius: 999px; background: var(--amber); }
.bar-row .v { width: 1.2rem; text-align: right; font-family: var(--mono); font-size: 0.8rem; color: var(--ink-mute); }
.fit-list { display: grid; gap: 0.45rem; margin-top: 0.6rem; }
.fit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  padding: 0.7rem 0.8rem;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.fit:hover { border-color: rgba(246, 214, 172, 0.5); background: rgba(246, 214, 172, 0.08); }
.fit .fit-go { font-size: 0.84rem; color: var(--amber); flex: none; }
.fit.is-hung { border-color: rgba(246, 214, 172, 0.5); background: rgba(246, 214, 172, 0.1); }
.outcome-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.4rem; }

.archetype-grid { display: grid; gap: 0.6rem; margin-top: 0.7rem; }
@media (min-width: 600px) { .archetype-grid { grid-template-columns: 1fr 1fr; } }
.archetype { padding: 0.9rem; border-radius: 0.9rem; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.archetype .glyph {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  font-size: 1rem;
  background: rgba(246, 214, 172, 0.12);
  border: 1px solid rgba(246, 214, 172, 0.24);
}
.archetype h3 { margin: 0.55rem 0 0.2rem; font-size: 1rem; }
.archetype p { margin: 0; font-size: 0.8rem; line-height: 1.45; }

.link-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.toast {
  margin: 1rem 0 0;
  padding: 0.6rem 0.8rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(246, 214, 172, 0.4);
  background: rgba(246, 214, 172, 0.1);
  font-size: 0.82rem;
  color: #fbe8cd;
}

/* ================= rooms (studio, assessments, communication, outlook, signature) ================= */

.section-head { padding: 0.4rem 0 1.1rem; max-width: 46rem; }
.section-head .sub { margin-top: 0.55rem; }
.h2 { font-size: clamp(1.35rem, 4.6vw, 1.75rem); line-height: 1.2; }
.opt { text-transform: none; letter-spacing: 0.02em; color: var(--ink-mute); font-size: 0.78rem; margin-left: 0.35rem; }

.stat-row { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin-top: 0.9rem; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.stat-row b { color: var(--amber); font-size: 0.84rem; }

.toolbar { display: grid; gap: 0.75rem; padding: 0.95rem 1rem; }
.toolbar-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.4rem 0.8rem; }
.toolbar .search { display: grid; gap: 0.3rem; }
.toolbar .search input { width: 100%; }
.filter-row { display: grid; gap: 0.2rem; }
.filter-row .chips { margin-top: 0.15rem; }
.note { font-size: 0.85rem; line-height: 1.55; color: var(--ink-soft); }
.note b { color: var(--ink); font-weight: 600; }

.lib-grid { display: grid; gap: 0.7rem; margin-top: 1rem; }
@media (min-width: 700px) { .lib-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .lib-grid { grid-template-columns: repeat(3, 1fr); } }

.ex { padding: 0.95rem 1rem; cursor: pointer; display: flex; flex-direction: column; gap: 0.3rem; transition: transform 0.18s, border-color 0.18s, background 0.18s; }
.ex:hover, .ex:focus-visible, .ex:focus-within { transform: translateY(-2px); border-color: rgba(246, 214, 172, 0.34); outline: none; }
/* The card itself is not the control any more: its title is a real button, so
   the star inside it is not a control nested inside another one. */
.ex-open { display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ex-open:hover { color: var(--amber); }
.ex-open:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 0.2rem; }
.ex-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.ex h3 { margin: 0.15rem 0 0; font-size: 1.02rem; }
.ex p { margin: 0; font-size: 0.82rem; line-height: 1.5; color: var(--ink-soft); }
.ex-meta { margin-top: auto !important; padding-top: 0.5rem; font-family: var(--mono); font-size: 0.76rem !important; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute) !important; }
.tag { text-transform: capitalize; }

.star-btn { min-width: 24px; min-height: 24px; font: inherit; font-size: 1.1rem; line-height: 1; background: none; border: 0; color: var(--ink-mute); cursor: pointer; padding: 0.15rem 0.25rem; border-radius: 0.4rem; }
.star-btn:hover { color: var(--amber); }
.star-btn[aria-pressed="true"] { color: var(--amber); }
.star-btn--lg { font-size: 1.5rem; }

.detail { padding: 1.05rem 1.05rem 1.25rem; margin-top: 1rem; scroll-margin-top: 10rem; }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; }
.detail-head h2 { margin: 0.45rem 0 0; font-size: clamp(1.3rem, 4.5vw, 1.7rem); line-height: 1.16; }
/* On a phone the long eyebrow wraps to a second line, and at auto text sizes it
   used to run into the title. It is kept small, tight and clearly above it. */
.detail-head .eyebrow { font-size: 0.78rem; letter-spacing: 0.12em; line-height: 1.5; }
.detail-head-actions { display: flex; align-items: center; gap: 0.4rem; flex: none; }
.detail .note { margin-top: 0.85rem; padding: 0.7rem 0.8rem; border-radius: 0.8rem; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.03); }

.split { display: grid; gap: 1.1rem; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }

.step-list { list-style: none; margin: 0.55rem 0 0; padding: 0; display: grid; gap: 0.4rem; counter-reset: step; }
.step { display: flex; gap: 0.6rem; padding: 0.55rem 0.65rem; border-radius: 0.7rem; border: 1px solid transparent; font-size: 0.85rem; line-height: 1.5; color: var(--ink-soft); transition: background 0.25s, border-color 0.25s, color 0.25s; }
.step-n { flex: none; width: 1.35rem; height: 1.35rem; border-radius: 999px; display: grid; place-items: center; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-mute); border: 1px solid var(--line); }
.step[data-on="true"] { background: rgba(246, 214, 172, 0.1); border-color: rgba(246, 214, 172, 0.32); color: var(--ink); }
.step[data-on="true"] .step-n { background: var(--amber); color: #2a1a05; border-color: transparent; }

.timer-card { padding: 0.95rem; border-radius: 0.9rem; border: 1px solid var(--line); background: rgba(24, 16, 44, 0.55); }
.timer-display { font-family: var(--mono); font-size: 2rem; letter-spacing: 0.04em; color: var(--amber); margin-top: 0.3rem; }
.timer-bar { height: 0.32rem; border-radius: 999px; background: rgba(255, 255, 255, 0.09); overflow: hidden; margin: 0.5rem 0 0.6rem; }
.timer-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--amber-deep), var(--amber)); transition: width 0.5s linear; }
.timer-card .small { display: block; min-height: 2.6rem; margin: 0; }
.timer-actions { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.7rem; }
.timer-card .chips { margin-top: 0.35rem; }
.timer-card .chip[disabled] { opacity: 0.4; cursor: default; }
.sound-suggest { margin-top: 0.7rem; }
.sound-suggest .quiet { font-size: 0.84rem; }

.reflect { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.reflect p { font-size: 0.87rem; line-height: 1.55; color: var(--ink-soft); }
.reflect-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.5rem; }
.reflect-list { display: grid; gap: 0.4rem; margin-top: 0.8rem; }
.reflect-item { margin: 0; padding: 0.5rem 0.65rem; border-radius: 0.65rem; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.03); font-size: 0.8rem; line-height: 1.5; color: var(--ink-soft); }
.reflect-item time { display: block; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; color: var(--ink-mute); margin-bottom: 0.15rem; }
.reflect-item b { color: var(--ink); }

.assess-card { display: flex; flex-direction: column; gap: 0.4rem; padding: 1rem; }
.assess-card h3 { margin: 0; font-size: 1.05rem; }
.assess-card h3 a { text-decoration: none; }
.assess-card h3 a:hover { color: var(--amber); }
.assess-card p { margin: 0; font-size: 0.84rem; line-height: 1.5; }
.assess-card .btn { align-self: flex-start; margin-top: auto; }
.assess-card .ex-meta { padding-top: 0.3rem; }

.outcome { padding: 1.1rem; }
.list { margin: 0.4rem 0 0; padding-left: 1.05rem; display: grid; gap: 0.3rem; font-size: 0.84rem; line-height: 1.5; color: var(--ink-soft); }
.list li::marker { color: var(--amber); }

.jump { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.jump a { font-size: 0.84rem; padding: 0.34rem 0.7rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--ink-soft); text-decoration: none; }
.jump a:hover { border-color: rgba(246, 214, 172, 0.5); color: var(--ink); }

.topics { display: grid; gap: 0.5rem; }
.topic { border-radius: 0.9rem; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.035); overflow: hidden; }
.topic summary { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; padding: 0.8rem 0.95rem; cursor: pointer; font-size: 0.92rem; font-weight: 500; list-style: none; }
.topic summary::-webkit-details-marker { display: none; }
.topic summary:hover { background: rgba(255, 255, 255, 0.04); }
.topic-plus { flex: none; font-family: var(--mono); color: var(--amber); font-size: 0.85rem; transition: transform 0.2s; }
.topic[open] .topic-plus { transform: rotate(45deg); }
.topic-body { padding: 0 0.95rem 0.95rem; }
.topic-body p { margin: 0 0 0.6rem; font-size: 0.85rem; line-height: 1.6; color: var(--ink-soft); }
.topic-body p:last-child { margin-bottom: 0; }
.try-line, .watch-line, .after-line { padding: 0.6rem 0.7rem; border-radius: 0.7rem; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.03); }
.try-line { border-left: 2px solid rgba(158, 197, 192, 0.6); }
.watch-line { border-left: 2px solid rgba(249, 168, 184, 0.55); }
.try-line b, .watch-line b, .after-line b { color: var(--ink); }
.scene-line { font-style: italic; color: var(--ink) !important; }
.script-line { font-family: var(--display); font-size: 1.02rem; line-height: 1.45; color: #fbe8cd !important; }
.avoid-better { display: grid; gap: 0.55rem; margin: 0.4rem 0 0.7rem; }
@media (min-width: 680px) { .avoid-better { grid-template-columns: 1fr 1fr; } }
.avoid-better > div { padding: 0.6rem 0.7rem; border-radius: 0.7rem; border: 1px solid var(--line-soft); }
.avoid { background: rgba(249, 168, 184, 0.06); }
.better { background: rgba(158, 197, 192, 0.06); }
.avoid-better p { margin: 0.25rem 0 0; font-size: 0.8rem; }
.avoid-better .eyebrow { font-size: 0.76rem; }

.intent { padding: 1rem; }
.intent h3 { margin: 0.3rem 0 0.7rem; font-family: var(--display); font-size: 1.1rem; line-height: 1.35; color: var(--ink); }
.tone-options { display: grid; gap: 0.45rem; }
.tone-option { padding: 0.6rem 0.7rem; border-radius: 0.75rem; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.025); }
.tone-option-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.tone-badge { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.18rem 0.45rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); }
.tone-option[data-tone="defensive"] .tone-badge { background: rgba(249, 168, 184, 0.14); border-color: rgba(249, 168, 184, 0.4); color: #ffdfe6; }
.tone-option[data-tone="passive"] .tone-badge { background: rgba(196, 181, 253, 0.12); border-color: rgba(196, 181, 253, 0.35); color: #ece6ff; }
.tone-option[data-tone="assertive"] .tone-badge { background: rgba(246, 214, 172, 0.16); border-color: rgba(246, 214, 172, 0.45); color: #fbe8cd; }
.tone-option[data-tone="curious"] .tone-badge { background: rgba(158, 197, 192, 0.14); border-color: rgba(158, 197, 192, 0.4); color: #dff2ee; }
.tone-option[data-tone="vulnerable"] .tone-badge { background: rgba(216, 167, 224, 0.14); border-color: rgba(216, 167, 224, 0.4); color: #f7e6fb; }
.tone-line { margin: 0.45rem 0 0.2rem; font-size: 0.87rem; line-height: 1.5; color: var(--ink); }
.tone-note { margin: 0; font-size: 0.82rem; line-height: 1.5; color: var(--ink-mute); }
.swaps { display: grid; gap: 0.6rem; margin-top: 0.8rem; }
@media (min-width: 700px) { .swaps { grid-template-columns: 1fr 1fr; } }
.swap { padding: 0.8rem 0.9rem; border-radius: 0.85rem; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.035); }
.swap p { margin: 0; }
.swap-old { font-size: 0.82rem; color: var(--ink-mute); text-decoration: line-through; text-decoration-color: rgba(249, 168, 184, 0.5); }
.swap-new { margin-top: 0.3rem !important; font-family: var(--display); font-size: 1rem; line-height: 1.4; color: #fbe8cd; }
.swap-why { margin-top: 0.45rem !important; font-size: 0.84rem; line-height: 1.5; color: var(--ink-soft); }

.week-card { padding: 1rem 1.05rem; border-color: rgba(246, 214, 172, 0.22); }
.week-head { display: flex; align-items: center; gap: 0.9rem; }
.sign-badge { flex: none; width: 3.7rem; height: 3.7rem; border-radius: 1.1rem; display: grid; place-items: center; font-size: 1.9rem; color: var(--amber); background: radial-gradient(circle at 35% 30%, rgba(246, 214, 172, 0.22), rgba(196, 181, 253, 0.12)); border: 1px solid rgba(246, 214, 172, 0.3); }
.sign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.2rem, 1fr)); gap: 0.45rem; margin-top: 0.6rem; }
.sign-chip { font: inherit; text-align: center; padding: 0.55rem 0.3rem 0.6rem; border-radius: 0.85rem; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.035); color: var(--ink-soft); cursor: pointer; display: grid; gap: 0.1rem; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.sign-chip:hover { border-color: rgba(246, 214, 172, 0.45); color: var(--ink); }
.sign-chip[aria-pressed="true"] { background: rgba(246, 214, 172, 0.13); border-color: rgba(246, 214, 172, 0.55); color: #fbe8cd; }
.sign-glyph { font-size: 1.15rem; color: var(--amber); }
.sign-name { font-size: 0.84rem; font-weight: 600; }
.sign-dates { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.04em; color: var(--ink-mute); }
.reading-grid { display: grid; gap: 0.6rem; margin-top: 1.15rem; }
@media (min-width: 760px) { .reading-grid { grid-template-columns: 1fr 1fr; } }
.reading-block { padding: 0.8rem 0.9rem; border-radius: 0.85rem; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.03); }
.reading-block p { margin: 0.3rem 0 0; font-size: 0.84rem; line-height: 1.55; color: var(--ink-soft); }
.reading-block--lead { grid-column: 1 / -1; border-color: rgba(246, 214, 172, 0.3); background: rgba(246, 214, 172, 0.06); }
.reading-block--lead p { font-family: var(--display); font-size: 1.05rem; line-height: 1.45; color: var(--ink); }
.companion { padding: 0.95rem; border-color: rgba(196, 181, 253, 0.25); }
.companion-grid { display: grid; gap: 0.8rem; margin-top: 0.6rem; }
@media (min-width: 700px) { .companion-grid { grid-template-columns: 1fr 1fr; } }
.companion-grid p { margin: 0.2rem 0 0; font-size: 0.84rem; line-height: 1.55; color: var(--ink-soft); }
.week-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin-top: 1rem; }
.week-actions .btn--quiet { font-size: 0.84rem; }

.daily { padding: 1.05rem; border-color: rgba(246, 214, 172, 0.2); }
.persp .scenario { margin: 0.3rem 0 0; font-family: var(--display); font-size: 1.12rem; line-height: 1.45; color: var(--ink); }
.first-read { margin: 0.35rem 0 0; padding: 0.7rem 0.8rem; border-radius: 0.75rem; border: 1px solid rgba(249, 168, 184, 0.28); background: rgba(249, 168, 184, 0.07); font-size: 0.9rem; line-height: 1.5; color: #ffe4ea; }
.action-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; }
.action-row input[type="checkbox"] { width: 1.5rem; height: 1.5rem; flex: none; accent-color: #f6d6ac; }
.room-card { border-radius: 0.9rem; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); overflow: hidden; }
.room-card + .room-card { margin-top: 0.5rem; }
.room-card summary { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding: 0.75rem 0.9rem; cursor: pointer; font-size: 0.9rem; list-style: none; }
.room-card summary::-webkit-details-marker { display: none; }
.room-card[open] .topic-plus { transform: rotate(45deg); }
.room-card .topic-body { padding: 0 0.9rem 0.9rem; }
.room-card .list { margin-bottom: 0.7rem; }
.unsent-item { padding: 0.75rem 0.85rem; border-radius: 0.8rem; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.03); margin-top: 0.55rem; }
.unsent-item .post-text { margin-top: 0.4rem; font-size: 0.85rem; }
.unsent-item .small { margin-top: 0.4rem; color: var(--ink-mute); }

.room-intro { display: flex; align-items: flex-start; gap: 0.8rem; }
.room-num { flex: none; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--amber); padding: 0.3rem 0.45rem; border-radius: 0.5rem; border: 1px solid rgba(246, 214, 172, 0.3); background: rgba(246, 214, 172, 0.08); margin-top: 0.3rem; }
.room-intro .sub { margin: 0.2rem 0 0; }
.door { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.95rem 1rem; text-decoration: none; transition: transform 0.18s, border-color 0.18s; }
.door:hover { transform: translateY(-2px); border-color: rgba(246, 214, 172, 0.35); }
.door h3 { margin: 0.1rem 0 0; font-size: 1.05rem; }
.door p { margin: 0; font-size: 0.82rem; line-height: 1.5; color: var(--ink-soft); }
.door-go { margin-top: auto; padding-top: 0.5rem; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.door--sm { padding: 0.8rem 0.85rem; }
.door--sm h3 { font-size: 0.92rem; }
.door--sm p { font-size: 0.84rem; }
.grid--3 { display: grid; gap: 0.6rem; }
@media (min-width: 720px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

select.input { appearance: none; background-image: linear-gradient(45deg, transparent 49%, var(--ink-mute) 50%), linear-gradient(135deg, var(--ink-mute) 50%, transparent 51%); background-position: calc(100% - 1rem) 55%, calc(100% - 0.7rem) 55%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2rem; }
input[type="range"] { accent-color: #f6d6ac; width: 100%; }

/* ---------------- the sound room ---------------- */

.sound { position: fixed; z-index: 40; right: 0.9rem; bottom: 0.9rem; display: grid; justify-items: end; gap: 0.5rem; }
.sound-btn { display: inline-flex; align-items: center; gap: 0.4rem; font: inherit; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.5rem 0.75rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(26, 18, 46, 0.88); color: var(--ink-soft); cursor: pointer; backdrop-filter: blur(8px); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.8); }
.sound-btn:hover { color: var(--ink); border-color: rgba(246, 214, 172, 0.4); }
.sound-btn[data-on="true"] { color: #fbe8cd; border-color: rgba(246, 214, 172, 0.5); }
.sound-wave { display: inline-flex; align-items: flex-end; gap: 2px; height: 0.8rem; }
.sound-wave i { display: block; width: 2px; background: var(--amber); border-radius: 999px; animation: wave 1.2s ease-in-out infinite; }
.sound-wave i:nth-child(1) { height: 40%; animation-delay: 0s; }
.sound-wave i:nth-child(2) { height: 100%; animation-delay: 0.2s; }
.sound-wave i:nth-child(3) { height: 60%; animation-delay: 0.4s; }
@keyframes wave { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1); } }
.sound-panel { width: min(20rem, calc(100vw - 1.8rem)); max-height: min(34rem, 78vh); overflow-y: auto; padding: 0.9rem; border-radius: 1.1rem; border: 1px solid var(--line); background: linear-gradient(to bottom, #211636, #170f2c 75%); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85); }
.sound-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.sound-now { margin: 0.5rem 0 0.6rem; font-size: 0.84rem; color: var(--ink-mute); }
.sound-now b { color: var(--ink); }
.sound-scenes { display: grid; gap: 0.3rem; }
.sound-scene { display: flex; align-items: center; gap: 0.55rem; text-align: left; font: inherit; padding: 0.45rem 0.55rem; border-radius: 0.65rem; border: 1px solid transparent; background: rgba(255, 255, 255, 0.03); color: var(--ink-soft); cursor: pointer; }
.sound-scene:hover { background: rgba(255, 255, 255, 0.07); }
.sound-scene[aria-pressed="true"] { border-color: rgba(246, 214, 172, 0.4); background: rgba(246, 214, 172, 0.1); }
.sound-scene .glyph { width: 1.6rem; height: 1.6rem; flex: none; display: grid; place-items: center; border-radius: 0.45rem; background: rgba(255, 255, 255, 0.06); color: var(--amber); font-size: 0.85rem; }
.sound-scene b { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.sound-scene small { display: block; font-size: 0.8rem; color: var(--ink-mute); }
.sound-vol { display: block; margin: 0.8rem 0 0.3rem; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.sound-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.5rem; }
.sound-note { margin: 0.6rem 0 0; font-size: 0.78rem; line-height: 1.5; color: var(--ink-mute); }
@media (max-width: 560px) { .sound { bottom: 0.7rem; right: 0.7rem; } .sound-btn span:last-child { display: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- journal, assessment history, saved view, weekly thread ---------- */

.trend-line { color: var(--amber); font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.3rem; }

.take-list { display: grid; gap: 0.3rem; margin-top: 0.7rem; }
.take {
  display: grid;
  grid-template-columns: 4.2rem 1fr auto;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.4rem 0.6rem;
  border-radius: 0.55rem;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.take-date { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em; color: var(--ink-mute); text-transform: uppercase; }
.take-name { color: var(--ink); }
.take-pct { font-family: var(--mono); font-size: 0.82rem; color: var(--amber); }

.reflect-item--link {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
}
.reflect-item--link:hover { border-color: rgba(246, 214, 172, 0.45); color: var(--ink); }

.journal-list { display: grid; gap: 0.65rem; margin-top: 1rem; }
.journal-entry h3 { font-family: var(--display); font-size: 1.05rem; margin: 0.35rem 0 0.3rem; color: var(--ink); }
.journal-entry p { font-size: 0.88rem; color: var(--ink-soft); }
.journal-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.journal-meta time { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.journal-link { display: inline-block; margin-top: 0.6rem; color: var(--amber); text-decoration: none; }
.journal-link:hover { text-decoration: underline; }

.thread { display: grid; gap: 0.4rem; margin-top: 0.9rem; }
.thread-item {
  display: grid;
  grid-template-columns: 9.5rem 1fr auto;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: var(--ink-soft);
}
.thread-item:hover { border-color: rgba(246, 214, 172, 0.45); }
.thread-label { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.thread-copy { font-size: 0.84rem; color: var(--ink); }
.thread-go { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); white-space: nowrap; }

@media (max-width: 640px) {
  .thread-item { grid-template-columns: 1fr auto; }
  .thread-label { grid-column: 1 / -1; }
  .take { grid-template-columns: 1fr auto; }
  .take-date { grid-column: 1 / -1; }
}

/* Sound room: sleep timer and the wider scene list. */
.sound-sleep { margin-top: 0.35rem; }
.sound-sleep .chip { font-size: 0.78rem; letter-spacing: 0.04em; padding: 0.28rem 0.5rem; }
.sound-scenes { max-height: 15.5rem; overflow-y: auto; padding-right: 0.15rem; scrollbar-width: thin; scrollbar-color: rgba(246, 214, 172, 0.28) transparent; }
.sound-scenes::-webkit-scrollbar, .sound-panel::-webkit-scrollbar, .settings-panel::-webkit-scrollbar { width: 6px; }
.sound-scenes::-webkit-scrollbar-track, .sound-panel::-webkit-scrollbar-track, .settings-panel::-webkit-scrollbar-track { background: transparent; }
.sound-scenes::-webkit-scrollbar-thumb, .sound-panel::-webkit-scrollbar-thumb, .settings-panel::-webkit-scrollbar-thumb { background: rgba(246, 214, 172, 0.26); border-radius: 99px; }
.sound-scenes::-webkit-scrollbar-thumb:hover, .sound-panel::-webkit-scrollbar-thumb:hover, .settings-panel::-webkit-scrollbar-thumb:hover { background: rgba(246, 214, 172, 0.45); }
.sound-panel, .settings-panel { scrollbar-width: thin; scrollbar-color: rgba(246, 214, 172, 0.28) transparent; }

/* ---------- header tools: reset, motion, storage ---------- */

.ui-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
}
.ui-tool {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  font: inherit;
  font-size: 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-mute);
  text-decoration: none;
  cursor: pointer;
}
.ui-tool:hover { color: var(--ink); border-color: rgba(246, 214, 172, 0.4); }
.ui-tool[aria-pressed="true"] { color: var(--amber); border-color: rgba(246, 214, 172, 0.5); }

html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

/* ---------- the three-step reset ---------- */

.reset-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  margin: 1.1rem 0 0.35rem;
  padding: 0;
  counter-reset: none;
}
.reset-steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.reset-steps li span { color: var(--ink-soft); }
.reset-steps li[data-state="done"] { color: var(--ink-soft); border-color: rgba(246, 214, 172, 0.25); }
.reset-steps li[data-state="current"] { color: var(--plum); background: var(--amber); border-color: var(--amber); }
.reset-steps li[data-state="current"] span { color: rgba(18, 11, 38, 0.82); }

.reset-panel { margin-top: 1rem; }
.reset-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 1rem; }
.reset-tones .door { padding: 0.8rem; }
.reset-tones .door[aria-pressed="true"] { border-color: var(--amber); }
.breath-box { margin-top: 1rem; }
.breath-box .timer-display { margin-top: 0.4rem; }

.guided-step { font-size: 0.95rem; line-height: 1.55; color: var(--ink); margin-top: 0.5rem; min-height: 3.2rem; }
.guided-card .timer-display { margin-top: 0.5rem; }

/* ---------------- the breathing circle ----------------
   A practice you can follow with your eyes: one slow inhale and exhale per
   step, sized so it reads at arm's length on a phone. */

.guide-orb {
  position: relative;
  width: 6.4rem;
  height: 6.4rem;
  margin: 1rem auto 0.45rem;
}
.guide-orb i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(246, 214, 172, 0.35);
  background: radial-gradient(circle at 50% 45%, rgba(246, 214, 172, 0.45), rgba(246, 214, 172, 0.1) 62%, transparent 72%);
  transform: scale(0.8);
  will-change: transform;
}
.guide-orb i:last-child {
  border-color: rgba(246, 214, 172, 0.16);
  background: none;
  transform: scale(1);
}
.guide-orb[data-on="true"] i:first-child {
  animation: orbBreath var(--orb-dur, 10s) cubic-bezier(0.42, 0, 0.52, 1) infinite;
}
.guide-orb[data-on="true"] i:last-child {
  animation: orbHalo var(--orb-dur, 10s) cubic-bezier(0.42, 0, 0.52, 1) infinite;
}
@keyframes orbBreath {
  0%, 100% { transform: scale(0.78); opacity: 0.7; }
  50% { transform: scale(1.14); opacity: 1; }
}
@keyframes orbHalo {
  0%, 100% { transform: scale(0.98); opacity: 0.4; }
  50% { transform: scale(1.34); opacity: 0.85; }
}
html[data-motion="reduced"] .guide-orb i { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .guide-orb i { animation: none !important; }
}

.comms-grid { display: grid; gap: 0.8rem; margin-top: 0.9rem; }
.comms-grid p:last-child { font-size: 0.86rem; color: var(--ink-soft); }
.comms-card { margin-top: 1.1rem; }

@media (max-width: 700px) {
  .comms-grid { grid-template-columns: 1fr; }
}

/* ---------- tap stars ---------- */

.tap-stars {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  overflow: hidden;
}

.tap-star {
  position: absolute;
  line-height: 1;
  font-family: var(--serif), Georgia, serif;
  text-shadow: 0 0 9px rgba(246, 214, 172, 0.95), 0 0 24px rgba(246, 214, 172, 0.6);
  will-change: transform, opacity;
  user-select: none;
  -webkit-user-select: none;
}

/* Under reduced motion the layer stays, showing the still glow from ui.js. */
html[data-motion="reduced"] .tap-stars .tap-star { animation: none; text-shadow: 0 0 14px currentColor, 0 0 5px rgba(255, 255, 255, 0.85), 0 0 26px rgba(246, 214, 172, 0.35); }

/* ---------- the page pager ---------- */

.pager {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 1.3rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(246, 214, 172, 0.14);
}
.pager-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  max-width: 48%;
  padding: 0.7rem 0.9rem;
  border-radius: 0.9rem;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(246, 214, 172, 0.18);
}
.pager-link--next { margin-left: auto; text-align: right; }
.pager-link:hover { border-color: rgba(246, 214, 172, 0.45); }
.pager-dir {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}
.pager-name { font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- phone-size corrections ---------- */

/* Labels were set at 8.8–9.6px, which is below what a phone reads comfortably. */
.eyebrow { font-size: 0.82rem; letter-spacing: 0.2em; }
.nav a { font-size: 0.8rem; letter-spacing: 0.08em; }
.reset-steps li { font-size: 0.8rem; letter-spacing: 0.08em; padding: 0.38rem 0.72rem; }
.foot { font-size: 0.8rem; }
.foot nav a { padding-block: 0.4rem; }

.chip { min-height: 2.4rem; display: inline-flex; align-items: center; justify-content: center; }
.reset-actions .btn--quiet { min-height: 2.7rem; padding-inline: 0.55rem; }

/* The reset stops re-reading its own introduction after the first step. */
body[data-step="2"] .section-head .sub,
body[data-step="3"] .section-head .sub { display: none; }
body[data-step="2"] .section-head .display,
body[data-step="3"] .section-head .display { font-size: clamp(1.35rem, 5.6vw, 1.7rem); max-width: 22rem; }
body[data-step="2"] .section-head,
body[data-step="3"] .section-head { padding-bottom: 0.6rem; }

@media (max-width: 819px) {
  .top .nav a { font-size: 0.8rem; }
  /* The sound button is the only fixed control left; keep answers clear of it. */
  .answer { padding-right: 3.2rem; }
  .page { padding-bottom: 6rem; }
  .section-head { padding-bottom: 0.85rem; }
  .outcome .eyebrow { letter-spacing: 0.12em; }
}

@media (max-width: 430px) {
  .who span:not(.dot) { display: none; }
  .who { padding-right: 0.3rem; }
}

@media (max-width: 560px) {
  .ui-tool { width: 2rem; height: 2rem; font-size: 0.84rem; }
  .sound-btn { width: 1.9rem; height: 1.9rem; right: 0.55rem; bottom: 0.55rem; }
}

@media (min-width: 820px) {
  /* Let the header distribute evenly; the auto margin only existed to keep
     the phone row from wrapping. */
  .ui-tools { margin-left: 0; }
}


/* ---------- settings sheet and the sound room as a sheet ---------- */

.sound { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem; pointer-events: none; }
.sound[data-open="true"] { background: rgba(8, 4, 18, 0.62); backdrop-filter: blur(6px); pointer-events: auto; }
.sound .sound-btn { display: none; }
.sound-panel { pointer-events: auto; width: min(21rem, 100%); max-height: min(38rem, 84vh); }

.settings { position: fixed; inset: 0; z-index: 70; display: grid; place-items: end center; padding: 0.9rem; background: rgba(8, 4, 18, 0.6); backdrop-filter: blur(6px); }
.settings[hidden] { display: none; }
.settings-panel { width: min(24rem, 100%); max-height: min(38rem, 86vh); overflow-y: auto; padding: 1rem; border-radius: 1.2rem; border: 1px solid var(--line); background: linear-gradient(to bottom, #211636, #170f2c 78%); box-shadow: 0 26px 70px -24px rgba(0, 0, 0, 0.9); }
.settings-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.6rem; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.7rem 0; border-top: 1px solid var(--line-soft); }
.settings-row b { display: block; font-size: 0.84rem; font-weight: 600; }
.settings-row small { display: block; margin-top: 0.15rem; font-size: 0.82rem; line-height: 1.45; color: var(--ink-mute); }
.settings-row > div { min-width: 0; }
.settings-note { margin: 0.7rem 0 0; font-size: 0.8rem; line-height: 1.5; color: var(--ink-mute); }
.settings-note[data-bad="1"] { color: #ffb4a2; }
/* The backup row carries two buttons and a line of feedback under them. */
.settings-row--stack { flex-wrap: wrap; }
.settings-row--stack > div:first-child { flex: 1 1 100%; }
.settings-row--stack [data-backup-note] { flex: 1 1 100%; margin-top: 0.1rem; }
.settings-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.ui-tool[data-on="true"], .ui-tool[aria-expanded="true"] { color: var(--amber); border-color: rgba(246, 214, 172, 0.45); }
html.settings-open, html.sound-open { overflow: hidden; }
@media (min-width: 620px) { .settings { place-items: center; } }


/* ---------- chapters: long pages, opened a few at a time ---------- */

.chapter { margin-top: 0.9rem; border-radius: 1rem; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.03); overflow: hidden; }
.chapter > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.9rem 1rem; cursor: pointer; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.chapter > summary::-webkit-details-marker { display: none; }
.chapter > summary::before { content: "＋"; color: var(--amber); margin-right: 0.45rem; }
.chapter[open] > summary::before { content: "−"; }
.chapter-label { flex: 1; min-width: 0; }
.chapter-cue { color: var(--ink-mute); font-size: 0.76rem; }
.chapter[open] > summary { color: var(--ink); }
.chapter[open] .chapter-cue { opacity: 0; }
.chapter > section.card { margin: 0 !important; border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; background: transparent; }
.chapter > section.card > .eyebrow:first-child { display: none; }

/* A chapter whose label is a whole sentence (the messaging studio's scenarios)
   reads as a row you tap, not a heading in capitals. */
.chapter--plain > summary { font-family: var(--body); font-size: 0.88rem; letter-spacing: 0; text-transform: none; line-height: 1.45; }
.chapter--plain .chapter-cue { flex: none; }
.chapter > .intent { margin: 0; border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; background: transparent; padding: 0.9rem 1rem 1.15rem; }

/* Practice cards grouped into a chapter keep their own columns on wide screens. */
.lib-grid[data-grouped] { display: block; }
.chapter > .lib-row { display: grid; gap: 0.7rem; padding: 0.7rem; }
@media (min-width: 700px) { .chapter > .lib-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .chapter > .lib-row { grid-template-columns: repeat(3, 1fr); } }

/* ---------- the dive ---------- */

html.diving { overflow: hidden; }
/* The well starts where the tapped card is (--from-x/--from-y, set by ui.js)
   and falls back to the middle of the screen for a bare [data-dive]. */
.dive { --from-x: 50%; --from-y: 50%; position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 0.4s ease; background: radial-gradient(circle at var(--from-x) var(--from-y), rgba(4, 2, 10, 0) 0%, rgba(6, 3, 16, 0.35) 46%, rgba(3, 1, 8, 0.9) 100%); }
.dive.go { opacity: 1; }
.dive::after { content: ""; position: absolute; left: var(--from-x); top: var(--from-y); width: 10px; height: 10px; border-radius: 50%; background: #05030c; box-shadow: 0 0 60px 24px rgba(246, 214, 172, 0.22), 0 0 140px 80px rgba(126, 78, 214, 0.16); transform: translate(-50%, -50%) scale(0); }
.dive.go::after { animation: dive-core 1.6s cubic-bezier(0.55, 0.02, 0.75, 0.2) forwards; }
/* Reduced motion: the arrival without the flight. One short, still fade to
   dark at the point you pressed — no core, no streaks, no travel. */
.dive--calm { background: radial-gradient(circle at var(--from-x) var(--from-y), rgba(6, 3, 16, 0.34) 0%, rgba(5, 2, 14, 0.78) 58%, rgba(3, 1, 8, 0.96) 100%); }
.dive--calm::after { display: none; }

@keyframes dive-core { 55% { transform: translate(-50%, -50%) scale(26); } 100% { transform: translate(-50%, -50%) scale(240); } }
.dive .streak { position: absolute; left: var(--from-x); top: var(--from-y); width: 2px; height: 18vh; margin-left: -1px; transform-origin: 50% 0; opacity: 0; background: linear-gradient(to bottom, rgba(255, 250, 240, 0), rgba(255, 244, 225, 0.9)); border-radius: 999px; }
.dive.go .streak { animation: dive-streak calc(1.4s * var(--l, 1)) cubic-bezier(0.4, 0, 0.85, 0.35) var(--d, 0s) forwards; }
@keyframes dive-streak { 0% { opacity: 0; transform: rotate(var(--a)) translateY(2vh) scaleY(0.2); } 25% { opacity: 0.95; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(58vh) scaleY(2.6); } }

/* ---------- the things that dive ----------

   A door, the Next step and a main button are the taps that go somewhere, so
   they answer a press before the well opens: the card sinks a little under the
   finger, and the arrival on the next page rises out of the dark. */

a.door:active, a.pager-link:active { transform: scale(0.985); }
a.door:focus-visible, a.pager-link:focus-visible, a.btn:focus-visible { outline: 2px solid rgba(246, 214, 172, 0.55); outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .page { animation: surface-in 0.4s cubic-bezier(0.22, 0.7, 0.25, 1) both; }
  @keyframes surface-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}


/* ================= calmer reading scale =================

   The pages were set at sizes that read fine on a desktop monitor and tight on
   a phone: captions near 9px, cards at 1.15rem padding, and — the real problem
   — the practice stages, which are the actual exercises, smaller than the
   prose introducing them. This pass raises the floor everywhere and gives each
   block more air, so a page can be skimmed instead of squinted at.

   Nothing is hidden or removed here: the same content is simply set larger and
   spaced further apart. */

body { font-size: 17px; line-height: 1.6; }

.page { padding: 0 1.1rem 5.5rem; }

.display { font-size: clamp(2rem, 7.4vw, 3.15rem); }
.sub { margin-top: 0.7rem; font-size: 1.03rem; line-height: 1.6; max-width: 33rem; }
.small { font-size: 0.88rem; line-height: 1.55; }

.card { padding: 1.4rem; }
.card h2 { font-size: 1.32rem; line-height: 1.22; }
.card h3 { font-size: 1.16rem; }
.card p { font-size: 0.97rem; line-height: 1.62; }
.grid { gap: 1.05rem; }
@media (min-width: 720px) {
  .grid--2, .grid--hero { gap: 1.25rem; }
}

.btn { font-size: 0.94rem; padding: 0.78rem 1.2rem; min-height: 2.95rem; }
.btn--small { font-size: 0.85rem; padding: 0.52rem 0.95rem; min-height: 2.5rem; }
.btn--quiet { font-size: 0.88rem; }
.chips { gap: 0.5rem; }
.chip { font-size: 0.87rem; padding: 0.5rem 0.85rem; min-height: 2.55rem; }

/* ---------------- practice stages ----------------
   The exercises are the reason the page exists, so they get the most room on
   it: a taller stage, larger prompts, and answers you can hit without aiming. */

.stage { min-height: 14rem; gap: 0.75rem; padding: 1.3rem 1.1rem; }
.stage-title { font-size: 1.16rem; line-height: 1.4; }
.stage-note { font-size: 0.91rem; line-height: 1.6; max-width: 24rem; }
.stage-emoji { font-size: 2.2rem; }
.stage-caption { font-size: 0.8rem; letter-spacing: 0.14em; }
.stage-actions { gap: 0.6rem; }
.urge { font-size: 0.82rem; padding: 0.45rem 0.75rem; }
.quiet { font-size: 0.87rem; padding: 0.4rem; }
.pips { gap: 0.35rem; }
.pips span { width: 1.35rem; height: 0.4rem; }
.bubble-row { padding-top: 0.3rem; }
.bubble-thought { font-size: 0.99rem; line-height: 1.55; max-width: 18rem; padding: 0.85rem 1rem; }
.lens { font-size: 0.96rem; line-height: 1.58; padding: 0.85rem 1rem; }
.pair { max-width: 22rem; gap: 0.55rem; }
.pair-btn { font-size: 0.93rem; padding: 0.95rem 0.6rem; }

.workout { gap: 0.95rem; }
.workout-head { gap: 0.8rem; }
.workout-head h3 { font-size: 1.12rem; }
.workout-head p { font-size: 0.91rem; line-height: 1.55; }
.workout .glyph { width: 2.7rem; height: 2.7rem; font-size: 1.2rem; }

/* ---------------- the breathing circle ---------------- */

.orb-wrap { height: 18rem; margin-top: 0.9rem; }
.orb-glow { width: 12rem; height: 12rem; }
.orb { width: 9rem; height: 9rem; will-change: transform; }
.orb .num { font-size: 1.8rem; }
.orb-label { margin-top: 0.8rem; font-size: 1.2rem; }

/* ---------------- readings, cards, quizzes ---------------- */

.answers { gap: 0.65rem; margin-top: 1rem; }
.answer { font-size: 0.99rem; line-height: 1.5; padding: 0.95rem 1.05rem; }
.quiz-emoji { font-size: 1.9rem; }
.fit { font-size: 0.94rem; padding: 0.85rem 0.95rem; }
.fit-list { gap: 0.55rem; }
.outcome-body { font-size: 0.97rem; line-height: 1.65; }
.panel-note p:last-child { font-size: 0.93rem; line-height: 1.6; }
.bar-row { font-size: 0.85rem; }
.note { font-size: 0.94rem; line-height: 1.62; }
.list { font-size: 0.93rem; line-height: 1.62; gap: 0.4rem; }
.reflect p { font-size: 0.95rem; }
.reflect-item { font-size: 0.88rem; line-height: 1.58; }
.step { font-size: 0.94rem; line-height: 1.58; padding: 0.65rem 0.75rem; }
.topic summary { font-size: 1.01rem; padding: 0.95rem 1.05rem; }
.topic-body p { font-size: 0.94rem; }
.room-card summary { font-size: 0.99rem; }
.ex { padding: 1.15rem 1.2rem; }
.ex h3 { font-size: 1.13rem; }
.ex p { font-size: 0.91rem; line-height: 1.55; }
.lib-grid { gap: 0.85rem; }
.assess-card p { font-size: 0.92rem; }
.door p { font-size: 0.91rem; }
.door h3 { font-size: 1.13rem; }

/* Folded chapters are how the long rooms keep a short first screen; their
   labels were the smallest type on the page, which made the way in easy to
   miss. */
.chapter > summary { padding: 1.05rem 1.1rem; font-size: 0.81rem; letter-spacing: 0.1em; }
.chapter--plain > summary { font-size: 0.95rem; letter-spacing: 0; line-height: 1.5; }
.chapter-cue { font-size: 0.78rem; }

/* ---------------- sheets, settings, footer ---------------- */

.settings-row { padding: 0.85rem 0; }
.settings-row b { font-size: 0.93rem; }
.settings-row small { font-size: 0.81rem; line-height: 1.5; }
.sheet label, .instrument-label, .field label { font-size: 0.82rem; }
.sheet textarea, .instrument, .note-compose textarea { font-size: 1rem; }
.pager-link { padding: 0.85rem 1rem; }
.pager-name { font-size: 1rem; }
.foot { font-size: 0.86rem; }
.foot .fine { font-size: 0.8rem; line-height: 1.65; }
.take { font-size: 0.88rem; }
.journal-entry p { font-size: 0.93rem; line-height: 1.6; }
.thread-copy { font-size: 0.9rem; }
.post-text { font-size: 0.95rem; line-height: 1.6; }
.comment p { font-size: 0.88rem; }
.bubble { font-size: 0.92rem; }
.tone-line { font-size: 0.94rem; }
.swap-new { font-size: 1.05rem; }
.reading-block p { font-size: 0.91rem; }

/* ---------- screen readers: skip link, offscreen text, card headings ---------- */

/* The first thing a keyboard reaches, hidden until it is focused. */
.skip {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 90;
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  border: 1px solid var(--amber);
  background: var(--plum);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transform: translateY(-150%);
}
.skip:focus-visible { transform: translateY(0); outline: 2px solid var(--amber); outline-offset: 2px; }

/* Read by a screen reader, no space taken on the page. */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* privacy and terms use h2 card titles; they keep the smaller card size. */
.card h2.card-title { font-size: 1.16rem; line-height: 1.22; }
/* A section label is a heading on some pages but must still look like a label. */
.card h2.eyebrow,
h2.eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- the one-time motion note ----------

   Sits above the sound button rather than over the content it is talking
   about, and it is dismissible with plain words instead of an icon alone. */

.motion-hint {
  position: fixed;
  left: 50%;
  bottom: 4.6rem;
  z-index: 86;
  width: min(30rem, calc(100% - 1.6rem));
  padding: 0.85rem 0.95rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(14, 9, 28, 0.94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  color: var(--ink-soft, rgba(246, 241, 231, 0.82));
  font-size: 0.84rem;
  line-height: 1.5;
  transform: translate(-50%, 0.9rem);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.motion-hint.is-in { opacity: 1; transform: translate(-50%, 0); }

.motion-hint p { margin: 0 0 0.55rem; }

.motion-hint__row { display: flex; align-items: center; gap: 0.6rem; }

.motion-hint__close {
  margin-left: auto;
  padding: 0.3rem 0.2rem;
  border: 0;
  background: none;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.motion-hint__close:hover { color: var(--ink); }
