* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
}

/* Navy fallback lives on <html> only — it paints BEHIND the fixed #bg-canvas
   (z-index:-2). Keeping <body> transparent lets the animated gradient show;
   an opaque body background would paint over the negative-z-index canvas. */
html { background: var(--navy); }
body { background: transparent; }

/* ---------- Sign in / create account (js/welcome.js) ---------- */
/* Same backdrop treatment as onboarding: the app chrome hides behind it. */
body.signed-out .app-header,
body.signed-out .tab-bar,
body.signed-out .view,
body.signed-out #sync-banner { display: none; } /* the sign-in screen already says "sign in" (tools/test-sync-banner-signin.mjs) */
body.onboarding #sync-banner { display: none; } /* never over the welcome overlay's mark (re-check N8) */
.auth { z-index: 160; overflow-y: auto; align-items: safe center; }
.auth-inner { max-width: 360px; }
.auth .onb-tag { margin: 10px 0 26px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.auth-form .input { margin-bottom: 0; }
.auth-form .btn.block { margin-top: 6px; text-align: center; }
.auth-pw { position: relative; }
.auth-pw .input { padding-right: 64px; }
.auth-reveal {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 8px 10px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.auth-reveal:hover, .auth-reveal:focus-visible { color: var(--t-accent); }
.auth-error {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--danger);
}
.auth-error[hidden], .auth-note[hidden] { display: none; }
.auth-note {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.45;
  color: var(--danger);
}
.auth-note.ok { color: var(--t-accent); }
.auth-alt {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: none;
  padding: 4px 0;
  color: var(--muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  cursor: pointer;
}
.auth-alt.inline { display: inline; margin: 0; color: var(--t-accent); }
.auth-alt:hover, .auth-alt:focus-visible { color: var(--text); }
.auth-switch {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--t-border);
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--muted);
}
.auth-fine {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--dim);
  text-align: center;
}
.auth-fine a { color: var(--dim); }
/* Check your email (2026-10-29): the lead under the heading names the address. */
.auth-lead {
  margin: -10px 0 22px;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}
.auth-lead strong { color: var(--text); font-weight: 400; word-break: break-all; }

/* ---------- First-run onboarding ---------- */
/* Hide app chrome during onboarding so the live gradient canvas is the backdrop. */
body.onboarding .app-header,
body.onboarding .tab-bar,
body.onboarding .view { display: none; }

.onb {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  /* Top-anchored (UI polish 2): centred, every step's question sat at a
     different height and the screen jumped between steps. */
  align-items: flex-start;
  justify-content: center;
  padding: max(56px, 11vh) 32px 32px;
  overflow-y: auto;
}
.onb-inner {
  width: 100%;
  max-width: 360px;
  text-align: center;
  animation: onb-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes onb-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.onb-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin: 14px 0 30px;
}
.onb-q {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 27px;
  letter-spacing: 0.01em;
  margin: 0 0 6px;
  text-wrap: balance; /* no word left alone on the last line ("in?") */
}
.onb-sub { text-wrap: balance; }
.onb-sub {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 20px;
}
.onb-q + .onb-options { margin-top: 22px; }

.onb-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.onb-grid { display: grid; grid-template-columns: 1fr 1fr; }

.onb-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--t-border);
  border-radius: var(--radius);
  background: rgba(5, 8, 15, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.1s;
}
.onb-option:hover { border-color: var(--t-accent); }
.onb-option:active { transform: scale(0.98); }
.onb-option.sel {
  border-color: var(--t-accent);
  background: rgba(232, 114, 12, 0.1);
}
.onb-option-main { font-family: var(--font-serif); font-size: 19px; }
.onb-grid .onb-option { align-items: center; }
.onb-option-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.onb-dots { display: flex; gap: 7px; justify-content: center; margin-bottom: 20px; }
.onb-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hairline);
  transition: background 0.3s, width 0.3s;
}
.onb-dots span.on { background: var(--t-accent); width: 18px; border-radius: 3px; }

.onb-skip {
  display: block;
  margin: 16px auto 0;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  cursor: pointer;
}
.onb-skip:hover { color: var(--muted); }

/* "← back" on every onboarding step after welcome — same quiet voice as skip. */
.onb-back {
  display: block;
  margin: 0 0 14px;
  padding: 6px 0;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  cursor: pointer;
  text-align: left;
}
.onb-back:hover { color: var(--muted); }

.onb-rec {
  border: 1px solid var(--t-accent);
  border-radius: var(--radius);
  background: rgba(5, 8, 15, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 20px;
  margin-bottom: 22px;
  box-shadow: 0 0 44px -10px var(--t-glow);
  text-align: left;
}
.onb-rec-title { font-family: var(--font-serif); font-weight: 500; font-size: 24px; margin: 10px 0 4px; }
.onb-rec-int { font-family: var(--font-serif); font-style: italic; color: var(--muted); font-size: 15px; margin: 0 0 10px; line-height: 1.5; }

/* ---------- Animated gradient canvas + grain (brand backdrop) ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* ---------- Header ---------- */
.app-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top)) 24px 8px;
}

/* The full mark on the load screen (brand board v2): a Beau Rivage V whose
   right arm sweeps over spaced Cormorant capitals, crescent above the second A. */
.vmark {
  display: inline-flex;
  font-size: 42px;
  align-items: flex-end;
  color: var(--text);
  text-shadow: 0 0 80px rgba(232, 114, 12, 0.18);
  line-height: 1;
}
.vmark-v {
  font-family: var(--font-display);
  font-size: 2.667em;
  line-height: 0.8;
}
.vmark-rest {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1em;
  letter-spacing: 0.3em;
  /* Measured: the V's ink in the capitals' band ends ~56px past its origin;
     this left margin leaves the V-to-A gap equal to the ~13px between capitals. */
  margin: 0 -0.3em 0.02em 0.17em;
}
.vmark-moon { position: relative; }
.vmark-moon::after {
  content: '';
  position: absolute;
  left: 0.2em;
  top: -0.42em;
  width: 0.24em;
  height: 0.24em;
  border-radius: 50%;
  box-shadow: 0.06em 0.01em 0 0 var(--orange);
  filter: drop-shadow(0 0 0.08em rgba(232, 114, 12, 0.85));
}
/* Sizes are in em off .vmark, so one font-size scales the whole mark. */
.app-header .vmark { font-size: 16px; text-shadow: 0 0 60px rgba(232, 114, 12, 0.15); }
/* The wave under the wordmark. */
.brand-wave { display: block; width: 150px; height: 14px; margin: 18px auto 0; color: var(--accent-midnight, #b45a10); opacity: 0.8; }

.state-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--t-border);
  color: var(--dim);
  background: var(--card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.feedback-pill { cursor: pointer; }

/* ---------- Tester feedback (js/feedback.js) ---------- */
.fb-link {
  background: none;
  border: none;
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--t-border);
}
.fb-link:hover { color: var(--text); }
.fb-row { display: flex; justify-content: flex-end; margin-top: 8px; }
.sheet-head .sheet-fb { margin-left: auto; margin-right: 10px; }
.fb-form { display: flex; flex-direction: column; gap: 12px; }
.fb-form .fb-kinds { flex-wrap: wrap; overflow: visible; }
.fb-form .input { margin: 0; width: 100%; box-sizing: border-box; }
.fb-form textarea { resize: vertical; min-height: 110px; font: inherit; }
.fb-where { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--dim); }
.fb-where span { color: var(--text); }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fb-status:empty { display: none; }
.fb-fine { margin: 0; text-align: center; }
.fb-done { display: flex; flex-direction: column; gap: 16px; text-align: center; }
.fb-done-title { font-family: var(--font-serif); font-size: 20px; margin: 8px 0 0; }
/* Testers only (js/tester.js, 2026-11-03): the header pill, the card links and
   the pop-up buttons. My account's one link (.acct-feedback) shows to all. */
body:not(.is-tester) #feedback-btn,
body:not(.is-tester) .fb-row,
body:not(.is-tester) .tester-fb { display: none !important; }
.acct-feedback { display: flex; justify-content: center; margin: 28px 0 0; }

.view {
  padding: 8px 24px calc(var(--tab-h) + 30px);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Tab bar ---------- */
.tab-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  background: rgba(5, 8, 15, 0.92);
  border-top: 1px solid var(--t-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 50;
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
  color: var(--dim);
}

/* Drawn glyphs, not typed characters (js/app.js fills these from js/icons.js).
   The box is fixed so a tab keeps its height for the split second before the
   module runs, and `currentColor` inside the SVG is what makes .tab.active
   below warm the mark along with its label. */
.tab-icon {
  display: block;
  width: 19px;
  height: 19px;
  line-height: 1;
  opacity: 0.8;
}
.tab-icon svg { display: block; width: 100%; height: 100%; }

.tab-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.tab.active { color: var(--t-accent); }
.tab.active .tab-icon { opacity: 1; }

/* ---------- Typography ---------- */
h1.screen-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin: 10px 0 4px;
  line-height: 1.1;
}

p.screen-sub {
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.5;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 26px 0 12px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--t-border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.card.glow {
  border-color: rgba(232, 114, 12, 0.45);
  box-shadow: 0 0 44px -10px var(--t-glow);
}

.card h3 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.meta {
  font-family: var(--font-mono);
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.8;
}

.card p.screen-sub { margin-bottom: 10px; }
.card a { color: var(--t-accent); }
.card-link { text-decoration: none; color: inherit; display: block; }


/* ---------- Chips ---------- */
.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.chip:hover { border-color: var(--t-border); }
.chip.active {
  background: rgba(232, 114, 12, 0.08);
  border-color: var(--t-accent);
  color: var(--t-accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  background: transparent;
  border: 1px solid var(--t-border);
  border-radius: var(--radius);
  padding: 10px 22px;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: var(--t-accent);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 44px;
  font-weight: 500;
}
.btn:hover { background: rgba(232, 114, 12, 0.08); color: var(--orange-warm); }
.btn.block { display: flex; width: 100%; }

.btn.ghost {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  border-color: var(--hairline);
  padding: 12px 18px;
  font-weight: 400;
  line-height: 1.3;
}
.btn.ghost:hover { border-color: var(--t-border); color: var(--text); background: transparent; }

.btn.small { padding: 8px 14px; font-size: 16px; min-height: 36px; }
.btn.ghost.small { padding: 8px 14px; font-size: 10px; min-height: 36px; }
.btn[disabled] { opacity: 0.35; cursor: default; }

/* ---------- Inputs ---------- */
.input, select.input, textarea.input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--t-border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 13px 16px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  outline: none;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.input::placeholder { color: var(--dim); }
.input:focus { border-color: rgba(232, 114, 12, 0.45); }
select.input { font-style: normal; }

/* ---------- Small elements ---------- */
.badge-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius);
  border: 1px solid var(--t-border);
  color: var(--t-accent);
  margin: 0 6px 6px 0;
}

/* Dashed neutral tag marking a simulated/preview surface — distinct from the
   orange .badge-tag so a demo label never looks like a product feature. */
.demo-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius);
  border: 1px dashed var(--hairline);
  color: var(--dim);
  vertical-align: middle;
  margin-left: 8px;
}

/* Library sort dropdown — compact, sits between the filter chips and the list.
   select.sort-select so it out-specifies the select.input base rule above. */
select.sort-select {
  width: auto;
  min-width: 0;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 2px 0 14px;
  cursor: pointer;
}
select.sort-select:focus { color: var(--text); }

/* Recommendation tiers (Library) — Low / Medium / Highly recommended,
   scored from goals + today's state + cycle phase + Oura biometrics. */
.rec-tier {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  color: var(--dim);
  margin-top: 8px;
}
.rec-tier.rec-high {
  border-color: rgba(232, 114, 12, 0.5);
  color: var(--t-accent);
  background: rgba(232, 114, 12, 0.08);
}
.rec-tier.rec-medium { border-color: var(--t-border); color: var(--text); }
/* "Not for today" — an item today's read argues against, not merely a weak
   match. Recessive on purpose: this is guidance, not a warning. */
.rec-tier.rec-avoid { border-style: dashed; opacity: 0.7; }

.rec-card .rec-benefit {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  margin: 8px 0 14px;
}
.rec-card .rec-row { display: flex; align-items: baseline; gap: 8px; }
.rec-card .rec-row .rec-tier { margin-top: 0; }
.rec-card .rec-reasons {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.6;
}

/* Marker-cluster bubbles — brand-dark circles with a mono count. */
.somare-cluster {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(19, 26, 48, 0.92);
  border: 1.5px solid #8a93a6;
  color: #e8e2d6;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

/* Recaps ("Your story") — weekly/monthly/quarterly + the annual Wrapped. */
.recap-hero { text-align: center; }
.recap-hero.wrapped {
  background: linear-gradient(180deg, rgba(5, 7, 15, 0.5), rgba(192, 90, 30, 0.22));
  border-color: rgba(232, 114, 12, 0.4);
}
.recap-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--text);
  margin: 4px 0 6px;
}
.recap-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.recap-num {
  font-family: var(--font-serif);
  font-size: 34px;
  color: var(--t-accent);
  line-height: 1.1;
}
.recap-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 4px;
}
.recap-rows { margin-top: 12px; }
.recap-row .recap-value {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--text);
  margin-top: 4px;
}

/* Practice of the day (cycle + Oura aware) */
/* A headline, not a caption. This card is the answer the screen was built to
   give, and a 9px mono label over it announced it in the same voice the app
   uses for footnotes. */
.today-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 4px;
}
.today-rec .today-msg {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  margin: 6px 0 12px;
}
.today-rec h3 { color: var(--t-accent); }
.today-signals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.today-signals span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
  padding: 3px 8px;
}

/* ---------- Claude connector + the context it writes in ---------- */

/* The pairing URL carries the key, so it's shown in full and monospaced —
   breaking anywhere rather than truncating, since a half-copied URL fails in a
   way that looks like the connector is broken. */
.connector-url {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--dim);
  word-break: break-all;
  user-select: all;
}
.connector-url:focus-visible { outline: 1px solid var(--t-accent); color: var(--text); }

.ctx-list { display: flex; flex-direction: column; gap: 12px; }
.ctx-row { display: flex; align-items: flex-start; gap: 10px; }
.ctx-row + .ctx-row { border-top: 1px solid var(--hairline); padding-top: 12px; }
.ctx-body { flex: 1; min-width: 0; }
.ctx-theme { font-family: var(--font-display); font-size: 15px; color: var(--text); }
.ctx-summary { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.ctx-remove {
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: none;
  color: var(--dim);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.ctx-remove:hover, .ctx-remove:focus-visible { color: var(--t-accent); border-color: var(--t-accent); }
.ctx-remove:disabled { opacity: 0.4; cursor: default; }

.cyc-field { display: block; }
.cyc-field .meta { display: block; margin-bottom: 6px; }
.cyc-field input[type="date"] { color-scheme: dark; }

/* Inline cycle calendar — opens on the current month so the year is never typed. */
.cyc-label { display: block; margin-bottom: 10px; }
.cyc-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cyc-arrow {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.cyc-arrow:disabled { opacity: 0.25; cursor: default; }
.cyc-month {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.cyc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cyc-dow {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-align: center;
}
.cyc-days { margin-top: 4px; }
.cyc-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.cyc-day.pad { cursor: default; }
.cyc-day.future { color: var(--dim); opacity: 0.5; cursor: default; }
.cyc-day.is-today { border-color: var(--t-border); }
.cyc-day.in-period { background: color-mix(in srgb, var(--t-accent) 22%, transparent); }
.cyc-day.predicted { border-style: dashed; border-color: color-mix(in srgb, var(--t-accent) 45%, transparent); }
.cyc-day.is-start {
  background: var(--t-accent);
  border-color: var(--t-accent);
  color: var(--navy);
  font-weight: 600;
}
.cyc-quick { margin-top: 14px; }
.cyc-len { margin-top: 18px; }
.cyc-stepper { display: flex; align-items: center; gap: 12px; }
.cyc-stepper b { font-size: 17px; font-weight: 500; min-width: 74px; }
.cyc-stepper b span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--dim); margin-left: 4px; }
.cyc-step {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.cyc-step:disabled { opacity: 0.25; cursor: default; }
.cyc-next { color: var(--dim); }

.cyc-phase {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-accent);
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}

.oura-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  cursor: pointer;
}
.oura-consent input { margin-top: 3px; flex-shrink: 0; accent-color: var(--t-accent); }
.oura-error { color: var(--danger); margin: 12px 0 0; }

.demo-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  border-left: 2px solid var(--t-border);
  padding: 6px 0 6px 10px;
  margin: 0 0 12px;
  line-height: 1.7;
}

.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.fav-btn {
  background: none;
  border: none;
  font-size: 19px;
  cursor: pointer;
  color: var(--dim);
  padding: 0;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -10px -10px -10px 0;
  line-height: 1;
}
.fav-btn.saved { color: var(--t-accent); }

.back-link {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  margin: -6px 0 4px;
  align-items: center;
  min-height: 44px;
  padding-right: 12px;
}
.back-link:hover { color: var(--muted); }

.empty {
  text-align: center;
  font-style: italic;
  font-weight: 300;
  color: var(--dim);
  padding: 36px 12px;
  font-size: 16px;
  letter-spacing: 0.04em;
}

/* ---------- Segmented control (Saved | Bookings) ---------- */
.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--t-border);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 18px;
}
.seg button {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 11px;
  border: none;
  border-radius: calc(var(--radius) - 3px);
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.seg button.on { background: color-mix(in srgb, var(--t-accent) 20%, transparent); color: var(--text); }

/* ---------- Saved items + lists ---------- */
.saved-item { display: flex; align-items: center; gap: 10px; }
/* Keep the title white like other cards (.card a would otherwise tint it orange). */
.saved-item .card-link h3 { margin: 0 0 2px; color: var(--text); }
.saved-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }

/* Modal sheet */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(3, 5, 10, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet {
  width: 100%;
  max-width: 460px;
  background: var(--t-bg-2);
  border: 1px solid var(--t-border);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 18px 20px calc(24px + env(safe-area-inset-bottom));
  max-height: 80vh;
  overflow-y: auto;
  animation: sheet-up 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes sheet-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 640px) {
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: var(--radius); }
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-title { font-family: var(--font-serif); font-size: 21px; }
.sheet-x { background: none; border: none; color: var(--dim); font-size: 16px; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -10px -12px -10px 0; }

.list-picker { display: flex; flex-direction: column; gap: 8px; }
.list-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 16px;
  cursor: pointer;
}
.list-toggle.on { border-color: var(--t-accent); }
.list-check { color: var(--t-accent); font-size: 15px; }
.list-empty { color: var(--dim); font-style: italic; padding: 4px 0 8px; }
.list-new { display: flex; gap: 8px; margin-top: 8px; }

/* List color-coding */
.list-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sw, var(--t-accent));
  flex-shrink: 0;
  box-shadow: 0 0 8px -1px var(--sw, var(--t-accent));
}
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sw);
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}
.swatch.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--t-bg-2), 0 0 12px -2px var(--sw); }
.swatch-custom {
  background: conic-gradient(from 0deg, #ff8c42, #4fd1c5, #a78bfa, #fb7185, #fbbf24, #60a5fa, #ff8c42);
  overflow: hidden;
  display: flex;
}
.swatch-custom input { opacity: 0; width: 100%; height: 100%; cursor: pointer; border: none; }

.geo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}
/* The places you've practiced (js/screens/map.js). Sentences here are read,
   not scanned, so they are set in the serif rather than the mono .meta. */
.place-help {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 12px;
}
.place-help.place-msg:empty { display: none; }
.place-empty p { margin: 0 0 14px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.place-flag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius);
  border: 1px dashed var(--hairline);
  color: var(--dim);
  margin-top: 8px;
}
.place-services { text-transform: none; letter-spacing: 0.06em; }
.place-away { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.place-away .meta { margin-right: 4px; }
.place-unlocated .section-label { margin-top: 0; }
.place-unlocated-row, .place-visit {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
  color: var(--text);
  text-decoration: none;
}
.section-label + .place-unlocated-row, .section-label + .place-visit { border-top: none; }
.place-unlocated-row .meta, .place-visit .meta { flex-shrink: 0; }
.place-where .input { margin-top: 2px; }

/* Upcoming classes at a partner studio (js/class-schedule.js) */
.class-day {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 2px;
}
.section-label + .class-day { margin-top: 4px; }
.class-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
}
.class-day + .class-slot { border-top: none; }
.class-time { flex: 0 0 64px; font-variant-numeric: tabular-nums; color: var(--text); }
.class-what { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.class-name { color: var(--text); overflow-wrap: anywhere; }
.class-book { flex-shrink: 0; }
.class-note { margin: 12px 0 0; }
.class-credit { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- Map ---------- */
.map-canvas {
  position: relative;
  /* Contain Leaflet's internal panes (z-index 200–600) in their own stacking
     context so they can't paint over the fixed tab bar (z-index 50). */
  isolation: isolate;
  z-index: 0;
  height: 380px;
  border-radius: var(--radius);
  border: 1px solid var(--t-border);
  background: var(--t-bg-2);
  overflow: hidden;
  margin-bottom: 12px;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--t-accent);
  line-height: 1;
}
.map-pin .pin-label {
  display: none;
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  background: var(--navy);
  border: 1px solid var(--t-border);
  padding: 4px 8px;
  border-radius: var(--radius);
  color: var(--text);
}
.map-pin:hover .pin-label, .map-pin:focus .pin-label { display: block; }

/* Leaflet dark-theme overrides */
/* !important for the same reason as .leaflet-bar below: leaflet.css loads after
   this file and its #ddd shows through the sub-pixel seams between tiles. */
.leaflet-container { background: var(--t-bg-2) !important; font: inherit; }
/* OpenStreetMap's own tiles are drawn light. Until the map has a CARTO key
   (js/screens/map.js), they are inverted and muted to sit in the midnight
   theme, with water and parks kept dark rather than turned neon. */
.tiles-darkened { filter: invert(1) hue-rotate(180deg) brightness(0.78) contrast(0.95) saturate(0.3); }
.leaflet-tooltip {
  background: var(--navy);
  border: 1px solid var(--t-border);
  color: var(--text);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.leaflet-tooltip-top::before { border-top-color: var(--t-border); }
.leaflet-control-attribution {
  background: rgba(5, 8, 15, 0.7) !important;
  color: var(--dim) !important;
  font-family: var(--font-mono);
  font-size: 10px !important;
}
.leaflet-control-attribution a { color: var(--muted) !important; }
/* !important needed: Leaflet's stylesheet is injected after ours */
.leaflet-bar a {
  background: var(--navy) !important;
  color: var(--text) !important;
  border-bottom-color: var(--hairline) !important;
}

/* ---------- Practice player ---------- */
.player {
  display: flex;
  align-items: center;
  gap: 16px;
}
.player-toggle {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--t-accent);
  background: rgba(232, 114, 12, 0.08);
  color: var(--t-accent);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.player-toggle:hover { background: rgba(232, 114, 12, 0.16); }
.player-toggle:active { transform: scale(0.95); }
.player-body { flex: 1; min-width: 0; }
.player-track {
  height: 3px;
  border-radius: 999px;
  background: var(--hairline);
  overflow: hidden;
}
.player-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--t-accent), var(--orange-warm));
  transition: width 0.25s linear;
}
.player-time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}
.player-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: right;
}

/* ---------- Breath pacer ----------
   The orb is a transformed div, never a canvas: resizing a canvas wipes it
   (see js/bg.js). js/player.js sets its scale every frame from the one clock,
   so there are no CSS transitions here to fall out of step with the audio.
   At its largest (1.08) the orb stays inside the stage, which is what keeps it
   from pushing the page sideways on a phone. */
.player-wrap.is-pacer .player-track { display: none; }
.pacer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2px 0 16px;
}
.pacer-stage {
  position: relative;
  width: min(100%, 260px);
  aspect-ratio: 1;
}
.pacer-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.pacer-ring circle { fill: none; stroke-width: 0.8; }
.pacer-ring-track { stroke: var(--hairline); }
.pacer-ring-fill { stroke: var(--t-accent); stroke-linecap: round; }
.pacer-orb {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  transform: scale(0.55);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  background: radial-gradient(circle, var(--t-accent) 0%, var(--t-accent) 30%, transparent 70%);
  background: radial-gradient(circle,
    color-mix(in srgb, var(--t-accent) 60%, var(--text)) 0%,
    var(--t-accent) 30%,
    color-mix(in srgb, var(--t-accent) 55%, transparent) 50%,
    color-mix(in srgb, var(--t-accent) 16%, transparent) 64%,
    transparent 72%);
}
/* The glow, and the shimmer on a held breath: brightness only, never size. */
.pacer-orb-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0.8;
  background: radial-gradient(circle, color-mix(in srgb, var(--t-accent) 26%, transparent) 0%, transparent 100%);
}
.pacer-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.3;
  color: var(--text);
  text-align: center;
  min-height: 1.3em;
  margin-top: 8px;
}
.pacer-count {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-height: 1.4em;
  margin-top: 2px;
}
.pacer-options { margin: 0 0 12px; }
.player-opt-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}
/* Wraps rather than scrolling sideways like other chip rows: there are only
   four, and at 390px the last one was half hidden behind the card's edge. */
.pacer-tones { padding-top: 6px; flex-wrap: wrap; overflow: visible; }
.pacer-opt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pacer-side { display: flex; align-items: center; gap: 8px; }
.pacer-step {
  min-width: 44px;
  min-height: 44px;
  font-size: 14px;
  letter-spacing: 0;
}
.pacer-side-val {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  min-width: 4ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.player-wrap .chip[disabled] { opacity: 0.35; cursor: default; }

/* ---------- Session length slider (1 to 20 min) ----------
   The thumb's box is 44px, the touch-target floor, and draws an 18px dot with a
   faint halo inside it, so it is easy to catch with a thumb without looking
   heavy. --fill is set from js/player.js to colour the chosen part of the track. */
.dur { margin: 0 0 10px; }
.dur-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.dur-val {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.dur-range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.dur-range:focus { outline: none; }
.dur-range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--t-accent) var(--fill, 0%), var(--hairline) var(--fill, 0%));
}
.dur-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 44px;
  margin-top: -20.5px;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle, var(--t-accent) 0 8px, var(--t-glow) 9px 20px, transparent 21px);
}
.dur-range::-moz-range-track { height: 3px; border-radius: 999px; background: var(--hairline); }
.dur-range::-moz-range-progress { height: 3px; border-radius: 999px; background: var(--t-accent); }
.dur-range::-moz-range-thumb {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle, var(--t-accent) 0 8px, var(--t-glow) 9px 20px, transparent 21px);
}
.dur-range:focus-visible::-webkit-slider-thumb { box-shadow: inset 0 0 0 1px var(--t-accent); }
.dur-range:focus-visible::-moz-range-thumb { box-shadow: inset 0 0 0 1px var(--t-accent); }
.dur-range:disabled { opacity: 0.4; cursor: default; }

/* ---------- Partner embed (js/providers/embed.js) ----------
   A responsive 16:9 frame in the brand's radius and border. The refusal
   message sits in the same box, so a session that will not load keeps its
   place on the page instead of collapsing it. */
.embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--t-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
}
.embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* .btn.block sets display, which beats the `hidden` attribute's UA default, so
   "Log completion" showed in postMessage mode with hidden set. */
.embed-wrap .btn[hidden] { display: none; }
.embed-frame .empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 16px;
  text-align: center;
}
.source-credit {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin: -4px 0 10px;
}

/* ---------- Progress ---------- */

/* Section label sharing its line with the ⓘ rules trigger */
.points-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.info-btn {
  background: none;
  border: none;
  color: var(--dim);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 2px;
  flex: 0 0 auto;
  transition: color 0.2s;
}
.info-btn:hover { color: var(--t-accent); }

/* Post-session journal */
.jl-prompt { margin-top: 14px; }
.jl-q { font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--text); margin-bottom: 10px; }
.jl-moods, .jl-tags { padding-bottom: 8px; }
.jl-note { font-style: italic; }
.block { display: block; width: 100%; text-align: center; }

/* What you did leads the card, above how it felt: 15% larger than the mood tag
   and carrying the accent, so the eye lands on the session first. */
.jl-entry-title {
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 500;
}
.jl-entry-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.jl-entry-title a:hover,
.jl-entry-title a:focus-visible { border-bottom-color: currentColor; }
.jl-title-ext { margin-left: 5px; font-size: 0.9em; opacity: 0.75; }
/* The ↗ is decorative, so the destination is spoken instead. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* Verdict chip plus its quiet label — "Recovery impact". */
.jl-impact { display: flex; align-items: baseline; gap: 8px; }
.jl-impact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}
/* Semantic, but not moralising: a hard session isn't an error, so negative gets
   a warm caution rather than a red alarm. */
/* Scoped to .jl-entry to beat `.jl-entry .jl-mood-tag` — same specificity as a
   bare `.jl-mood-tag[...]`, and that rule is declared later, so it would win. */
.jl-entry .jl-mood-tag[data-impact="positive"] { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
/* Amber, not red. --danger is for things that went wrong; a session that left
   the body activated is a cost, sometimes a chosen one. The tag should read as
   information, not as the app telling you off. */
.jl-entry .jl-mood-tag[data-impact="negative"] { color: #c98a3c; border-color: color-mix(in srgb, #c98a3c 45%, transparent); }
.jl-entry .jl-mood-tag[data-impact="neutral"],
.jl-entry .jl-mood-tag[data-impact="pending"],
.jl-entry .jl-mood-tag[data-impact="unclear"]  { color: var(--muted); border-color: var(--hairline); }

/* The mood sits with the feelings now: both are what the user chose. */
.jl-feels .jl-feel-mood { color: var(--text); border-color: var(--t-border); }
.jl-entry .jl-mood-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t-accent);
  border: 1px solid var(--t-border);
  border-radius: var(--radius);
  padding: 4px 10px;
}
/* Daily status rows are recorded readings, not something the user wrote —
   quieter than a session check-in so the written entries stay the focus. */
/* Timeline day heading — the journal leads with the date, so individual cards
   no longer repeat it. */
.jl-day {
  margin: 26px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
}
.jl-day:first-of-type { margin-top: 18px; }
.jl-day-top { display: flex; align-items: baseline; gap: 10px; }
.jl-day-date {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--text);
}
.jl-day-rel {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t-accent);
}
/* Cycle phase + arrival state — her own inputs, framing the day from the
   heading rather than sitting under the ring's label. */
.jl-day-frame {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.jl-day-phase {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
}
.jl-day-state {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
  padding: 3px 8px;
}
/* What she wrote at check-in. Quoted and set in the serif, the same treatment a
   session note gets, because it is the same kind of thing said about a day
   rather than about a practice. */
.jl-day-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
  margin: 8px 0 0;
}

/* The Oura log — the ring's own summary for the day. It writes itself daily,
   so it stays collapsed and quiet: the written check-ins are the content. */
.jl-oura { padding-top: 12px; padding-bottom: 12px; }
.jl-oura-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.jl-oura-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
}
.jl-oura-more {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.jl-oura-chev {
  font-size: 13px;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.jl-oura.open .jl-oura-chev { transform: rotate(180deg); }
.jl-oura.open .jl-oura-more { visibility: hidden; }
.jl-oura .today-signals { margin-top: 8px; }
.jl-oura-group + .jl-oura-group { margin-top: 12px; }
.jl-oura-group-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--t-accent);
}
/* "How your body answers your days" — one block per kind of day. */
.jl-patterns { border-color: var(--t-border); }

/* The summary stacks three distinct reads (capacity, patterns, first look) in
   one card. At the shared 9px .section-label size they read as one continuous
   wall, so inside this card the section headers step up and take real space
   above them — the size difference is what separates the sections. */
.jl-patterns .section-label,
.jl-first-look .section-label {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--text);
  opacity: 0.92;
  margin: 30px 0 12px;
}
.jl-patterns > .section-label:first-child,
.jl-patterns .jl-cap .section-label { margin-top: 0; }
.jl-first-look .section-label { margin-top: 26px; }
/* A hairline under each header so the eye catches the boundary before reading. */
.jl-patterns .section-label,
.jl-first-look .section-label {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}
.jl-patterns .jl-cap .section-label { border-bottom: 0; padding-bottom: 0; }
.jl-pat-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 4px;
}
.jl-pat {
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.jl-pat:last-child { border-bottom: 0; padding-bottom: 4px; }
.jl-pat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.jl-pat-name {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text);
}
.jl-pat-n {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t-accent);
  flex-shrink: 0;
}
.jl-pat-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 3px;
}
.jl-pat-line {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  margin: 8px 0 0;
}
/* "What Vamav knows" — every tag steering recommendations, in one place. */
.know-group { margin-bottom: 16px; }
.know-kind {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--t-accent);
  margin-bottom: 8px;
}
.know-tag {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--hairline);
}
.know-tag:last-child { border-bottom: 0; }
.know-val { font-family: var(--font-serif); font-size: 15px; color: var(--text); flex-shrink: 0; }
.know-src {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-left: auto;
  text-align: right;
}
.know-del {
  background: none; border: 0; cursor: pointer; padding: 0 0 0 4px;
  font-size: 16px; line-height: 1; color: var(--muted); flex-shrink: 0;
}
.know-del:hover { color: var(--t-accent); }
.know-empty, .know-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.know-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.know-add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.know-add .know-kind-sel { flex: 1 1 100%; margin-bottom: 0; }
.know-add .know-input { flex: 1 1 60%; margin-bottom: 0; }
.know-add .know-add-btn { flex: 0 0 auto; }
/* The lapse prompt — asked before a caution quietly stops counting. */
.know-review {
  padding: 12px;
  margin-bottom: 16px;
  border: 1px dashed var(--t-border);
  border-radius: var(--radius);
}
.know-review-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 8px;
  font-family: var(--font-serif); font-size: 15px; color: var(--text);
}
.know-yes, .know-no {
  background: none; border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 4px 9px; margin-left: 6px; cursor: pointer;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.know-yes:hover { color: var(--t-accent); border-color: var(--t-border); }

/* Uploaded documents — what was read, what it produced, and how to remove it. */
.doc-row { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.doc-row:last-of-type { border-bottom: 0; padding-bottom: 4px; }
.doc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.doc-name { font-family: var(--font-serif); font-size: 15px; color: var(--text); }
.doc-del {
  background: none;
  border: 0;
  padding: 2px 0;
  cursor: pointer;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.doc-del:hover { color: var(--t-accent); }
.doc-none { font-style: italic; margin-top: 6px; }
.doc-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
}
.doc-paste { margin-top: 14px; }
.doc-paste summary {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 0;
}
.doc-paste textarea { margin-top: 8px; }

/* Takeaways — prose at the top, the numbers behind it one tap away. */
/* The opening sentence carries the point, so it takes the weight and the
   supporting text steps back. Without the contrast the block reads as one
   undifferentiated wall and the eye has nowhere to land. */
.jl-take-p {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 18px;
}
/* Underlined rather than tinted. text-decoration is what draws under every
   wrapped line — a border-bottom would only mark the last one. The accent is
   reserved for this sentence, so nothing else in the block competes for it. */
.jl-take-lead {
  font-weight: 500;
  color: var(--t-accent);
  text-decoration: underline;
  /* Held off the baseline and drawn under the accent so it reads as a rule
     beneath the sentence, not a strike through its descenders. */
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--t-accent) 45%, transparent);
}
.jl-take-p:last-child { margin-bottom: 0; }
/* Figures in the supporting text lift out of the muted body without taking the
   accent — that belongs to the lead sentence alone. */
.jl-take-p b { color: var(--text); font-weight: 400; }
/* Same quiet affordance as the journal card's read-more, so a '+' means the
   same thing in both places. */
.jl-take-more {
  background: none;
  border: 0;
  margin-left: 7px;
  padding: 0 3px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1;
  vertical-align: baseline;
  color: var(--dim);
}
.jl-take-more:hover, .jl-take-more:focus-visible { color: var(--t-accent); }
/* An expandable section headline. The button itself carries .section-label so
   the hairline under it still spans the full width and the headline reads
   exactly as a static one does — only the '+' at the end says it opens. */
.jl-exp-head {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  /* Kill the UA button chrome without touching the border-bottom the
     .jl-patterns .section-label rule draws. */
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  text-align: left;
  cursor: pointer;
}
.jl-exp-icon {
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0; /* the headline's 0.3em tracking would shift the glyph off-centre */
  color: var(--dim);
  flex: none;
}
.jl-exp-head:hover .jl-exp-icon,
.jl-exp-head:focus-visible .jl-exp-icon { color: var(--t-accent); }
.jl-exp-body { margin-top: 4px; }

/* The dose–response ladder — the limit made checkable. */
.jl-dose-rows { list-style: none; margin: 10px 0 0; padding: 0; }
.jl-dose-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.jl-dose-band { min-width: 96px; flex-shrink: 0; }
.jl-dose-bar {
  flex: 1;
  height: 3px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
  min-width: 30px;
}
.jl-dose-bar i { display: block; height: 100%; background: var(--t-accent); opacity: 0.5; }
.jl-dose-row.over .jl-dose-bar i { background: #c85008; opacity: 0.85; }
.jl-dose-val { min-width: 52px; text-align: right; color: var(--muted); }
.jl-dose-row.over .jl-dose-val { color: var(--t-accent); }
.jl-dose-n { min-width: 26px; text-align: right; }

/* The takeaway line — set apart from the pattern's own read so it's clearly a
   comparison, not more of the same finding. */
.jl-pat-counter {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 12px 0 0;
  padding-left: 12px;
  border-left: 1px solid var(--t-border);
}
.jl-pat-more { margin-top: 12px; }
.jl-pat-thin,
.jl-pat-caveat {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 14px 0 0;
}
.jl-pat-caveat { padding-top: 12px; border-top: 1px solid var(--hairline); }

/* The nervous-system read: a score that means a percentile of this person's own
   nights, with the measured evidence under it. */
.jl-ns { padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--hairline); }
.jl-ns-row { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.jl-ns-score {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1;
  color: var(--t-accent);
  flex-shrink: 0;
  min-width: 58px;
}
.jl-ns[data-band="settled"] .jl-ns-score,
.jl-ns[data-band="deeply settled"] .jl-ns-score { color: var(--text); opacity: 0.8; }
.jl-ns-say { min-width: 0; }
.jl-ns-line {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.35;
  color: var(--text);
  margin: 0;
}
.jl-ns-scale {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 5px 0 0;
}
.jl-ns-ev { list-style: none; margin: 12px 0 0; padding: 0; }
.jl-ns-ev li {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 3px 0 3px 12px;
  position: relative;
}
.jl-ns-ev li::before { content: '·'; position: absolute; left: 2px; }
.jl-ns-wait {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 0;
}

/* Oura's rolling capacity read — standing context, never today's number. */
.jl-cap { padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--hairline); }
.jl-cap-line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 6px 0 0;
}

/* "First look" — the kinds of day tried too few times to be a pattern, shown
   day by day so someone starting something new still sees their own evidence. */
/* No top rule of its own any more: its headline carries one, and with the
   section above collapsed the two stacked into a visible double line. */
.jl-first-look { margin-top: 4px; }
.jl-first-look .section-label { margin-top: 18px; }
.jl-new { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.jl-new:last-child { border-bottom: 0; padding-bottom: 0; }
.jl-new-name {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text);
}
.jl-new-n {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  flex-shrink: 0;
}
.jl-new-list { list-style: none; margin: 8px 0 0; padding: 0; }
.jl-new-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 4px 0;
}
.jl-new-date {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 52px;
  flex-shrink: 0;
}
.jl-new-read {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.jl-new-need {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

/* The day's logged sessions — a list, not chips: they have an order (the shape
   of the day) that a wrapping chip row destroys. */
.jl-acts { list-style: none; margin: 8px 0 0; padding: 0; }
/* The row is now a block so an attribution and its form can sit under the line
   they belong to; the line itself keeps the old flex layout. */
.jl-act {
  padding: 7px 0;
  border-bottom: 1px solid var(--hairline);
}
.jl-act-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.jl-act:last-child { border-bottom: 0; padding-bottom: 0; }
.jl-act-name {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text);
}
.jl-act-name a { color: inherit; text-decoration: none; }
.jl-act-name a:hover { color: var(--t-accent); }
.jl-act-ext { color: var(--dim); font-size: 11px; }
.jl-act-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: right;
  flex-shrink: 0;
  margin-left: auto;
}
/* Same quiet ✎ as the check-in editor — attributing a session and editing a
   check-in are the same kind of act, so they get the same affordance. */
.jl-act-tag {
  background: none;
  border: 0;
  padding: 0 2px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  color: var(--dim);
  flex: none;
}
.jl-act-tag:hover, .jl-act-tag:focus-visible { color: var(--t-accent); }
.jl-act-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}
.jl-act-lead, .jl-act-where {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--muted);
}
.jl-act-lead { color: var(--t-accent); border-color: color-mix(in srgb, var(--t-accent) 34%, transparent); }
.jl-act-form { margin: 10px 0 4px; }
.jl-act-q {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}
.jl-act-leads { margin-bottom: 12px; }

.jl-entry.jl-daily { border-color: var(--hairline); }
.jl-entry .jl-day-tag { color: var(--muted); border-color: var(--hairline); }
.jl-feels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.jl-feels span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 4px 9px;
}
/* "Body's read" — the biometrics on an entry, set apart from what the user
   wrote, with a plain-language tag for how the body actually answered. */
.jl-entry-rule {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 16px 0 12px;
}
.jl-read-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px; /* kept in step with .jl-note-label */
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}
/* The disagreement between what you felt and what the ring measured. Sits
   above the body's read as a question, deliberately not styled as a warning. */
/* The subjective delta, beside the mood. Coloured by direction so a row of
   entries can be skimmed for "what actually made me feel better". */
.jl-feel-shift {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--muted);
}
.jl-feel-shift[data-shift="better"] { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 36%, transparent); }
.jl-feel-shift[data-shift="worse"] { color: #c98a3c; border-color: color-mix(in srgb, #c98a3c 36%, transparent); }
.jl-diverge {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 10px;
  padding-left: 11px;
  border-left: 2px solid color-mix(in srgb, var(--t-accent) 40%, transparent);
}
.jl-read-line {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 8px 0 0;
}
/* Sits at the end of the sentence it expands, so the affordance is where the
   eye already is rather than a labelled control underneath. */
/* The target to watch for and the comparison with your own record: short,
   factual, one line each under the conclusion. */
.jl-read-sub {
  font-family: var(--font-serif);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--dim);
  margin: 4px 0 0;
}
.jl-read-more {
  background: none;
  border: 0;
  margin-left: 7px;
  padding: 0 3px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1;
  vertical-align: baseline;
  color: var(--dim); /* matches the ✎ — both are quiet affordances, not accents */
}
.jl-read-more:hover, .jl-read-more:focus-visible { color: var(--t-accent); }
.jl-read-detail { margin-top: 10px; }
.jl-read-item { padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.jl-read-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.jl-read-item-head {
  display: block;
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}
.jl-read-item p {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* The check-in is editable after the fact, so the control lives with it. */
/* The two section labels sit back and let the title carry the accent. */
.jl-note-label {
  display: block;
  margin: 14px 0 8px;
  font-family: var(--font-mono);
  font-size: 10px; /* 20% up from 8px, matched by .jl-read-label */
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}
.jl-edit-q {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 10px;
}
.jl-edit-moods, .jl-edit-tags { padding-bottom: 8px; }
.jl-note-slot { margin-top: 4px; }
/* Label left, pencil right — the edit affordance belongs to the section, and an
   icon carries it without a line of instruction. */
.jl-note-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.jl-note-head .jl-note-label { margin-bottom: 0; }
.jl-note-edit {
  background: none;
  border: 0;
  padding: 0 0 0 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: var(--dim);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 44px;
  margin: -14px -6px -14px 0;
}
.jl-note-edit:hover,
.jl-note-edit:focus-visible { color: var(--t-accent); }
.jl-note-edit-box .jl-note-input {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  margin-bottom: 8px;
}
.jl-entry-note + .jl-note-edit { margin-top: 4px; }
.jl-entry-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--text);
  line-height: 1.5;
  margin: 0 0 2px;
}


/* "Today for you" — three pillars, collapsed to icons, one open at a time.
   Five stacked option cards was a scroll; a row of icons is a glance, and the
   drawer underneath is one tangible sentence and the way into that catalog. */
.pillars { margin: 16px 0 2px; }
.pillar { border-top: 1px solid var(--hairline); }
.pillar:last-child { border-bottom: 1px solid var(--hairline); }
.pillar-head {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 14px 2px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  /* The whole row is the hit target, so a tap must not leave the label
     selected the way a double-tap on plain text does. */
  user-select: none;
  -webkit-user-select: none;
  transition: color 0.2s;
}
/* The row hands its colour to the glyph — same currentColor rule as the
   arrival states, so the icon warms with the row in either theme. */
.pillar-head:hover, .pillar.open .pillar-head { color: var(--t-accent); }
.pillar-icon { flex: none; width: 22px; height: 22px; }
.pillar-icon svg { display: block; width: 100%; height: 100%; }
.pillar-name { flex: 1; }
.pillar-chev {
  flex: none;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  opacity: 0.65;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.28s ease;
}
.pillar.open .pillar-chev { transform: translateY(1px) rotate(-135deg); }
/* visibility (not just height) is what takes a closed drawer out of the
   accessibility tree; it flips only after the collapse finishes. */
.pillar-drawer {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: max-height 0.32s ease, opacity 0.2s ease, visibility 0s linear 0.32s;
}
.pillar.open .pillar-drawer {
  max-height: 400px;
  opacity: 1;
  visibility: visible;
  transition: max-height 0.32s ease, opacity 0.24s ease 0.06s, visibility 0s;
}
.pillar-inner { padding-bottom: 16px; }
/* The drawer's payload: what to steer by. Serif italic like `.today-msg` above
   it — the same voice, one step quieter, because the lead sentence is the read
   and this is what to do about it. */
.pillar-rec {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 16px;
}
.pillar-more {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t-accent);
  text-decoration: none;
}
.pillar-more:hover { text-decoration: underline; }
.pillar-more-hint {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--dim);
}
/* ---------- Sunset hero (Home) ----------
   Ported from the design handoff's SunsetHero.module.css. Sizes, colours and
   motion are the handoff's own. Two things differ: the sky and water fade into
   the page instead of filling a navy box (founder, 2026-09-21: the box read as
   blocky against the rest of Home), and classes carry a `sunset-` prefix
   because this sheet is global (a bare `.glow` already styles cards), and the
   palette is `--hero-*` so it cannot shadow the app's `--muted` inside it.
   Everything scales off --sun, so it works from ~320px phones to desktop. */
.sunset-hero {
  --sun: clamp(220px, 44vw, 380px);
  --depth: 0.13;               /* share of the sun below the horizon */
  /* On a screen wider than the page column the hero's light reaches past it,
     nearly to the window edges, so the sun's glow (about 2x the sun, wider
     than the 560px column) fades out on the page instead of being cut off by
     the column. 560px and 24px are .view's max-width and side padding. The
     20px held back covers a desktop scrollbar, which 100vw counts, so this
     can never cause sideways scrolling. 0 on a phone, where the column is
     already the screen. */
  --bleed: max(0px, (100vw - 560px) / 2 - 20px);
  /* The type sits exactly on the column's edge, in line with the check-in and
     every other screen's content. (The handoff's gutter was 6vw, up to 60px,
     which put the greeting 36px in from the check-in on desktop.) */
  --inset: calc(24px + var(--bleed));
  --feather: 24px;             /* the side fade; never reaches the type */

  --hero-navy: #05080f;
  --hero-cream: #f0ebe3;
  --hero-orange: #e8720c;
  --hero-ink: #2a1430;         /* text on the sun */
  --hero-ink-soft: #5b2a30;
  --hero-muted: #bfb2a3;

  /* How far the sky's glow and the water's dark reach sideways before they
     have faded into the page. Half the hero's width lands the fade exactly on
     its edges, so nothing lit meets them. A plain percentage on purpose: a
     max() here is not accepted inside the gradient's size, and a mask that
     fails to parse is dropped whole, which brings every hard edge back. */
  --glow-spread: 50%;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Out through .view's side padding (and past the column on desktop, see
     --bleed); the type is brought back in by --inset. */
  margin: 0 calc(-1 * var(--inset));
  /* No fill of its own. The handoff painted the hero navy, which laid a solid
     block over the page's moving background; the sky and water below are
     feathered layers instead, so the page shows through wherever they fade. */
  color: var(--hero-cream);
  font-family: var(--font-serif);
  /* The last of the edge: anything still lit where the hero ends fades out
     across the outer 24px and the title's top padding, where no type sits. */
  -webkit-mask-image:
    linear-gradient(90deg, transparent, #000 var(--feather), #000 calc(100% - var(--feather)), transparent),
    linear-gradient(180deg, transparent, #000 clamp(28px, 5vw, 44px));
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent, #000 var(--feather), #000 calc(100% - var(--feather)), transparent),
    linear-gradient(180deg, transparent, #000 clamp(28px, 5vw, 44px));
  mask-composite: intersect;
}

/* Sky */
.sunset-sky {
  position: relative;
  height: calc(var(--sun) * (1 - var(--depth)) + clamp(104px, 15vw, 150px));
  overflow: hidden;            /* the horizon clips the sun */
}
/* The sky, on its own layer so it can fade without fading the title or the
   sun. It only adds light, the way the page's own canvas does (js/bg.js paints
   ember and blue glows over the same navy): the handoff's navy and indigo top
   stops are transparent here, because painted over the canvas they read as a
   dark shaft down the column. The warm stops at the horizon are the handoff's,
   and the dome mask spreads them from behind the sun out to nothing. */
.sunset-sky::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(34, 31, 64, 0) 38%,
    rgba(85, 44, 70, 0.55) 66%,   /* #552c46 */
    rgba(173, 86, 62, 0.9) 87%,   /* #ad563e */
    #f19a55 100%
  );
  -webkit-mask-image: radial-gradient(ellipse var(--glow-spread) 100% at 50% 100%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse var(--glow-spread) 100% at 50% 100%, #000 35%, transparent 100%);
}

.sunset-title {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: clamp(28px, 5vw, 44px) var(--inset) 0;
  font-weight: 500;
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1.1;
  color: #f4ead9;
}

.sunset-halo,
.sunset-sun {
  position: absolute;
  left: 50%;
  border-radius: 50%;
}

.sunset-halo {
  width: calc(var(--sun) * 2.1);
  aspect-ratio: 1;
  bottom: calc(var(--sun) * (-1.05 - var(--depth) + 0.5));
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(255, 196, 128, 0.42) 0%,
    rgba(236, 128, 86, 0.2) 34%,
    rgba(160, 70, 80, 0) 68%
  );
  pointer-events: none;
}

.sunset-sun {
  width: var(--sun);
  aspect-ratio: 1;
  bottom: calc(var(--sun) * var(--depth) * -1);
  transform: translateX(-50%);
  margin: 0;
  box-sizing: border-box;
  padding-top: calc(var(--sun) * 0.24);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--sun) * 0.01);
  background: radial-gradient(
    circle at 50% 40%,
    #fff7e4 0%,
    #ffe6ae 36%,
    #fcc070 70%,
    #f2914b 100%
  );
  box-shadow:
    0 0 50px 14px rgba(255, 178, 100, 0.5),
    0 0 150px 50px rgba(240, 120, 72, 0.28);
  animation: sunset-rise 2.4s cubic-bezier(0.22, 0.8, 0.24, 1) both;
}

.sunset-count {
  font-weight: 600;
  font-size: calc(var(--sun) * 0.41);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums;
  color: var(--hero-ink);
  text-shadow: 0 1px 0 rgba(255, 244, 220, 0.55);
}

/* Welcome in place of a zero (js/sunset-hero.js, UI polish 2). */
.sunset-sun-welcome { padding-top: calc(var(--sun) * 0.33); }
.sunset-sun-welcome .sunset-count {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: calc(var(--sun) * 0.2);
  letter-spacing: 0;
}

.sunset-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(10px, calc(var(--sun) * 0.037), 14px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--hero-ink-soft);
}

/* Horizon + water */
.sunset-horizon {
  position: relative;
  z-index: 1;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(
    90deg,
    rgba(255, 214, 150, 0) 0%,
    rgba(255, 214, 150, 0.5) 25%,
    rgba(255, 236, 196, 0.95) 50%,
    rgba(255, 214, 150, 0.5) 75%,
    rgba(255, 214, 150, 0) 100%
  );
}

.sunset-water {
  position: relative;
  /* Bottom padding was 32-48px, sized for the metric chips that used to close
     the hero. With those gone (2026-09-23) it left a hole above the check-in. */
  padding: clamp(22px, 3.5vw, 30px) var(--inset) clamp(12px, 2vw, 18px);
}
/* The water mirrors the sky: darkest right under the horizon, which is what
   makes the line read, then gone within a couple of hundred pixels, so the
   greeting and the check-in below sit on the same page as the rest of Home.
   The type keeps its own shadow for contrast where the water has faded. */
.sunset-water::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #34202c 0, rgba(23, 18, 28, 0.8) 60px, rgba(12, 11, 20, 0) 220px);
  -webkit-mask-image: radial-gradient(ellipse var(--glow-spread) 100% at 50% 0%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse var(--glow-spread) 100% at 50% 0%, #000 35%, transparent 100%);
}

.sunset-water::before {        /* warm bloom just under the horizon */
  content: '';
  position: absolute;
  left: 50%;
  top: -30px;
  width: min(600px, 90%);
  height: 120px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 176, 104, 0.3) 0%, rgba(255, 150, 90, 0) 70%);
  pointer-events: none;
}

.sunset-reflection {
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  pointer-events: none;
}

.sunset-reflection span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: rgb(255, 200, 128);
  animation: sunset-shimmer 6s ease-in-out infinite alternate;
}
.sunset-reflection span:nth-child(1) { width: calc(var(--sun) * 0.79); height: 3px; opacity: 0.42; }
.sunset-reflection span:nth-child(2) { width: calc(var(--sun) * 0.62); height: 3px; opacity: 0.3; animation-delay: -1s; }
.sunset-reflection span:nth-child(3) { width: calc(var(--sun) * 0.7);  opacity: 0.22; animation-delay: -2s; }
.sunset-reflection span:nth-child(4) { width: calc(var(--sun) * 0.46); opacity: 0.16; animation-delay: -3s; }
.sunset-reflection span:nth-child(5) { width: calc(var(--sun) * 0.55); opacity: 0.11; animation-delay: -4s; }
.sunset-reflection span:nth-child(6) { width: calc(var(--sun) * 0.3);  opacity: 0.08; animation-delay: -5s; }
.sunset-reflection span:nth-child(7) { width: calc(var(--sun) * 0.4);  opacity: 0.05; animation-delay: -2.5s; }

/* Copy */
.sunset-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 18px);
  max-width: 820px;
}

.sunset-greeting {
  margin: 0;
  font-size: clamp(22px, 3.6vw, 31px);
  line-height: 1.5;
  color: #f5ecdf;
  text-shadow: 0 1px 12px rgba(5, 8, 15, 0.85);
  text-wrap: pretty;
}

.sunset-subline {
  margin: 0;
  font-size: clamp(17px, 2.4vw, 21px);
  font-style: italic;
  color: var(--hero-muted);
}


.sunset-glow { color: #ffc98a; }   /* highlighted word in the greeting */

.sunset-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.4vw, 12.5px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ab9e90;
}

.sunset-tags li {
  padding: 6px 12px;
  border: 1px solid rgba(240, 235, 227, 0.16);
  border-radius: 3px;
}

@keyframes sunset-rise {
  from { transform: translate(-50%, 14%); opacity: 0.6; }
  to   { transform: translate(-50%, 0);   opacity: 1; }
}

@keyframes sunset-shimmer {
  from { transform: scaleX(0.92); }
  to   { transform: scaleX(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .sunset-sun,
  .sunset-reflection span { animation: none; }
}

/* The check-in, under the hero. Keeps the space the old read card left above
   "Today for you". */
.read-checkin { margin: 0 0 18px; }

/* "How are you arriving?" — the answer to the read above it. The rule that used
   to divide the two is gone with the card: the question's own heading marks
   where the read stops and the check-in starts, and a line as well drew the
   seam twice. */
.arrival { margin-top: 12px; }
/* A section title, sized to match "Today for you" below it (founder
   2026-09-23): the check-in is its own section, and at 21px it read as a
   caption to the hero rather than a heading. It stands alone: a "Check in"
   eyebrow over it said the same thing twice. */
.arrival-q {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  margin: 0;
}


/* Five tags on one line, icon over word. They were full-width rows with a 44px
   tile each, which spent most of a phone screen asking a single question. The
   icon is the tag and the word under it is the caption, so the row is one
   glance instead of a list to read down. Softer corners than --radius, per the
   founder's mockup: this is the one place in the app you tap to say how you
   feel. */
.arrival-opts {
  display: grid;
  /* minmax(0,...) rather than a bare 1fr: 1fr floors at the content width, so
     the Overwhelmed tag grew past its share and left the row uneven. */
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin-top: 12px;
}
.arrival-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  /* Almost no side padding: the longest state name (Overwhelmed) has to clear
     a fifth of the card, and every pixel of inset comes out of its cell. */
  padding: 11px 1px 9px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: rgba(240, 235, 227, 0.02);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.arrival-opt:hover { border-color: var(--t-border); color: var(--text); }
.arrival-opt:active { transform: scale(0.97); }
.arrival-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--text);
  transition: color 0.2s;
}
.arrival-icon svg { width: 26px; height: 26px; display: block; }
.arrival-name {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1;
}
/* The ring's guess — dashed, the way .today-signals already marks a value the
   app derived rather than one the user gave it. */
.arrival-opt.sug { border-style: dashed; border-color: var(--t-accent); }
/* The user's own answer — filled, the way .chip.active marks a live selection. */
.arrival-opt.sel {
  background: rgba(232, 114, 12, 0.08);
  border-color: var(--t-accent);
  color: var(--t-accent);
}
.arrival-opt.sel .arrival-icon { color: var(--t-accent); }

/* Save sits in the field's bottom-right, the way a compose box puts its send
   there: the button belongs to the sentence it commits, not to a row of
   controls under it.
   The border moves off the textarea and onto a wrapper that holds both, so the
   two read as one box. Floating the button over the textarea instead put it in
   the path of the text: reserving the corner as padding only holds while the
   note is short, and the moment it scrolls the lines run underneath. */
.arrival-note-wrap {
  margin-top: 10px;
  background: var(--card);
  border: 1px solid var(--t-border);
  border-radius: var(--radius);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: border-color 0.2s;
}
.arrival-note-wrap:focus-within { border-color: rgba(232, 114, 12, 0.45); }
.arrival-note {
  display: block;
  width: 100%;
  min-height: 74px;
  max-height: 240px;
  padding: 13px 16px 2px;
  overflow-y: auto;
  border: none;
  background: none;
  color: var(--text);
  outline: none;
  resize: none;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.03em;
  line-height: 1.45;
}
.arrival-note::placeholder { color: var(--dim); }
.arrival-note-bar { display: flex; justify-content: flex-end; padding: 8px 9px 9px; }
.arrival-save { padding: 9px 15px; }
.arrival-save:disabled { color: var(--t-accent); border-color: var(--t-border); cursor: default; }
/* One way on from the check-in, in the accent the app already uses for a way
   through (see .pillar-more). Two greyed links side by side asked the reader to
   choose between them first, and neither looked like an invitation. */
.arrival-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--t-accent);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 2px;
  transition: color 0.2s;
}
.arrival-link:hover { color: var(--orange-warm); text-decoration: underline; }
.arrival-links { display: flex; justify-content: center; margin-top: 12px; }

/* Written for today: the composer stands down and the way in takes over. */
.arrival-done {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--t-border);
  border-radius: var(--radius);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.arrival-done[hidden] { display: none; }
.arrival-tick { color: var(--t-accent); font-size: 13px; line-height: 1; }
.arrival-done-label {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.arrival-edit {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  background: none;
  border: none;
  padding: 2px 0 2px 8px;
  cursor: pointer;
  transition: color 0.2s;
}
.arrival-edit:hover { color: var(--t-accent); }
/* Once the day is written, the way through IS the card's job — a bordered
   target rather than a 10px line she has to go looking for. */
.arrival-links.big { margin-top: 14px; }
.arrival-links.big .arrival-link {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  padding: 15px 12px;
  border: 1px solid var(--t-border);
  border-radius: var(--radius);
  background: rgba(232, 114, 12, 0.06);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.arrival-links.big .arrival-link:hover {
  background: rgba(232, 114, 12, 0.12);
  border-color: var(--t-accent);
  text-decoration: none;
}

/* Momentum */
.momentum-card h3 { margin: 0 0 6px; }

/* Rules sheet */
.rules-lead { font-family: var(--font-serif); font-style: italic; font-size: 17px; color: var(--muted); margin: 0 0 18px; }
.rule-tier { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.rule-tier > div { line-height: 1.3; }
.tier-badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: var(--radius);
  color: #14100c;
}
.tier-badge.tier-1 { background: #6ee7b7; }
.tier-badge.tier-2 { background: #fbbf24; }
.tier-badge.tier-3 { background: var(--t-accent); }
.rules-note { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 14px 0 0; }
/* Milestones. Ruled rows of equal weight made a spreadsheet of the section,
   which is the wrong register for the one place on Home that exists to say
   well done. So: no dividers between earned rows, the warm gradient the annual
   Wrapped hero uses, and the note in accent rather than grey. What is still in
   reach sits under one hairline, dimmer and a size down, so the shelf above it
   reads as the point of the card. */
.milestones {
  padding: 8px 18px 14px;
  border-color: rgba(232, 114, 12, 0.3);
}
.milestones.has-earned {
  background:
    linear-gradient(180deg, rgba(5, 7, 15, 0.5), rgba(192, 90, 30, 0.16)),
    var(--card);
  box-shadow: 0 0 44px -12px var(--t-glow);
}
.milestone {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
}
.milestone-name {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text);
  /* The serif defaults to old-style figures, which renders "10 moments" with a
     dotted 1 and a lowered 0. Same lining set the count on the card uses. */
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
.milestone-note {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t-accent);
  text-align: right;
}

/* Still to come */
.milestones-next { margin-top: 8px; }
.milestones.has-earned .milestones-next {
  margin-top: 14px;
  padding-top: 4px;
  border-top: 1px solid var(--hairline);
}
.milestones-next-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 12px 0 2px;
}
.milestones-next .milestone-name { font-size: 16px; color: var(--dim); }
.milestones-next .milestone-note { color: var(--dim); }


@media (min-width: 640px) {
}

/* ---------- Releases: the "your ring noticed something" pop-up + journal cards ---------- */
.rl-story { font-family: var(--font-serif); font-size: 17px; line-height: 1.5; color: var(--text); margin: 0 0 12px; }
.rl-trace { display: block; width: 100%; height: 96px; margin-top: 4px; overflow: visible; }
.rl-band.build { fill: rgba(232, 114, 12, 0.10); }
.rl-band.peak { fill: color-mix(in srgb, var(--danger) 18%, transparent); }
.rl-band.settle { fill: color-mix(in srgb, var(--ok) 14%, transparent); }
.rl-band-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--dim); }
.rl-calm { stroke: var(--dim); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.rl-line { fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.rl-trace-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.rl-options { display: flex; flex-direction: column; gap: 8px; }
/* The class pop-up (js/class-prompt.js): the studio fields open under the options. */
.cl-venue { margin-top: 14px; }
.cl-hint { margin: -4px 0 0; text-transform: none; letter-spacing: 0.04em; }
.rl-option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%;
  padding: 11px 14px; border: 1px solid var(--hairline); border-radius: var(--radius);
  background: transparent; color: var(--text); cursor: pointer; text-align: left;
  transition: border-color 0.2s, background 0.2s;
}
.rl-option:hover { border-color: var(--t-border); }
.rl-option.sel { border-color: var(--t-accent); background: rgba(232, 114, 12, 0.08); }
.rl-option-main { font-family: var(--font-serif); font-size: 17px; }
.rl-option-hint { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.rl-signs { flex-wrap: wrap; overflow: visible; }
.rl-sheet .rl-note, .rl-sheet .rl-when { margin-top: 12px; }
.rl-sheet .rl-when { margin-top: 0; color-scheme: dark; }
.rl-private { font-size: 12px; color: var(--dim); margin: 12px 0 0; }
.rl-error { font-size: 13px; color: var(--danger); margin: 8px 0 0; }
.jl-release { position: relative; }
.jl-release.pending { border-style: dashed; }
.jl-release.compact { padding-top: 10px; padding-bottom: 10px; }
.jl-release.compact .row { align-items: center; padding-right: 28px; }
.rl-compact { font-size: 13px; color: var(--muted); }
.rl-note-text { font-family: var(--font-serif); font-style: italic; font-size: 16px; color: var(--muted); margin: 10px 0 0; }
.jl-release .rl-edit, .jl-release.compact .jl-note-edit { position: absolute; right: 12px; bottom: 10px; }
.jl-rl-log { margin-top: 8px; margin-bottom: 14px; }
.jl-rl-time { font-size: 34px; }
.jl-rl-time span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; margin-left: 4px; color: var(--dim); }
.jl-rl-log .rl-log-it { margin-top: 12px; }
.rl-after .chip-row, .rl-sleep .chip-row, .rl-signs-slot .chip-row { flex-wrap: wrap; overflow: visible; }
/* Post-practice check-in (journalPrompt) and its edit form: the chips wrap, so
   "Great" is never cut off at the card's edge (UI polish 2). */
.chip-row.jl-moods, .chip-row.jl-shifts, .chip-row.jl-tags { flex-wrap: wrap; overflow: visible; }
.rl-care-lead { font-size: 13px; color: var(--muted); margin: 14px 0 10px; line-height: 1.5; }
.rl-pick {
  display: block; padding: 12px 14px; margin-bottom: 8px; text-decoration: none;
  border: 1px solid var(--hairline); border-radius: var(--radius); color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.rl-pick:hover { border-color: var(--t-accent); background: rgba(232, 114, 12, 0.06); }
.rl-pick-title { display: block; font-family: var(--font-serif); font-size: 17px; }
.rl-pick-why { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.rl-pick-meta { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-top: 6px; }
.jl-scan { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin: 10px 0 14px; }
.jl-scan.bad { color: var(--danger); }

/* ---------- "This device is not syncing" ---------- */
#sync-banner:empty { display: none; }
/* Same column and inset as the cards below it (.view: 560px, 24px sides;
   .rename-banner: 14px 18px), so two notices stack edge to edge (UI polish 2). */
#sync-banner { max-width: 560px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.sync-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 0; padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--danger) 12%, transparent);
}
.sync-bar-say { min-width: 0; font-size: 13px; line-height: 1.45; color: var(--text); }
.sync-bar-say strong { display: block; font-family: var(--font-serif); font-size: 16px; font-weight: 400; }
.sync-bar-say span { color: var(--muted); }
.sync-bar-do { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sync-bar-later {
  background: none; border: none; cursor: pointer; padding: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim);
}
.sync-bar-later:hover { color: var(--text); }

/* ---------- Legal footer (sign-in screen and the foot of Profile) ---------- */
.legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 14px;
  margin: 22px 0 0;
}
.legal-footer a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dim);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
}
.legal-footer a:hover { color: var(--muted); }
.oura-consent a { color: inherit; }


/* Connectors screen (2026-10-07). `.meta` and `hidden` would otherwise fight. */
.connectors-empty { margin: 4px 0 18px; }
.connectors-empty[hidden] { display: none; }
.connectors-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.connectors-head .section-label { margin-bottom: 0; }
.connectors-head + div { margin-top: 12px; }

/* "Add a connector" picker (2026-10-07) */
.picker-consent { margin: 0 0 12px; }
.picker-consent[hidden] { display: none; }
.picker-search { width: 100%; margin-bottom: 10px; }
.picker-list { max-height: 46vh; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.picker-group {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--dim); margin: 14px 0 6px;
}
.picker-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--t-border);
}
.picker-row:last-child { border-bottom: 0; }
.picker-icon { width: 30px; height: 30px; border-radius: 8px; flex: none; object-fit: cover; background: rgba(240, 235, 227, 0.08); }
.picker-icon-text { display: grid; place-items: center; font-size: 14px; color: var(--muted); }
.picker-name { flex: 1; min-width: 0; }
.picker-row .btn { flex: none; min-width: 92px; }
.picker-request { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--t-border); }
.picker-request textarea { width: 100%; margin: 8px 0; }
.picker-sent[hidden] { display: none; }

/* ---------- Map → Nature (js/screens/nature.js) ----------
   Nature pins are diamonds, so they never read as the member's own places
   (accent circles). One colour per kind, reused on the list cards. */
:root {
  --nature-park: #6ee7b7;
  --nature-trail: #fbbf24;
  --nature-beach: #60a5fa;
  --nature-daytrip: #c4b5fd;
}
.seg-toggle {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
/* map-seg, not seg: .seg is already another control's class in this file. */
.seg-toggle .map-seg {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
  padding: 8px 8px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.seg-toggle .map-seg.active { background: var(--t-accent); color: var(--navy); }
.nature-pin {
  display: block;
  width: 12px;
  height: 12px;
  margin: 3px;
  transform: rotate(45deg);
  border: 2px solid var(--navy);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85);
  background: var(--nature-park);
}
.nature-pin.nature-trail, .nature-dot.nature-trail { background: var(--nature-trail); }
.nature-pin.nature-beach, .nature-dot.nature-beach { background: var(--nature-beach); }
.nature-pin.nature-daytrip, .nature-dot.nature-daytrip { background: var(--nature-daytrip); }
.nature-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  background: var(--nature-park);
  margin-right: 4px;
}
.nature-cluster { border-color: var(--nature-park); }
.nature-card-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nature-card-tags .badge-tag { margin: 0; }
.nature-desc { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.nature-facts { display: grid; gap: 8px; margin-top: 14px; }
.nature-fact { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: baseline; font-size: 14px; }
.nature-how p { margin: 0 0 12px; font-size: 15px; line-height: 1.5; }
.nature-how .chip-row { margin-bottom: 12px; }
.nature-dir .fb-link { align-self: center; }
.nature-credit { font-size: 12px; margin-top: 8px; }
.map-picker-list { display: flex; flex-direction: column; gap: 8px; }
.map-picker-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
  box-sizing: border-box;
}
.map-picker-option:hover, .map-picker-option:focus-visible { border-color: var(--t-accent); }

/* ---------- Add to calendar (js/schedule.js) ---------- */
.sched-form { display: flex; flex-direction: column; gap: 12px; }
.sched-what { margin: 0; font-size: 17px; }
.sched-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sched-field { display: flex; flex-direction: column; gap: 4px; }
.sched-field .input { margin: 0; width: 100%; box-sizing: border-box; min-height: 44px; }
.sched-msg { margin: 0; }
.sched-field.off { opacity: 0.4; }

/* Which calendar (js/calendar-choice.js): four marks in a row, the last pick
   first and lit. 44px+ targets; at 360 wide the row still fits four (each
   ~70px), and auto-fit drops to two rows of two before anything spills. */
.cal-choice { display: flex; flex-direction: column; gap: 8px; }
.cal-choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; }
.cal-opt {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  min-height: 68px; min-width: 0; padding: 10px 4px; box-sizing: border-box;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  background: transparent; color: var(--text); text-decoration: none; cursor: pointer;
  font: inherit; transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.card a.cal-opt, .sheet a.cal-opt { color: var(--text); }
.cal-opt:hover, .cal-opt:focus-visible { border-color: var(--t-border); background: rgba(232, 114, 12, 0.06); }
.cal-opt.last { border-color: var(--t-accent); background: rgba(232, 114, 12, 0.08); }
.cal-opt .cal-mark { width: 22px; height: 22px; flex-shrink: 0; }
.cal-opt .cal-name {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.cal-opt.last .cal-name { color: var(--t-accent); }
.cal-opt.disabled, .cal-opt[disabled] { opacity: 0.4; pointer-events: none; cursor: default; }
.cal-work {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--hairline);
}
.sheet a.cal-work { color: var(--muted); }
.cal-work.last { color: var(--t-accent); }
.cal-work.disabled { opacity: 0.4; pointer-events: none; }
/* Every length visible at once: the selected one must never sit off-screen. */
.sched-form .sched-length { flex-wrap: wrap; overflow: visible; }
/* What a park is good for: picnics, waterfront, sport. */
.nature-good { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.nature-good span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nature-park);
  border: 1px solid rgba(110, 231, 183, 0.35);
  border-radius: var(--radius);
  padding: 3px 7px;
}
.nature-group { margin: 18px 0 8px; }
/* "How to get there" opens on tap (js/screens/nature.js). */
.nature-how > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 24px;
  position: relative;
  min-height: 44px;
  justify-content: center;
}
.nature-how > summary::-webkit-details-marker { display: none; }
.nature-how > summary .section-label { margin: 0; }
.nature-how > summary::after {
  content: '›';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s;
  color: var(--muted);
  font-size: 20px;
}
.nature-how[open] > summary::after { transform: translateY(-50%) rotate(90deg); }
.nature-how-sum { font-size: 15px; color: var(--text); }
.nature-how[open] .nature-how-sum { display: none; }
.nature-how-body { margin-top: 12px; }
.nature-how-link {
  color: var(--t-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--t-border);
  cursor: pointer;
}

/* What Vamav has learned (Your story): the opening sentence of each paragraph
   carries the accent, without the Takeaways underline, which there marks a
   sentence that opens. Nothing here folds away. */
.learned .jl-take-lead { text-decoration: none; }
/* The ring card's day reads (Your story): the day's name carries the accent,
   without the Takeaways underline, which there marks a sentence that opens. */
.jl-days .jl-take-lead { text-decoration: none; }
.jl-day-read { margin: 0 0 14px; line-height: 1.55; }

/* What to do (Your story, 2026-10-21): progress, then the few lines to act
   on, then the calorie chart behind them. */
.todo .jl-take-lead { text-decoration: none; }
.todo-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
}
.todo-list li { position: relative; padding-left: 18px; margin: 0 0 10px; }
.todo-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--t-accent);
}
.todo-list b { font-weight: 500; }
.todo .jl-dose { margin-top: 18px; }

/* ---------- Manual booking: length, the ring's session, where it is ---------- */
.bk-field { display: block; }
.bk-field > .meta, .bk-ring > .meta, .bk-where > .meta { display: block; margin: 0 0 6px; }
.bk-ring, .bk-where { margin: 0 0 12px; }
/* Start and finish side by side. iOS Safari draws an empty date or time box
   wider than its column and with no height, so both are pinned to the column. */
.bk-times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#add-booking-form input[type="date"], #add-booking-form input[type="time"] {
  -webkit-appearance: none; appearance: none; min-width: 0; width: 100%; min-height: 48px; text-align: left;
}
.bk-ring-list { margin-bottom: 8px; flex-wrap: wrap; overflow: visible; }
.bk-ring-list .chip { text-transform: none; letter-spacing: 0.04em; }
.bk-ring-stats .today-signals { margin: 0 0 10px; }
.bk-where-acts { justify-content: flex-start; gap: 8px; margin: 0 0 4px; }
/* .input and .btn set display, which beats the hidden attribute. */
.bk-where [hidden], .bk-ring [hidden], #add-booking-form .input[hidden], #add-booking-form .bk-field[hidden] { display: none !important; }
.bk-ask { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--hairline); }
.bk-linked .today-signals { margin: 0 0 10px; }
.bk-map {
  height: 200px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  overflow: hidden;
  margin: 0 0 10px;
}
.bk-where-link { color: inherit; text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 3px; }

/* The tour (js/tour.js): a spotlight on a real element, a card beside it. */
.tour { position: fixed; inset: 0; z-index: 170; }
.tour-spot {
  position: fixed;
  border-radius: var(--radius);
  box-shadow: 0 0 0 9999px rgba(3, 5, 10, 0.72);
  outline: 1px solid var(--t-accent);
  transition: top 0.3s ease, left 0.3s ease, width 0.3s ease, height 0.3s ease;
  pointer-events: none;
}
.tour-center .tour-spot { top: 50%; left: 50%; width: 0; height: 0; outline: none; }
.tour-card {
  position: fixed;
  left: 16px; right: 16px;
  max-width: 400px;
  margin: 0 auto;
  background: var(--t-bg-2);
  border: 1px solid var(--t-border);
  border-radius: var(--radius);
  padding: 18px 20px 16px;
}
.tour-center .tour-card { top: 50%; transform: translateY(-50%); }
.tour-in { animation: onb-rise 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; }
.tour-center .tour-in { animation: none; }
.tour-count { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); min-height: 1em; font-family: var(--font-mono); }
.tour-title { font-family: var(--font-serif); font-weight: 500; font-size: 22px; margin: 6px 0 6px; }
.tour-body { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0 0 16px; }
.tour-actions { display: flex; align-items: center; gap: 14px; }
.tour-actions .tour-next { margin-left: auto; font-size: 18px; padding: 8px 18px; }
.tour-skip, .tour-back { background: none; border: none; color: var(--dim); font-size: 14px; cursor: pointer; padding: 6px 0; }
.tour-skip:hover, .tour-back:hover { color: var(--muted); }
.tour-skip[hidden], .tour-back[hidden] { display: none; }
button.tour-replay { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
/* The tour's quiet offer at the foot of Home (js/tour.js tourOffer, UI polish 2). */
.tour-offer { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 16px; margin: 18px 0 4px; }
.tour-offer button { background: none; border: none; cursor: pointer; padding: 6px 0; font-family: var(--font-serif); font-size: 15px; }
.tour-offer-go { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--t-border); }
.tour-offer-no { color: var(--dim); }
.tour-offer button:hover { color: var(--text); }

/* The source of a wearable reading (js/source-label.js, 2026-10-30): "Oura",
   "Garmin Forerunner 265", or under interpreted output "Insights derived in
   part from ...". Plain visible text beside or beneath the title it labels,
   quiet like the other meta text, never hidden behind a tap. Brand names keep
   their own case, so no uppercase transform. */
.src-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--dim);
  font-weight: 400;
  font-style: normal;
}
span.src-label { margin-left: 8px; white-space: nowrap; vertical-align: middle; }
p.src-label, div.src-label { display: block; margin: 4px 0 0; line-height: 1.6; }
.src-derived { letter-spacing: 0.04em; }
.sunset-content .src-label { color: var(--hero-muted, var(--dim)); margin: 0; letter-spacing: 0.03em; } /* 10px since UI polish 3; tighter so Garmin's line keeps its two lines */
/* In the journal's day-card header the title stays on one line and the source
   wraps instead, so "Wearable log" never breaks in two at phone width. */
.jl-oura-label { white-space: nowrap; }
.jl-oura-head .src-label { white-space: normal; margin-left: 2px; text-align: left; }

/* "Somare is now Vamav" banner on Home (js/rename-banner.js, 2026-11-02). */
.rename-banner { position: relative; border-color: rgba(232, 114, 12, 0.45); box-shadow: 0 0 44px -14px var(--t-glow); }
.rename-banner-mark { position: absolute; top: 14px; right: 18px; color: var(--hero-orange, #e8720c); font-size: 20px; line-height: 1; }
.rename-banner h3 { padding-right: 28px; }
.rename-banner .meta { margin: 0 0 10px; }
.rename-banner-update { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--t-border); }
.rename-banner-reconnect { margin-top: 2px; }
.rename-banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rename-banner-actions .rename-banner-done { margin-top: 0; }
.rename-banner { padding-top: 14px; padding-bottom: 14px; }
/* A notice above the read (the rename banner, the Oura reconnect card) makes
   the sun smaller, so the greeting and its source line stay on the first
   screen of a 390x844 phone (2026-11-03). Garmin requires that line above the
   fold; the full-size sun returns once the notice is dismissed. */
.view > .rename-banner ~ #read-hero .sunset-hero,
.view > .reconnect-card ~ #read-hero .sunset-hero { --sun: 156px; } /* 176 until UI polish 3; the 10px text floor made the notices taller */
.rename-banner-update[hidden] { display: none; }
.rename-banner .btn.small { text-decoration: none; }
.rename-banner-done { display: block; margin-top: 14px; }

/* ---------- UI polish 3 (2026-11-03): brand and legibility pass ----------
   Brand Kit v1 as the landing page implements it: script (Beau Rivage) is the
   mark's V and ONE-WORD CTAs only (`.btn.script`); every multi-word CTA is
   Cormorant 500 (the .btn default above). No text under 10px anywhere; mono
   labels 10-11px. Every control a thumb has to hit is at least 44px in the
   direction it is hit: .btn, the heart, back links, legal links, the sheet's
   close and the tour's Skip/Back are 44px boxes (negative margins keep rows
   the height they were); a SMALL button draws 36px with a 4px hit-slop above
   and below, so a notice's actions do not push Home's read below the fold.
   The single-class rules were changed in place, not here, so nothing below
   quietly outranks a rule written earlier for one control. */

/* Inline drawn marks (js/icons.js ICON): the size and colour of the text. */
.ico { display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; flex-shrink: 0; }

.btn.script { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1; padding-bottom: 12px; }
.btn.small.script { font-size: 18px; }
/* A small button draws 36px and hits 44px: the slop is measured from the
   padding box, so 1px of border + 4px. */
.btn.small::after { content: ''; position: absolute; left: -1px; right: -1px; top: -5px; bottom: -5px; }

/* Tour: Skip and Back in the app's voice, never the browser's default face. */
.tour-skip, .tour-back {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  min-height: 44px;
  padding: 0 4px;
}
.tour-actions .tour-next.script { font-size: 22px; padding: 8px 18px 10px; }

.player-toggle .ico { vertical-align: 0; }
.jl-entry-title a { color: inherit; }

/* Add booking: the kit's pickers (serif, dark, an ember indicator). */
#add-booking-form input[type="date"],
#add-booking-form input[type="time"] {
  color-scheme: dark;
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 17px;
}
#add-booking-form input[type="date"]::-webkit-calendar-picker-indicator,
#add-booking-form input[type="time"]::-webkit-calendar-picker-indicator { opacity: 0.7; cursor: pointer; filter: invert(52%) sepia(90%) saturate(1400%) hue-rotate(358deg); }
#add-booking-form input::-webkit-datetime-edit-fields-wrapper { font-family: var(--font-serif); }

/* ---------- UI polish 5 (2026-11-03): fit after the type floor ----------
   The re-check of UI polish 3 (RECHECK.md N1-N4, #8, #10, #19, #24). */

/* N1: a booking's actions wrap inside the card. On one line, Cancel ran 26 to
   74px past it and the whole page (tab bar included) slid sideways. The row
   gap clears the small buttons' 5px hit-slop; the top margin keeps the area
   link's 44px slop clear of their slop. */
.row.bk-actions { flex-wrap: wrap; justify-content: flex-start; gap: 12px 8px; margin-top: 18px; }

/* N2: "Overwhelmed" in its fifth of the row. Tighter tracking and a 2px gap
   instead of padding the type down (never under the 10px floor); at 370px
   and narrower a little tighter again; a narrower phone hyphenates. */
.arrival-opts { gap: 2px; }
.arrival-name { letter-spacing: -0.05em; hyphens: auto; -webkit-hyphens: auto; text-align: center; overflow-wrap: anywhere; line-height: 1.1; }
@media (max-width: 370px) { .arrival-name { letter-spacing: -0.075em; } }

/* N3: rows of choices wrap (Personalization), as the journal's already do.
   A row of filters may scroll; a row of answers must show every answer. */
.chip-row.wrap { flex-wrap: wrap; overflow: visible; }

/* N4: an inline mark stays on the line with its word. */
.nowrap { white-space: nowrap; }

/* #19: a chip row that scrolls sideways fades toward the hidden chips
   (edgeFade() in js/components.js sets the classes from the scroll). */
.chip-row.fade-end {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
}
.chip-row.fade-start {
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent);
}
.chip-row.fade-start.fade-end {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}

/* #10: 44px hit areas on the small text controls, without moving the layout.
   A transparent ::after centred on the control grows it to 46px (44 plus room
   for subpixel rounding) on any axis where it is smaller (min(): never
   shrinks a control already bigger). The control is its containing block,
   inline links included. */
.arrival-link, .tour-offer button, .fb-link, .bk-where-link, .jl-entry-title a,
.jl-read-more, .jl-oura-head, .auth-alt, .info-btn { position: relative; }
.arrival-link::after, .tour-offer button::after, .fb-link::after, .bk-where-link::after,
.jl-entry-title a::after, .jl-read-more::after, .jl-oura-head::after, .auth-alt::after,
.info-btn::after, .auth-reveal::after {
  content: '';
  position: absolute;
  top: min(0px, calc(50% - 23px));
  bottom: min(0px, calc(50% - 23px));
  left: min(0px, calc(50% - 23px));
  right: min(0px, calc(50% - 23px));
}
/* Stacked sign-in links sit 44px apart so their hit areas never overlap. */
.auth-alt:not(.inline) { margin-top: 20px; }
/* The Map's zoom buttons are drawn at 46px (44 plus subpixel room): two
   stacked slops would overlap. */
.leaflet-bar a, .leaflet-touch .leaflet-bar a {
  width: 46px !important;
  height: 46px !important;
  line-height: 46px !important;
  font-size: 20px !important;
}
.info-btn .ico { width: 18px; height: 18px; vertical-align: -0.2em; }
.jl-oura-chev { display: inline-flex; }
.jl-oura-chev .ico { vertical-align: 0; }
.arrival-tick .ico, .list-check .ico { vertical-align: -0.12em; }
.fav-btn .ico { vertical-align: -0.12em; }

/* #24: Add booking's Day, Start and Finish in the kit. Native pickers stay
   (VoiceOver, the wheel), filled with today and the next hour; the field is
   navy, the value Cormorant, the label DM Mono, and focus an ember ring, the
   focused segment ember rather than the system blue. */
#add-booking-form input[type="date"], #add-booking-form input[type="time"] { background: var(--card); color: var(--text); }
#add-booking-form .input:focus, #add-booking-form .input:focus-visible {
  border-color: rgba(232, 114, 12, 0.6);
  box-shadow: 0 0 0 3px rgba(232, 114, 12, 0.22);
}
#add-booking-form input::-webkit-datetime-edit-text { color: var(--dim); }
#add-booking-form input::-webkit-datetime-edit-month-field:focus,
#add-booking-form input::-webkit-datetime-edit-day-field:focus,
#add-booking-form input::-webkit-datetime-edit-year-field:focus,
#add-booking-form input::-webkit-datetime-edit-hour-field:focus,
#add-booking-form input::-webkit-datetime-edit-minute-field:focus,
#add-booking-form input::-webkit-datetime-edit-ampm-field:focus { background: rgba(232, 114, 12, 0.28); color: var(--text); border-radius: 3px; }
.bk-field > .meta { font-family: var(--font-mono); }

/* ---------- Practitioner profiles (2026-11-11) ----------
   #/practitioner/:id (js/screens/practitioner.js) and the Practitioners rows
   at the top of the Library. Same kit as everything else: near-square
   corners, ember hairlines, Cormorant for names, DM Mono for labels. Every
   row here wraps or scrolls on purpose (UI polish 5): the page is the phone's
   width at 390, 375 and 360. */

/* Library entry: one quiet row per practitioner. */
.pp-entries .section-label { margin-top: 6px; }
.pp-entry { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; }
.pp-entry-photo {
  flex: 0 0 auto; width: 60px; height: 60px; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--t-border);
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, rgba(232, 114, 12, 0.18), rgba(5, 8, 15, 0.6));
}
.pp-entry-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.pp-entry-mono { font-family: var(--font-serif); font-size: 22px; letter-spacing: 0.06em; color: var(--text); }
.pp-entry-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pp-entry-name { font-family: var(--font-serif); font-size: 21px; font-weight: 500; line-height: 1.15; color: var(--text); }
.pp-entry-tag { font-style: italic; font-weight: 300; color: var(--muted); font-size: 15px; line-height: 1.35; }
.pp-entry-title { line-height: 1.5; margin-top: 2px; }
.pp-entry-go { flex: 0 0 auto; color: var(--t-accent); display: inline-flex; }
.pp-entry-go .ico { transform: rotate(-90deg); width: 18px; height: 18px; }

/* Photo carousel (photoCarousel in js/components.js), inside a hero frame
   (.pp-hero practitioners, .pt-hero partners): one photo per view. */
.car-track {
  display: flex; width: 100%; height: 100%; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; outline: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { box-shadow: inset 0 0 0 2px var(--t-accent); }
.car-slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.car-arrow {
  position: absolute; top: 50%; z-index: 2; width: 38px; height: 38px; margin-top: -19px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(5, 8, 15, 0.45); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.2s ease;
}
.car-arrow .ico, .car-arrow svg { width: 18px; height: 18px; }
.car-prev { left: 10px; } .car-prev svg { transform: rotate(90deg); }
.car-next { right: 10px; } .car-next svg { transform: rotate(-90deg); }
.pp-hero:hover .car-arrow:not(:disabled), .pt-hero:hover .car-arrow:not(:disabled), .car-arrow:focus-visible:not(:disabled) { opacity: 1; }
.car-arrow:disabled { pointer-events: none; }
/* Touch screens swipe; the arrows are for a mouse or trackpad. */
@media (hover: none) { .car-arrow { display: none; } }
.car-dots {
  position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2;
  display: flex; justify-content: center; gap: 2px;
}
.car-dot {
  width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.car-dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.45); transition: background 0.2s ease, transform 0.2s ease;
}
.car-dot[aria-current="true"]::before { background: #fff; transform: scale(1.15); }
.is-single > .car-arrow { display: none; }
@media (prefers-reduced-motion: reduce) { .car-track { scroll-behavior: auto; } .car-arrow, .car-dot::before { transition: none; } }
.car-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Profile */
.pp { display: block; }
.pp-hero {
  position: relative; margin-top: 4px; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--t-border);
  box-shadow: 0 0 44px -14px var(--t-glow);
  background: linear-gradient(160deg, rgba(232, 114, 12, 0.22), rgba(5, 8, 15, 0.9) 70%);
}
.pp-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block; }
/* A soft fall into the page under the photo, so the name below reads as part of it. */
.pp-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 38%;
  background: linear-gradient(to bottom, rgba(5, 8, 15, 0), rgba(5, 8, 15, 0.55));
  pointer-events: none;
}
.pp-hero.is-mono { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; }
.pp-hero.is-mono::after { display: none; }
.pp-mono { font-family: var(--font-serif); font-weight: 300; font-size: 64px; letter-spacing: 0.08em; color: var(--text); opacity: 0.9; }

.pp-head { margin-top: 18px; }
.pp-name { margin: 2px 0 6px; overflow-wrap: anywhere; }
.pp-title { margin-bottom: 6px; }
.pp-tagline { margin-bottom: 14px; font-size: 19px; }
.pp-tags { display: flex; flex-wrap: wrap; margin-bottom: 10px; }
.pp-tags .badge-tag { margin: 0 6px 6px 0; }
.pp-tags-end { margin: 22px 0 0; }
.pp-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.pp-ctas .btn { white-space: normal; }

.pp-about p { margin: 0 0 12px; font-size: 17px; line-height: 1.55; color: var(--text); }
.pp-about .pp-more p { color: var(--muted); }
.pp-more-btn { margin-top: 2px; }

.pp-content { display: flex; flex-direction: column; }
.pp-item-row { display: flex; gap: 14px; align-items: flex-start; }
.pp-cover {
  flex: 0 0 auto; width: 64px; height: 64px; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--t-border);
  display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 25%, rgba(240, 144, 10, 0.35), rgba(5, 8, 15, 0.85) 72%);
  color: var(--t-accent);
}
.pp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-cover-glyph { display: inline-flex; width: 26px; height: 26px; }
.pp-cover-glyph svg { width: 100%; height: 100%; }
.pp-cover.is-soon { opacity: 0.5; border-color: var(--hairline); color: var(--dim); }
.pp-item-body { flex: 1; min-width: 0; }
.pp-item-body h3 { overflow-wrap: anywhere; }
.pp-item-desc { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--muted); font-style: italic; font-weight: 300; }
.pp-item[data-state="soon"] h3 { color: var(--muted); }
.pp-item[data-state="soon"] { border-style: dashed; border-color: var(--hairline); }
.pp-soon { border: 1px dashed var(--hairline); padding: 1px 6px; border-radius: var(--radius); white-space: nowrap; }
.pp-listen { margin-top: 14px; }
.pp-listen[hidden] { display: none; }
.pp-listen .ico { width: 14px; height: 14px; }
.pp-item.is-open .pp-player { margin-top: 16px; }
.pp-video-wrap {
  margin-top: 14px; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--t-border); background: #000;
}
.pp-video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.pp-media-err { margin-top: 12px; }

.pp-offer + .pp-offer { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.pp-offer h3 { font-size: 19px; overflow-wrap: anywhere; }
.pp-offer p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

.pp-links { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.pp-credit a { color: var(--t-accent); text-decoration: none; border-bottom: 1px solid var(--t-border); }

/* ---------- Partners and partner hotels (2026-11-11) ----------
   Map → Partners (#/map/partners), one partner (#/map/partners/:id) and a
   partner hotel's page in Travel (#/retreats/:id with a `partner` block), all
   from js/screens/partners.js. Same layout as the practitioner profile
   (hero photo, name, about, offers, links): near-square corners, ember
   hairlines, Cormorant for names, DM Mono for labels. Every row wraps; the
   page is the phone's width at 390, 375 and 360 (UI polish 5). */

/* Five segments on the Map switch: tighter letter-spacing and padding, and
   a two-word label may break onto two lines ("Your / places") so the row
   fits at 360 without scrolling or a label spilling its segment. */
.seg-toggle { gap: 2px; padding: 3px; }
.seg-toggle .map-seg { padding: 6px 4px; letter-spacing: 0.04em; flex: 1 1 auto; min-width: 0; white-space: normal; line-height: 1.3; }

.pt-entry { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; }
.pt-entry-photo {
  flex: 0 0 auto; width: 76px; height: 76px; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--t-border);
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, rgba(232, 114, 12, 0.18), rgba(5, 8, 15, 0.6));
}
.pt-entry-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-entry-mono { font-family: var(--font-serif); font-size: 26px; color: var(--text); }
.pt-entry-body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.pt-entry-body .badge-tag { margin: 0 0 4px; }
.pt-entry-name { font-family: var(--font-serif); font-size: 21px; font-weight: 500; line-height: 1.15; color: var(--text); }
.pt-entry-offer { font-style: italic; font-weight: 300; color: var(--muted); font-size: 15px; line-height: 1.35; }
.pt-entry-go { flex: 0 0 auto; color: var(--t-accent); display: inline-flex; }
.pt-entry-go .ico { transform: rotate(-90deg); width: 18px; height: 18px; }

/* Travel list: a partner hotel's card leads with its photo. */
.pt-card { padding-top: 0; overflow: hidden; }
.pt-card-photo {
  display: block; width: calc(100% + 36px); margin: 0 -18px 14px; aspect-ratio: 16 / 9;
  object-fit: cover; border-bottom: 1px solid var(--t-border);
}

.pt { display: block; }
.pt-hero {
  position: relative; margin-top: 4px; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--t-border);
  box-shadow: 0 0 44px -14px var(--t-glow);
  background: linear-gradient(160deg, rgba(232, 114, 12, 0.22), rgba(5, 8, 15, 0.9) 70%);
}
.pt-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 38%;
  background: linear-gradient(to bottom, rgba(5, 8, 15, 0), rgba(5, 8, 15, 0.55));
  pointer-events: none;
}
.pt-hero.is-empty { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; }
.pt-hero.is-empty::after { display: none; }
.pt-mono { font-family: var(--font-serif); font-weight: 300; font-size: 64px; letter-spacing: 0.08em; color: var(--text); opacity: 0.9; }

.pt-head { margin-top: 18px; }
.pt-head-row { display: flex; align-items: flex-start; gap: 14px; }
.pt-head-text { flex: 1; min-width: 0; }
.pt-name { margin: 2px 0 4px; overflow-wrap: anywhere; }
.pt-logo {
  flex: 0 0 auto; width: 72px; height: 54px; object-fit: contain; background: #fff;
  border-radius: var(--radius); padding: 4px; margin-top: 4px;
}
/* A white logo (partners.json `logoDark`) sits on near-black instead. */
.pt-logo.is-dark { background: #111; }
.pt-tagline { margin: 10px 0 14px; font-size: 19px; }
.pt-book { white-space: normal; margin-top: 4px; }
.pt-book-foot { margin-top: 22px; }
.pt-save-row { justify-content: flex-start; gap: 8px; margin-top: 8px; }

.pt-about p { margin: 0 0 12px; font-size: 17px; line-height: 1.55; color: var(--text); }
.pt-about p:last-child { margin-bottom: 0; }

.pt-offer + .pt-offer { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.pt-offer h3 { font-size: 20px; overflow-wrap: anywhere; margin-top: 2px; }
.pt-code {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 10px;
  padding: 8px 8px 8px 12px; border: 1px dashed var(--t-border); border-radius: var(--radius);
}
.pt-code-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.pt-code-value { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 16px; letter-spacing: 0.16em; color: var(--text); user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; }
.pt-copy.is-done { color: var(--ok); border-color: var(--ok); }
.pt-code-help { margin: 8px 0 0; font-size: 15px; line-height: 1.45; color: var(--muted); font-style: italic; font-weight: 300; }

.pt-map {
  display: block; position: relative; margin: -2px 0 14px; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--t-border); background: rgba(5, 8, 15, 0.6);
}
.pt-map-canvas { position: absolute; inset: 0; background: transparent; }
.pt-map .leaflet-control-attribution { font-size: 9px; }
.pt-map-pin { color: var(--t-accent); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); }
.pt-map-pin svg { width: 30px; height: 30px; display: block; }
.pt-address { margin: 0 0 12px; font-size: 17px; line-height: 1.45; color: var(--text); }
.pt-links { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.pt-policies { margin: 0 0 14px; display: grid; gap: 10px; }
.pt-policies dt { line-height: 1.4; }
.pt-policies dd { margin: 0; font-size: 17px; line-height: 1.4; color: var(--text); }

.pt-list { list-style: none; margin: 0; padding: 0; }
.pt-list li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--hairline); }
.pt-list li:first-child { border-top: none; padding-top: 0; }
.pt-list li:last-child { padding-bottom: 0; }
.pt-list-name { font-family: var(--font-serif); font-size: 18px; font-weight: 500; color: var(--text); }
.pt-list-detail { font-size: 15px; line-height: 1.45; color: var(--muted); font-style: italic; font-weight: 300; }
.pt-list li[data-state="soon"] .pt-list-name { color: var(--muted); }
.pt-soon { border: 1px dashed var(--hairline); padding: 1px 6px; border-radius: var(--radius); margin-left: 6px; white-space: nowrap; vertical-align: middle; }
.pt-bullets { margin: 0; padding-left: 18px; font-size: 16px; line-height: 1.5; color: var(--text); }
.pt-bullets li + li { margin-top: 6px; }

/* "During your stay": the day's one thing. */
.pt-stay .demo-tag { margin: 0 0 12px; }
.pt-stay-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--t-border); margin-bottom: 12px; }
.pt-stay-pick h3 { font-size: 23px; overflow-wrap: anywhere; }
.pt-stay-then { margin: 4px 0 0; font-size: 17px; color: var(--text); }
.pt-stay-then .meta { margin-right: 6px; color: var(--t-accent); }
.pt-stay-why { margin: 12px 0 0; font-size: 16px; line-height: 1.5; color: var(--muted); font-style: italic; }
.pt-stay-try { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.pt-stay-chips { padding-bottom: 0; row-gap: 6px; }

.pt-rhythm .demo-tag { margin: 0 0 10px; }
.pt-rhythm-day + .pt-rhythm-day { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.pt-rhythm-title { color: var(--t-accent); }
.pt-rhythm ul { list-style: none; margin: 6px 0 0; padding: 0; }
.pt-rhythm li { display: grid; grid-template-columns: 92px 1fr; gap: 8px; align-items: baseline; padding: 2px 0; font-size: 16px; color: var(--text); }

/* ---------- Health permissions (js/permission-card.js, js/health-access.js, 2026-11-11) ---------- */
/* The pre-permission card: what we ask for, why, what stays private. Generic:
   any system permission can use it. No toggles: Apple's sheet comes next. */
.perm-card { display: flex; flex-direction: column; }
.perm-intro { margin: 0 0 6px; font-size: 17px; line-height: 1.5; color: var(--text); font-style: italic; font-weight: 300; }
.perm-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--dim); margin: 18px 0 8px; }
.perm-items, .perm-private { list-style: none; margin: 0; padding: 0; }
.perm-items li { display: flex; flex-direction: column; gap: 1px; padding: 9px 0; border-top: 1px solid var(--hairline); }
.perm-items li:first-child { border-top: none; padding-top: 2px; }
.perm-item-name { font-family: var(--font-serif); font-size: 18px; font-weight: 500; color: var(--text); }
.perm-item-why { font-size: 15px; line-height: 1.4; color: var(--muted); font-style: italic; font-weight: 300; }
.perm-private li { position: relative; padding: 4px 0 4px 18px; font-size: 16px; line-height: 1.45; color: var(--text); }
.perm-private li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); opacity: 0.85; }
.perm-note { margin: 16px 0 0; text-transform: none; letter-spacing: 0.04em; font-size: 11px; line-height: 1.6; }
/* The choice stays on screen while the list scrolls under it (the sheet is
   80vh; the list is longer than that on a phone). */
.perm-actions {
  position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom)); z-index: 1;
  display: flex; flex-direction: column; gap: 8px;
  margin: 12px -20px calc(-24px - env(safe-area-inset-bottom)); padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent 0, var(--t-bg-2) 18px);
}

/* Settings steps. */
.health-steps-list { margin: 8px 0 0; padding-left: 22px; font-size: 17px; line-height: 1.5; color: var(--text); }
.health-steps-list li + li { margin-top: 6px; }
.health-steps-list b { font-weight: 600; color: var(--text); }

/* Home: one card while Apple Health is linked but not flowing. Same column
   and weight as the rename banner; the sun shrinks under it the same way. */
.health-banner { position: relative; border-color: rgba(232, 114, 12, 0.45); box-shadow: 0 0 44px -14px var(--t-glow); }
.health-banner .meta { margin: 0 0 10px; }
.health-banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; row-gap: 8px; }
.view > .health-banner ~ #read-hero .sunset-hero { --sun: 156px; }

/* Connectors: "What Vamav can read", cookie-settings style. */
.health-list-lead { margin: 0 0 6px; font-size: 16px; line-height: 1.45; color: var(--muted); font-style: italic; font-weight: 300; }
.health-rows { list-style: none; margin: 0; padding: 0; }
.health-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--hairline); }
.health-row:first-child { border-top: none; }
.health-row-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.health-row-name { font-family: var(--font-serif); font-size: 18px; font-weight: 500; color: var(--text); }
.health-row-why { font-size: 14px; line-height: 1.35; color: var(--muted); font-style: italic; font-weight: 300; }
.health-pill { flex: 0 0 auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 9px; border-radius: var(--radius); border: 1px solid var(--hairline); color: var(--dim); white-space: nowrap; }
.health-pill-on { color: var(--ok); border-color: rgba(143, 191, 158, 0.5); }
.health-pill-off { color: var(--muted); }
.health-pill-unknown { border-style: dashed; color: var(--muted); }
.health-list-foot + .health-list-foot { margin-top: -4px; }
.health-list-foot { margin: 10px 0 12px; text-transform: none; letter-spacing: 0.04em; font-size: 11px; line-height: 1.6; }
.health-list-actions:empty { display: none; }

/* Breathe before big moments (js/nudges-ui.js, 2026-11-11). */
.nudge-card h3 { margin-bottom: 8px; }
.nudge-copy { margin: 0 0 10px; font-size: 17px; line-height: 1.45; color: var(--muted); }
.nudge-copy.nudge-small { font-size: 15px; color: var(--dim); }
.nudge-points { margin: 0 0 12px; padding-left: 18px; font-size: 16px; line-height: 1.45; color: var(--muted); }
.nudge-points li { margin-bottom: 6px; }
.nudge-points b { color: var(--text); font-weight: 600; }
.nudge-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; row-gap: 8px; }
.nudge-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.nudge-row-text { min-width: 0; flex: 1 1 auto; }
.nudge-switch { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 56px; height: 44px; margin: -6px 0 0 0; padding: 0; border: none; background: none; cursor: pointer; }
.nudge-track { position: relative; display: block; width: 52px; height: 32px; border-radius: 16px; border: 1px solid var(--hairline); background: rgba(240, 235, 227, 0.12); transition: background 0.2s, border-color 0.2s; }
.nudge-knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--text); transition: transform 0.2s; }
.nudge-switch.on .nudge-track { background: var(--t-accent); border-color: var(--t-accent); }
.nudge-switch.on .nudge-knob { transform: translateX(20px); }
.nudge-switch:focus-visible .nudge-track { outline: 2px solid var(--t-accent); outline-offset: 2px; }
.nudge-switch[disabled] { opacity: 0.5; }
.nudge-what { margin-top: 4px; border-top: 1px solid var(--hairline); padding-top: 10px; }
.nudge-what summary { cursor: pointer; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--t-accent); min-height: 32px; display: flex; align-items: center; }
.nudge-what[open] summary { margin-bottom: 8px; }
.nudge-blocked .nudge-card { margin: 4px 0 8px; border-color: var(--hairline); padding: 14px; }
.nudge-denied h3 { font-size: 19px; }

/* Connect Google Calendar (js/nudges-ui.js googleRow, 2026-11-11). */
.gcal-row { margin-top: 12px; }
.gcal-row[hidden] { display: none; }
.nudge-settings-card .gcal-row { border-top: 1px solid var(--hairline); padding-top: 12px; margin: 12px 0 4px; }
.gcal-head { display: flex; align-items: center; gap: 12px; }
.gcal-icon { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hairline); color: var(--text); }
.gcal-icon .cal-mark { width: 16px; height: 16px; }
.gcal-text { min-width: 0; flex: 1 1 auto; }
.gcal-text h4 { margin: 0 0 2px; font-size: 17px; font-weight: 500; color: var(--text); }
.gcal-state { margin: 0; font-size: 15px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.gcal-head .btn.small { flex: 0 0 auto; min-height: 44px; }
.gcal-row .gcal-privacy { margin: 10px 0 0; }
.btn.ghost.small.gcal-wide { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 44px; }
.gcal-wide .cal-mark { width: 16px; height: 16px; flex-shrink: 0; }
.gcal-line { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.gcal-line .cal-mark { width: 16px; height: 16px; flex-shrink: 0; color: var(--text); }
.gcal-line b { color: var(--text); font-weight: 500; }
.nudge-card .gcal-or { margin: 12px 0 0; }
