:root {
  --ground: #f8f9fc;
  --paper: #fff;
  --ink: #27304b;
  --muted: #56627c;
  --blue: #3d4e91;
  --blue-dark: #2b3b79;
  --blue-wash: #edf0f8;
  --line: #e3e6ef;
  --gold: #e8d394;
  --sage: #e7ecdf;
  --sage-ink: #526547;
  --peach: #f5ebdf;
  --danger: #a5393f;
  --display: "Noto Serif SC", "Songti SC", "STSong", serif;
  --body: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius: 16px;
  --shadow: 0 16px 36px #25305d15;
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
}

/* Reading themes extend the existing paper-and-book visual world. */
.collection-shelf { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); gap:48px; align-items:center; max-width:1124px; width:calc(100% - 48px); margin:64px auto; }
.discovery-main { max-width:1124px; width:calc(100% - 48px); margin:0 auto; }
.discovery-main .collection-shelf { width:100%; }
.collection-art { overflow:hidden; border-radius:12px; background:#f4ecdf; }
.collection-art img { display:block; width:100%; height:auto; aspect-ratio:3/2; object-fit:cover; }
.collection-copy h2 { font:400 clamp(25px,3vw,36px)/1.35 var(--display); margin:0 0 16px; text-wrap:balance; }
.collection-copy > p { color:var(--muted); margin:0 0 24px; max-width:60ch; }
.collection-row { display:flex; gap:20px; align-items:center; justify-content:space-between; padding:18px 0; border-bottom:1px solid var(--line); }
.collection-row strong { display:block; font-weight:500; font-size:17px; }
.collection-row small { display:block; color:var(--muted); margin-top:5px; }
.collection-row svg, .collection-related svg, .collection-excerpt svg, .collection-action svg, .collection-hero svg { width:21px; height:21px; flex:none; fill:none; stroke:currentColor; stroke-width:1.6; }
.collection-row:hover, .collection-related a:hover { color:var(--blue); }
.collection-all { margin-top:20px; }
.collection-breadcrumb { display:flex; flex-wrap:wrap; gap:12px; color:var(--muted); margin:32px 0; }
.collection-breadcrumb a { text-decoration:underline; text-underline-offset:5px; padding:8px 0; }
.collection-breadcrumb span { align-self:center; }
.collection-hero { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:48px; align-items:center; padding:16px 0 56px; }
.collection-hero h1 { font:400 clamp(32px,4vw,49px)/1.3 var(--display); margin:0 0 24px; text-wrap:balance; }
.collection-hero p { color:var(--muted); font-size:17px; max-width:64ch; margin:0 0 28px; }
.collection-hero .primary-button { display:inline-flex; white-space:normal; text-align:left; }
.collection-reading { max-width:720px; margin:0 auto 64px; font-size:16px; }
.collection-reading section { margin-top:48px; }
.collection-reading h2 { font:400 clamp(24px,3vw,30px)/1.45 var(--display); margin:0 0 20px; text-wrap:balance; }
.collection-reading p { line-height:1.9; }
.collection-excerpt { padding:25px 0; border-bottom:1px solid var(--line); }
.collection-excerpt h3 { font:400 23px/1.5 var(--display); margin:0 0 12px; }
.collection-excerpt p { color:var(--muted); margin:0 0 14px; }
.collection-excerpt .text-button, .collection-action .text-button { display:inline-flex; align-items:center; gap:12px; min-height:44px; }
.collection-action { background:var(--sage); color:var(--sage-ink); padding:28px; border-radius:12px; }
.collection-related { display:grid; gap:4px; margin-top:40px; border-top:1px solid var(--line); padding-top:20px; }
.collection-related a { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:12px 0; min-height:44px; }
.collection-disclaimer { text-align:center; color:var(--muted); margin:32px 0 64px; }
.reading-return > a > span { min-width:0; }
.reading-return strong { display:block; font-weight:500; }
.reading-return small { display:block; color:var(--muted); font-size:12px; line-height:1.6; margin-top:4px; }
.reading-return .journal-arrow { flex:none; }
[data-theme="dark"] .collection-art img { filter:brightness(.82); }
@media(max-width:760px) {
  .collection-shelf, .collection-hero { grid-template-columns:minmax(0,1fr); gap:28px; }
  .collection-shelf { margin:48px auto; }
  .collection-shelf .collection-art { max-width:480px; }
  .collection-hero { padding-bottom:16px; }
  .collection-hero .collection-art { max-width:480px; }
  .collection-reading { font-size:15px; }
  .collection-action { padding:24px; }
  .collection-breadcrumb { font-size:12px; }
  .collection-row strong { font-size:16px; }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #7088d0;
  outline-offset: 5px;
}
::selection {
  background: var(--gold);
  color: var(--ink);
}
textarea {
  caret-color: var(--blue);
}
* {
  scrollbar-color: #bec5da var(--ground);
  scrollbar-width: thin;
}
[hidden] {
  display: none !important;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
}
h1,
h2 {
  font-family: var(--display);
}
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  padding: 0;
  background: var(--ink);
  color: white;
  z-index: 30;
}
.skip-link:focus {
  width: auto;
  height: auto;
  clip-path: none;
  padding: 12px 20px;
}
.site-header {
  height: 88px;
  border-bottom: 1px solid var(--line);
  background: #ffffffb8;
}
.header-inner {
  max-width: 1180px;
  margin: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-weight: 600;
}
.main-nav {
  display: flex;
  gap: 36px;
  height: 100%;
  align-items: center;
}
.main-nav a {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  font-size: 14px;
  color: var(--muted);
}
.main-nav a:hover,
.main-nav a[aria-current] {
  color: var(--blue);
}
.main-nav a[aria-current]:after {
  content: "";
  height: 3px;
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 19px;
  transform: translateX(-50%);
  background: var(--blue);
  border-radius: 2px;
}
.saved-nav {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  min-height: 44px;
}
.saved-nav:hover,
.saved-nav[aria-current] {
  color: var(--blue);
}
.saved-nav svg {
  width: 18px;
}
.saved-count {
  background: var(--blue-wash);
  color: var(--blue);
  padding: 0 6px;
  border-radius: 10px;
  font-size: 11px;
}
.intro {
  text-align: center;
  padding: 52px 24px 36px;
}
.intro h1 {
  font-size: clamp(28px, 3.25vw, 46px);
  line-height: 1.6;
  letter-spacing: 0.015em;
  text-wrap: balance;
}
.title-mark {
  position: relative;
  display: inline-block;
  isolation: isolate;
}
.title-mark:after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 2px;
  right: 0;
  height: 11px;
  background: #e1e6f6;
  z-index: -1;
  border-radius: 50% 25% 35% 30%;
}
.title-mark.sage-mark:after {
  background: var(--sage);
}
.title-mark.peach-mark:after {
  background: #f0dfc5;
}
.intro p {
  margin-top: 12px;
  letter-spacing: 0.035em;
  color: var(--muted);
  font-size: 14px;
}
.reading-table,
.daily-table,
.decision-table {
  max-width: 1124px;
  margin: 0 auto;
  border-radius: var(--radius);
  background: var(--blue-wash);
  display: grid;
  grid-template-columns: 43% 57%;
  min-height: 452px;
  overflow: hidden;
}
.reading-controls {
  padding: 64px 20px 50px 52px;
  align-self: center;
  position: relative;
  z-index: 2;
}
.reading-controls h2,
.decision-controls h2 {
  font-size: 28px;
  letter-spacing: 0.025em;
  line-height: 1.5;
}
.section-copy {
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
  margin-top: 16px;
}
.topics {
  padding: 0;
  border: 0;
  margin: 28px 0 26px;
}
.topics legend {
  font-size: 12px;
  margin-bottom: 12px;
  color: var(--muted);
}
#topic-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 340px;
}
.topic {
  position: relative;
  cursor: pointer;
  display: inline-flex;
}
.topic input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.topic span {
  padding: 8px 14px;
  background: #ffffff91;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #5c6580;
  transition:
    background 0.2s,
    color 0.2s;
  font-size: 12px;
  line-height: 1.6;
}
.topic input:checked + span {
  border-color: #aeb9d7;
  background: #fff;
  color: var(--blue);
}
.topic:hover span {
  background: #fff;
}
.topic input:focus-visible + span {
  outline: 3px solid #7088d0;
  outline-offset: 3px;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  border: 0;
  background: var(--blue);
  color: white;
  padding: 12px 22px;
  border-radius: 9px;
  transition:
    background 0.2s,
    transform 0.2s;
  width: 280px;
  max-width: 100%;
  font-size: 14px;
}
.primary-button svg {
  width: 19px;
  height: 19px;
}
.primary-button:hover:not(:disabled) {
  background: var(--blue-dark);
  transform: translateY(-2px);
}
.button-arrow {
  margin-left: auto;
  font-size: 20px;
}
.control-note {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.025em;
  margin-top: 12px;
}
.book-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 465px;
  padding-bottom: 26px;
  perspective: 1300px;
  background: radial-gradient(ellipse at 54% 44%, #fbfcffb3, transparent 64%);
}
.orbit {
  position: absolute;
  border: 1px solid #d9dfed;
  border-radius: 50%;
  width: 376px;
  height: 376px;
  transform: rotate(-20deg);
  pointer-events: none;
}
.orbit-two {
  width: 460px;
  height: 270px;
  transform: rotate(-32deg);
  opacity: 0.65;
}
.stage-star {
  position: absolute;
  width: 23px;
  height: 23px;
  color: #a8b3d1;
}
.star-a {
  top: 75px;
  right: 88px;
}
.star-b {
  bottom: 91px;
  left: 64px;
  width: 18px;
  height: 18px;
}
.book-object {
  position: relative;
  width: 222px;
  height: 300px;
  background: none;
  border: 0;
  padding: 0;
  transform: rotate(-9deg) rotateY(-13deg) rotateX(5deg);
  transform-style: preserve-3d;
  transition: transform 0.65s var(--ease);
  margin: 0 16px 4px 0;
}
.book-object:hover {
  transform: rotate(-5deg) rotateY(-6deg) translateY(-7px);
}
.book-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    #293a77 0%,
    #374986 6%,
    #2c3d79 10%,
    #405493 13%,
    #3a4c8b 78%,
    #334780 100%
  );
  border-radius: 3px 8px 8px 3px;
  box-shadow:
    3px 6px 5px #29355f1f,
    19px 26px 28px #35487530;
  display: flex;
  align-items: center;
  flex-direction: column;
  color: var(--gold);
  transform-origin: left center;
  transition:
    transform 0.7s var(--ease),
    opacity 0.3s;
  z-index: 2;
}
.cover-border {
  position: absolute;
  inset: 15px 13px 15px 21px;
  border: 1px solid #d6c58b77;
  border-radius: 1px 3px 3px 1px;
}
.cover-top {
  font-size: 11px;
  letter-spacing: 0.25em;
  margin-top: 38px;
  color: #e0d6b8;
}
.cover-symbol {
  margin-top: 25px;
  height: 42px;
}
.cover-symbol svg {
  width: 42px;
  height: 42px;
  stroke-width: 0.75;
}
.cover-title {
  font-family: var(--display);
  font-size: 33px;
  letter-spacing: 0.13em;
  margin-top: 12px;
  padding-left: 6px;
  color: #f1dfac;
  font-weight: 500;
}
.cover-subtitle {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-top: 9px;
  color: #e5d8b6;
}
.cover-bottom {
  font-size: 6px;
  letter-spacing: 0.29em;
  margin-top: 35px;
  color: #d8cca9;
}
.book-pages {
  position: absolute;
  inset: 5px -10px -5px 5px;
  background: repeating-linear-gradient(
    0deg,
    #d9d9d5 0,
    #d9d9d5 1px,
    #f4f2eb 1px,
    #f4f2eb 3px
  );
  border-radius: 2px 9px 9px 3px;
  border-right: 3px solid #26366c;
  box-shadow: 11px 19px 28px #38467225;
}
.book-ribbon {
  position: absolute;
  width: 19px;
  height: 74px;
  right: 31px;
  bottom: -33px;
  background: #d9bf77;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 86%, 0 100%);
  transform: translateZ(1px);
  z-index: 1;
}
.book-caption {
  position: absolute;
  bottom: 29px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 11px;
  color: #6a7592;
  letter-spacing: 0.03em;
}
.book-caption span {
  width: 18px;
  height: 1px;
  background: #c0c9dc;
}
.book-stage.is-opening .book-object {
  transform: rotate(-3deg) rotateY(0deg) scale(0.96);
}
.book-stage.is-opening .book-cover {
  transform: rotateY(-120deg);
  opacity: 0.1;
}
.book-stage.has-result .orbit {
  opacity: 0.45;
}
.answer-paper {
  z-index: 3;
  position: relative;
  width: 86%;
  max-width: 440px;
  background: var(--paper);
  padding: 38px 34px 27px;
  box-shadow: var(--shadow);
  border-radius: 4px 12px 12px 4px;
  margin: 26px 28px 22px 0;
  animation: reveal-paper 0.6s var(--ease) both;
}
.paper-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.05em;
}
.paper-top svg {
  height: 20px;
  width: 20px;
  color: var(--blue);
}
.answer-paper h3 {
  font-family: var(--display);
  font-size: 27px;
  line-height: 1.7;
  margin: 29px 0 16px;
  color: var(--blue-dark);
  text-wrap: balance;
}
.paper-body {
  font-size: 13px;
  line-height: 2.1;
  color: var(--muted);
}
.paper-footer {
  margin-top: 27px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.paper-footer button,
.paper-tools button {
  border: 0;
  background: none;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 7px;
  font-size: 11px;
  color: var(--muted);
  border-radius: 5px;
}
.paper-footer button:hover,
.paper-tools button:hover {
  background: var(--blue-wash);
  color: var(--blue);
}
.paper-footer svg,
.paper-tools svg {
  width: 15px;
  height: 15px;
}
.paper-footer button[aria-pressed="true"] {
  color: var(--blue);
}
.paper-tools {
  text-align: right;
  margin-top: 4px;
}
.more-play {
  max-width: 1124px;
  margin: 43px auto 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 19px;
}
.section-heading h2 {
  font-size: 22px;
}
.section-heading > span {
  font-size: 11px;
  color: var(--muted);
}
.play-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.play-link {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 126px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition:
    background 0.25s,
    border-color 0.25s;
}
.play-link:hover {
  background: #fff;
  border-color: #bac4dd;
}
.play-link h3 {
  font-size: 17px;
  margin-bottom: 5px;
}
.play-link p {
  font-size: 12px;
  color: var(--muted);
}
.round-arrow {
  margin-left: auto;
  width: 31px;
  height: 31px;
  display: grid;
  place-content: center;
  border: 1px solid #dce0e9;
  border-radius: 50%;
  font-size: 16px;
  flex-shrink: 0;
}
.mini-calendar {
  width: 48px;
  height: 54px;
  flex-shrink: 0;
  background: #e8eddf;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--sage-ink);
  transform: rotate(-7deg);
  position: relative;
}
.mini-calendar:before,
.mini-calendar:after {
  content: "";
  width: 3px;
  height: 8px;
  background: #8b9b7b;
  position: absolute;
  top: -3px;
  border-radius: 2px;
}
.mini-calendar:before {
  left: 10px;
}
.mini-calendar:after {
  right: 10px;
}
.mini-calendar > span {
  font-size: 11px;
  border-bottom: 1px solid #bdc8ae;
  width: 100%;
  text-align: center;
}
.mini-calendar b {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 500;
  font-family: var(--display);
}
.mini-wheel {
  width: 53px;
  height: 53px;
  flex-shrink: 0;
  background: conic-gradient(
    #d6dcef 0deg 90deg,
    #f0dfb8 90deg 180deg,
    #e0e6d7 180deg 270deg,
    #e9cfc5 270deg
  );
  border-radius: 50%;
  position: relative;
  transform: rotate(17deg);
}
.mini-wheel:after {
  content: "";
  position: absolute;
  inset: 21px;
  background: #fff;
  border-radius: 50%;
}
.mini-wheel i {
  width: 8px;
  height: 13px;
  position: absolute;
  left: 23px;
  top: -5px;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.quiet-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 48px 24px;
  color: var(--muted);
}
.quiet-note svg {
  width: 24px;
  height: 24px;
  color: #8793ae;
}
.quiet-note p {
  font-size: 12px;
  line-height: 1.9;
}
.quiet-note p span {
  font-size: 11px;
  color: #626d84;
}
.site-footer {
  max-width: 1124px;
  margin: 0 auto;
  padding: 26px 0 23px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px 20px;
  color: var(--muted);
  font-size: 11px;
}
.site-footer > div {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer-brand {
  font-family: var(--display);
  font-size: 15px;
  color: var(--ink);
}
.site-footer nav {
  display: flex;
  gap: 22px;
}
.site-footer a:hover {
  color: var(--blue);
}
.site-footer > p {
  font-size: 11px;
  flex-basis: 100%;
  color: #626d84;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 15px);
  padding: 11px 22px;
  background: var(--ink);
  color: #fff;
  border-radius: 9px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 30;
  max-width: calc(100vw - 32px);
  width: max-content;
  font-size: 13px;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.daily-table {
  background: #edf0e7;
  grid-template-columns: 40% 60%;
  min-height: 500px;
}
.daily-left {
  padding: 42px 30px 42px 66px;
  align-self: center;
}
.date-display {
  display: flex;
  flex-direction: column;
  color: var(--sage-ink);
  margin-bottom: 17px;
  width: 150px;
}
.date-display > span {
  font-size: 12px;
  letter-spacing: 0.1em;
}
.date-display strong {
  font-size: 86px;
  line-height: 1.18;
  font-family: var(--display);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.date-display > span:last-child {
  margin-top: 6px;
}
.daily-left h2 {
  font-size: 25px;
  margin-top: 25px;
}
.daily-left > p:not(.control-note) {
  font-size: 13px;
  line-height: 2;
  color: #66705f;
  margin: 12px 0 25px;
}
.sage-button {
  background: var(--sage-ink);
  width: 245px;
}
.sage-button:hover:not(:disabled) {
  background: #435439;
}
.daily-stage {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 26px;
}
.daily-orbit {
  width: 380px;
  height: 380px;
  border: 1px solid #d8dfce;
  border-radius: 50%;
  position: absolute;
}
.daily-envelope {
  width: 234px;
  height: 336px;
  border: none;
  border-radius: 5px;
  background: #f9faf6;
  box-shadow: 18px 24px 35px #44513920;
  position: relative;
  transform: rotate(6deg);
  transition: transform 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--sage-ink);
  padding: 0;
}
.daily-envelope:hover {
  transform: rotate(2deg) translateY(-5px);
}
.envelope-line {
  position: absolute;
  inset: 17px;
  border: 1px solid #c3cdb4;
}
.envelope-circle {
  border: 1px solid #b9c4a9;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  margin-top: 51px;
  display: grid;
  place-content: center;
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.5;
}
.envelope-text {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.15em;
  margin-top: 30px;
}
.envelope-seal {
  width: 30px;
  height: 30px;
  border: 1px solid #91a07e;
  border-radius: 50%;
  margin-top: 21px;
  font-family: var(--display);
  font-size: 14px;
  line-height: 29px;
}
.daily-envelope.is-opening {
  transform: rotate(-4deg) translateY(-18px);
  opacity: 0;
  transition:
    transform 0.55s,
    opacity 0.55s;
}
.daily-paper {
  background: #fffef9;
  z-index: 2;
  width: 100%;
  max-width: 390px;
  padding: 29px 32px 23px;
  border-radius: 5px;
  box-shadow: var(--shadow);
  animation: reveal-paper 0.6s var(--ease) both;
}
.daily-word {
  font-family: var(--display);
  font-size: 45px;
  text-align: center;
  letter-spacing: 0.18em;
  padding-left: 0.18em;
  color: var(--sage-ink);
  margin: 22px 0 11px;
}
.daily-paper h3 {
  font-family: var(--display);
  font-size: 21px;
  text-align: center;
  line-height: 1.8;
  margin-bottom: 13px;
}
.daily-paper .paper-body {
  font-size: 12px;
}
.daily-action {
  margin-top: 20px;
  background: #f0f3e9;
  padding: 13px 15px;
  border-radius: 6px;
  color: var(--sage-ink);
  font-size: 12px;
  line-height: 1.9;
}
.daily-action strong {
  font-size: 11px;
  display: block;
  margin-bottom: 3px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.daily-paper .paper-footer {
  margin-top: 16px;
  padding-top: 12px;
}
.related-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  max-width: 1050px;
  margin: 33px auto 60px;
  font-size: 13px;
  color: var(--muted);
}
.related-strip a {
  color: var(--blue);
}
.related-strip a span {
  margin-left: 13px;
}
.related-strip > span {
  font-size: 12px;
}
.decision-table {
  background: #f0f1f7;
  grid-template-columns: 43% 57%;
  min-height: 510px;
}
.decision-controls {
  padding: 43px 24px 33px 45px;
}
.decision-controls label {
  display: block;
  font-size: 12px;
  margin: 19px 0 8px;
  color: var(--muted);
}
.decision-controls textarea {
  width: 100%;
  resize: vertical;
  min-height: 152px;
  max-height: 270px;
  background: #fff;
  border: 1px solid #d4daea;
  border-radius: 9px;
  padding: 13px 16px;
  color: var(--ink);
  line-height: 1.9;
  font-size: 14px;
}
.decision-controls textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
.input-meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.input-meta > span:last-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.presets {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0 24px;
  font-size: 11px;
  color: var(--muted);
}
.presets button {
  border: 0;
  background: transparent;
  border-bottom: 1px solid #b6bfd8;
  color: var(--blue);
  padding: 5px 0;
  min-height: 32px;
  font-size: 11px;
}
.field-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 7px;
}
.wheel-stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 22px;
  min-width: 0;
}
.wheel-wrap {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 1;
  border: 8px solid white;
  border-radius: 50%;
  box-shadow: 0 12px 32px #38416d19;
}
.wheel-pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 22px;
  height: 35px;
  background: var(--blue-dark);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateX(-50%);
  z-index: 3;
}
.wheel-wrap > svg {
  width: 100%;
  height: 100%;
  stroke: none;
  transform: rotate(0deg);
  transition: transform 3.5s cubic-bezier(0.13, 0.7, 0.15, 1);
  overflow: visible;
}
.wheel-wrap > svg text {
  font-family: var(--body);
  fill: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.wheel-center {
  position: absolute;
  inset: calc(50% - 28px);
  background: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue);
}
.wheel-center svg {
  width: 25px;
  height: 25px;
}
.decision-result {
  text-align: center;
  margin-top: 25px;
  min-height: 64px;
  width: 100%;
}
.decision-result > p {
  font-size: 12px;
  color: var(--muted);
}
.decision-result h3 {
  font-family: var(--display);
  font-size: 24px;
  color: var(--blue-dark);
  margin: 3px 0;
  overflow-wrap: anywhere;
}
.decision-result > span {
  font-size: 11px;
  color: var(--muted);
}
.saved-main {
  min-height: calc(100vh - 235px);
}
.saved-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 12px auto 22px;
  gap: 15px;
}
.saved-heading h2 {
  font-size: 23px;
}
.saved-heading h2 span {
  font-family: var(--body);
  font-size: 12px;
  color: var(--muted);
  margin-left: 8px;
}
.saved-heading > p {
  font-size: 11px;
  color: var(--muted);
}
.saved-list {
  max-width: 1000px;
  margin: 0 auto 65px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.saved-card {
  padding: 25px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}
.saved-card h3 {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.7;
  margin: 21px 0 12px;
  color: var(--blue-dark);
}
.saved-card .paper-body {
  font-size: 12px;
}
.saved-card .paper-footer {
  margin-top: auto;
  padding-top: 15px;
}
.saved-card .paper-body {
  margin-bottom: 22px;
}
.saved-card .paper-footer button {
  padding: 5px 2px;
}
.saved-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 70px 20px 85px;
  border-radius: 16px;
  background: var(--blue-wash);
}
.saved-empty > svg {
  width: 42px;
  height: 42px;
  color: #8491b5;
  stroke-width: 1.2;
}
.saved-empty h2 {
  font-size: 26px;
  margin-top: 18px;
}
.saved-empty p {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0 26px;
}
.saved-empty .primary-button {
  width: 220px;
}
.about-main {
  max-width: 760px;
  margin: auto;
}
.about-copy {
  background: #fff;
  border-radius: 12px;
  padding: 38px 45px;
  margin: 0 24px 65px;
}
.about-copy h2 {
  font-size: 24px;
  margin: 35px 0 15px;
}
.about-copy h2:first-child {
  margin-top: 0;
}
.about-copy h3 {
  font-size: 16px;
  margin: 22px 0 8px;
}
.about-copy p {
  font-size: 14px;
  line-height: 2.1;
  color: var(--muted);
  margin-bottom: 14px;
}
.text-button {
  background: none;
  border: 0;
  border-bottom: 1px solid #bdc6e0;
  color: var(--blue);
  padding: 5px 0;
  min-height: 40px;
}
.clear-confirm {
  padding: 17px;
  background: var(--blue-wash);
  margin: 12px 0;
}
.clear-confirm p {
  font-size: 12px;
}
.small-button {
  padding: 8px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-right: 8px;
  min-height: 40px;
}
.danger-button {
  color: var(--danger);
}
.inline-button {
  margin-top: 15px;
  width: auto;
}
.noscript-note {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: var(--ink);
  color: white;
  text-align: center;
  z-index: 100;
}
@keyframes reveal-paper {
  from {
    opacity: 0;
    transform: translateY(14px) rotate(2deg);
    clip-path: inset(0 0 9% 0);
  }
  to {
    opacity: 1;
    transform: none;
    clip-path: inset(0);
  }
}
@media (min-width: 1500px) {
  .intro {
    padding-top: 64px;
    padding-bottom: 42px;
  }
  .reading-table {
    min-height: 490px;
  }
  .book-stage {
    min-height: 490px;
  }
  .book-object {
    width: 235px;
    height: 315px;
  }
  .cover-title {
    margin-top: 18px;
  }
  .cover-bottom {
    margin-top: 39px;
  }
}
@media (max-width: 1190px) {
  .reading-table,
  .daily-table,
  .decision-table,
  .more-play,
  .site-footer {
    margin-left: 32px;
    margin-right: 32px;
  }
  .reading-controls {
    padding-left: 35px;
  }
  .reading-controls h2 {
    font-size: 25px;
  }
  .section-copy {
    font-size: 12px;
  }
  .orbit {
    width: 320px;
    height: 320px;
  }
  .orbit-two {
    width: 380px;
    height: 245px;
  }
  .star-a {
    right: 46px;
  }
  .star-b {
    left: 22px;
  }
  .related-strip,
  .saved-heading,
  .saved-list {
    margin-left: 40px;
    margin-right: 40px;
  }
  .play-link {
    gap: 16px;
    padding: 22px;
  }
  .play-link p {
    font-size: 11px;
  }
  .play-link h3 {
    font-size: 16px;
  }
  .main-nav {
    gap: 25px;
  }
  .daily-left {
    padding-left: 45px;
  }
}
@media (max-width: 800px) {
  .header-inner {
    padding: 0 22px;
    gap: 18px;
  }
  .brand {
    font-size: 20px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .main-nav {
    gap: 20px;
  }
  .main-nav a {
    font-size: 12px;
  }
  .saved-nav > span:not(.saved-count) {
    display: none;
  }
  .saved-nav {
    min-width: 32px;
    justify-content: center;
  }
  .reading-controls {
    padding: 35px 12px 32px 28px;
  }
  .reading-controls h2 {
    font-size: 23px;
  }
  .section-copy br {
    display: none;
  }
  .primary-button {
    width: 100%;
    font-size: 13px;
  }
  .topics {
    margin: 22px 0;
  }
  .topic span {
    padding: 8px 11px;
  }
  .book-object {
    width: 190px;
    height: 268px;
  }
  .cover-title {
    font-size: 29px;
  }
  .cover-top {
    margin-top: 33px;
  }
  .cover-symbol {
    margin-top: 19px;
  }
  .cover-bottom {
    margin-top: 24px;
  }
  .book-stage {
    min-height: 430px;
  }
  .book-caption {
    font-size: 11px;
    gap: 6px;
  }
  .orbit {
    width: 275px;
    height: 275px;
  }
  .orbit-two {
    width: 310px;
    height: 220px;
  }
  .answer-paper {
    padding: 28px 23px 21px;
    width: 92%;
    margin-right: 13px;
  }
  .answer-paper h3 {
    font-size: 23px;
  }
  .paper-footer {
    flex-wrap: wrap;
  }
  .paper-body {
    font-size: 12px;
  }
  .play-link {
    gap: 14px;
    padding: 20px 18px;
  }
  .play-link .round-arrow {
    display: none;
  }
  .mini-wheel {
    width: 47px;
    height: 47px;
  }
  .mini-wheel:after {
    inset: 18px;
  }
  .mini-wheel i {
    left: 20px;
  }
  .play-link p {
    max-width: 165px;
  }
  .daily-table {
    grid-template-columns: 42% 58%;
  }
  .daily-left {
    padding-left: 30px;
  }
  .daily-stage {
    padding: 24px 20px;
  }
  .daily-orbit {
    width: 280px;
    height: 280px;
  }
  .daily-paper {
    padding: 25px 23px;
  }
  .daily-word {
    font-size: 38px;
  }
  .decision-controls {
    padding: 35px 15px 30px 28px;
  }
  .wheel-stage {
    padding: 30px 20px;
  }
  .wheel-wrap {
    width: 280px;
    max-width: 100%;
  }
  .input-meta {
    font-size: 11px;
  }
  .presets {
    gap: 7px;
  }
  .saved-list {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer > div {
    gap: 12px;
  }
  .site-footer nav {
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .site-header {
    height: 114px;
  }
  .header-inner {
    position: relative;
    align-items: flex-start;
    padding: 17px 22px 0;
    gap: 16px;
  }
  .brand {
    font-size: 21px;
  }
  .saved-nav {
    height: 34px;
    min-height: 34px;
  }
  .saved-nav > span:not(.saved-count) {
    display: inline;
    font-size: 11px;
  }
  .main-nav {
    position: absolute;
    bottom: 0;
    height: 44px;
    left: 22px;
    right: 22px;
    justify-content: space-between;
    gap: 0;
  }
  .main-nav a {
    height: 44px;
    font-size: 13px;
    justify-content: center;
    flex: 1;
  }
  .main-nav a[aria-current]:after {
    bottom: 0;
    width: 23px;
  }
  .intro {
    padding: 31px 17px 25px;
  }
  .intro h1 {
    font-size: 29px;
    max-width: 380px;
    margin: auto;
    line-height: 1.7;
  }
  .title-mark:after {
    height: 8px;
    bottom: 7px;
  }
  .intro p {
    font-size: 12px;
    margin-top: 10px;
    letter-spacing: 0;
  }
  .reading-table,
  .daily-table,
  .decision-table {
    margin: 0 16px;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .reading-table {
    position: relative;
  }
  .book-stage {
    order: 0;
    min-height: 290px;
    padding: 19px 14px 32px;
  }
  .reading-controls {
    order: 1;
    padding: 12px 25px 24px;
    text-align: center;
  }
  .reading-controls h2 {
    font-size: 22px;
  }
  .section-copy {
    font-size: 12px;
    margin-top: 9px;
    line-height: 1.9;
  }
  .section-copy br {
    display: block;
  }
  .topics {
    margin: 20px 0 17px;
  }
  .topics legend {
    font-size: 11px;
    width: 100%;
    margin-bottom: 10px;
  }
  #topic-options {
    justify-content: center;
    max-width: none;
    gap: 7px;
  }
  .topic span {
    font-size: 11px;
    padding: 8px 10px;
  }
  .primary-button {
    min-height: 49px;
    max-width: 340px;
    font-size: 14px;
  }
  .primary-button .button-arrow {
    margin-left: 5px;
  }
  .control-note {
    font-size: 11px;
    margin-top: 10px;
  }
  .book-object {
    width: 160px;
    height: 216px;
    margin: 3px 0 0;
  }
  .cover-top {
    font-size: 11px;
    margin-top: 23px;
  }
  .cover-border {
    inset: 12px 11px 12px 18px;
  }
  .cover-symbol {
    margin-top: 12px;
    height: 29px;
  }
  .cover-symbol svg {
    width: 31px;
    height: 31px;
  }
  .cover-title {
    font-size: 24px;
    margin-top: 7px;
  }
  .cover-subtitle {
    font-size: 11px;
    margin-top: 7px;
  }
  .cover-bottom {
    display: none;
  }
  .book-ribbon {
    width: 15px;
    height: 56px;
    bottom: -26px;
    right: 27px;
  }
  .book-caption {
    bottom: 9px;
    font-size: 11px;
  }
  .orbit {
    width: 258px;
    height: 258px;
  }
  .orbit-two {
    width: 307px;
    height: 184px;
  }
  .star-a {
    top: 52px;
    right: 43px;
    font-size: 23px;
  }
  .star-b {
    bottom: 58px;
    left: 40px;
    font-size: 19px;
  }
  .more-play {
    margin: 31px 20px 0;
  }
  .section-heading {
    margin-bottom: 16px;
  }
  .section-heading h2 {
    font-size: 20px;
  }
  .section-heading > span {
    display: none;
  }
  .play-links {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .play-link {
    padding: 19px 21px;
    gap: 20px;
    min-height: 108px;
  }
  .play-link h3 {
    font-size: 17px;
  }
  .play-link p {
    font-size: 11px;
    max-width: 220px;
  }
  .play-link .round-arrow {
    display: grid;
  }
  .quiet-note {
    margin: 32px 24px;
    gap: 12px;
  }
  .quiet-note p {
    font-size: 12px;
  }
  .quiet-note p span {
    font-size: 11px;
  }
  .site-footer {
    margin: 0 22px;
    padding: 23px 0;
    gap: 15px;
    font-size: 11px;
  }
  .site-footer > div {
    flex-wrap: wrap;
    gap: 7px 13px;
  }
  .footer-brand {
    font-size: 15px;
  }
  .site-footer nav {
    gap: 23px;
  }
  .site-footer > p {
    font-size: 11px;
    line-height: 1.9;
  }
  .answer-paper {
    margin: 8px 0 12px;
    width: 100%;
    max-width: 360px;
    padding: 25px 26px 20px;
  }
  .answer-paper h3 {
    font-size: 26px;
    margin: 24px 0 13px;
  }
  .answer-paper .paper-body {
    font-size: 12px;
  }
  .book-stage.has-result {
    padding: 14px 16px 0;
    min-height: 320px;
  }
  .paper-footer {
    flex-wrap: nowrap;
    margin-top: 23px;
  }
  .paper-footer button {
    font-size: 11px;
    padding: 5px;
  }
  .reading-table:has(.has-result) .reading-controls {
    padding-top: 16px;
  }
  .reading-table:has(.has-result) .section-copy {
    display: none;
  }
  .reading-table:has(.has-result) .reading-controls h2 {
    font-size: 18px;
  }
  .reading-table:has(.has-result) .topics {
    margin-top: 14px;
  }
  .daily-table {
    padding: 25px 20px 25px;
  }
  .daily-left {
    display: contents;
  }
  .date-display {
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 9px;
    width: 100%;
    margin: 0;
    order: 0;
  }
  .date-display strong {
    font-size: 39px;
    line-height: 1.3;
  }
  .date-display span {
    font-size: 11px;
    letter-spacing: 0;
  }
  .daily-left h2,
  .daily-left > p:not(.control-note) {
    display: none;
  }
  .daily-stage {
    order: 1;
    padding: 23px 0 29px;
    min-height: 330px;
  }
  .daily-envelope {
    width: 185px;
    height: 272px;
  }
  .envelope-circle {
    width: 100px;
    height: 100px;
    margin-top: 40px;
    font-size: 24px;
  }
  .envelope-text {
    font-size: 11px;
    margin-top: 24px;
  }
  .envelope-seal {
    margin-top: 16px;
    width: 25px;
    height: 25px;
    line-height: 24px;
    font-size: 12px;
  }
  .daily-left > .primary-button {
    order: 2;
    align-self: center;
  }
  .daily-left > .control-note {
    order: 3;
    text-align: center;
  }
  .daily-paper {
    padding: 22px 26px;
    max-width: 350px;
  }
  .daily-word {
    margin-top: 18px;
    font-size: 41px;
  }
  .daily-paper h3 {
    font-size: 20px;
  }
  .daily-paper .paper-footer {
    margin-top: 16px;
  }
  .related-strip {
    flex-direction: column;
    text-align: center;
    margin: 25px 24px 38px;
    gap: 8px;
    font-size: 12px;
  }
  .related-strip > span {
    font-size: 11px;
  }
  .decision-table {
    flex-direction: column;
  }
  .wheel-stage {
    order: 0;
    padding: 31px 25px 10px;
  }
  .wheel-wrap {
    width: 258px;
  }
  .decision-result {
    margin-top: 18px;
    min-height: 66px;
  }
  .decision-result h3 {
    font-size: 22px;
  }
  .decision-controls {
    padding: 12px 25px 25px;
    order: 1;
  }
  .decision-controls h2 {
    font-size: 22px;
  }
  .decision-controls label {
    margin-top: 13px;
  }
  .decision-controls textarea {
    min-height: 124px;
    font-size: 13px;
    line-height: 1.8;
    resize: vertical;
  }
  .input-meta {
    font-size: 11px;
  }
  .presets {
    margin: 10px 0 16px;
    gap: 12px;
  }
  .decision-controls .control-note {
    text-align: center;
  }
  .decision-controls .primary-button {
    width: 100%;
    max-width: none;
  }
  .saved-heading {
    margin: 2px 22px 20px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .saved-heading h2 {
    font-size: 21px;
  }
  .saved-heading > p {
    font-size: 11px;
  }
  .saved-list {
    margin: 0 20px 40px;
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .saved-empty {
    padding: 48px 20px;
  }
  .saved-empty h2 {
    font-size: 24px;
  }
  .saved-empty p {
    font-size: 12px;
  }
  .saved-card {
    padding: 23px;
  }
  .saved-card h3 {
    margin-top: 18px;
    font-size: 23px;
  }
  .saved-card .paper-footer {
    justify-content: space-between;
  }
  .about-copy {
    padding: 25px 22px;
    margin: 0 17px 40px;
  }
  .about-copy h2 {
    font-size: 22px;
    margin-top: 30px;
  }
  .about-copy p {
    font-size: 13px;
  }
  .about-main .intro h1 {
    font-size: 28px;
  }
  .toast {
    bottom: 18px;
    font-size: 12px;
  }
  .paper-tools {
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .book-object:hover,
  .primary-button:hover:not(:disabled) {
    transform: none;
  }
}

.share-fallback {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.share-fallback input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--blue);
  background: var(--ground);
  font-size: 12px;
  margin-top: 6px;
}
.daily-left > .primary-button:disabled {
  cursor: default;
  opacity: 1;
  background: #6a7a5b;
}
.cover-top {
  font-size: 11px;
}
.cover-subtitle {
  font-size: 11px;
}
.cover-bottom {
  font-size: 9px;
  letter-spacing: 0.12em;
}
.paper-footer button {
  min-height: 44px;
  font-size: 12px;
}
.paper-top {
  font-size: 11px;
}
.paper-body {
  font-size: 14px;
}
.saved-card .paper-body,
.daily-paper .paper-body {
  font-size: 13px;
}
.saved-card .daily-action {
  margin: 0 0 18px;
}
.play-link p {
  font-size: 12px;
}
.quiet-note p span {
  font-size: 12px;
}
.site-footer nav a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
}
.section-heading > span {
  font-size: 12px;
}
@media (max-width: 600px) {
  .answer-paper .paper-body {
    font-size: 14px;
  }
  .paper-footer button {
    font-size: 12px;
    gap: 4px;
  }
  .answer-paper h3 {
    font-size: 25px;
  }
  .control-note {
    font-size: 11px;
  }
  .site-footer > p {
    font-size: 10px;
  }
  .input-meta {
    font-size: 11px;
  }
  .book-caption span {
    width: 10px;
  }
  .cover-subtitle {
    letter-spacing: 0;
  }
  .play-link {
    gap: 16px;
  }
  .play-link p {
    max-width: 220px;
    font-size: 12px;
  }
  .topic span {
    min-height: 38px;
    display: flex;
    align-items: center;
  }
  .reading-controls {
    padding-top: 9px;
  }
  .topics {
    margin: 16px 0;
  }
  .section-copy br {
    display: none;
  }
}

/* Appearance tokens and the paired, locally served book illustrations. */
:root {
  color-scheme: light;
  --cover-art: url("./art/book-cover-day.jpg");
  --button-ink: #fff;
  --table-sage: #edf0e7;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #151c2a;
  --paper: #232d40;
  --ink: #e9e9e3;
  --muted: #acb8ce;
  --blue: #adbee9;
  --blue-dark: #c7d5f4;
  --blue-wash: #202b40;
  --line: #3a465c;
  --gold: #e8d394;
  --sage: #2b3935;
  --sage-ink: #bccfa5;
  --table-sage: #222f2e;
  --peach: #3b3333;
  --danger: #ffa8aa;
  --button-ink: #172238;
  --shadow: 0 16px 36px #05091033;
  --cover-art: url("./art/book-cover-night.jpg");
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.utility-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.utility-button:hover {
  background: var(--blue-wash);
  color: var(--blue);
}
.utility-button svg {
  width: 19px;
  height: 19px;
}
.theme-sun,
[data-theme="dark"] .theme-moon {
  display: none;
}
[data-theme="dark"] .theme-sun {
  display: block;
}
.header-inner {
  gap: 22px;
}
.main-nav {
  gap: 26px;
}
.saved-nav {
  white-space: nowrap;
}
.site-header {
  background: var(--paper);
}
.primary-button {
  color: var(--button-ink);
}
.bank-caption {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  margin-top: 13px;
}
.reading-controls {
  padding-top: 48px;
  padding-bottom: 40px;
}
.book-object {
  width: 230px;
  height: 330px;
}
.book-cover {
  background:
    linear-gradient(90deg, #121f4655, transparent 12%),
    var(--cover-art) center/cover;
  color: #fff0c7;
}
.cover-border {
  inset: 13px 13px 13px 19px;
  border-color: #f6e2a95c;
}
.cover-symbol {
  display: none;
}
.cover-top {
  margin-top: 39px;
  color: #fff0cc;
  font-size: 10px;
}
.cover-title {
  margin-top: 37px;
  color: #fff3d3;
  font-size: 32px;
}
.cover-subtitle {
  margin-top: 7px;
  color: #fff0cc;
  font-size: 11px;
}
.cover-bottom {
  margin-top: 16px;
  color: #fff0cc;
  font-size: 9px;
}
.collection-language {
  max-width: 1000px;
  margin: -10px auto 20px;
  font-size: 12px;
  color: var(--muted);
}
.saved-empty {
  padding-top: 30px;
}
.companion-art {
  width: 165px;
  height: 165px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.saved-empty h2 {
  margin-top: 0;
}
.saved-card,
.about-copy {
  background: var(--paper);
}
.daily-table {
  background: var(--table-sage);
}
.daily-left > p:not(.control-note),
.book-caption,
.quiet-note p span,
.site-footer > p {
  color: var(--muted);
}
[data-theme="dark"] .book-stage {
  background: radial-gradient(ellipse at 54% 44%, #3c4b693d, transparent 64%);
}
[data-theme="dark"] .orbit,
[data-theme="dark"] .daily-orbit {
  border-color: var(--line);
}
[data-theme="dark"] .topic span {
  background: #29364c;
  color: #bec9de;
}
[data-theme="dark"] .topic input:checked + span,
[data-theme="dark"] .topic:hover span {
  background: #394966;
  color: #f0f3fc;
  border-color: #8d9ebf;
}
[data-theme="dark"] .title-mark:after {
  background: #3a4864;
}
[data-theme="dark"] .title-mark.sage-mark:after {
  background: #384b41;
}
[data-theme="dark"] .title-mark.peach-mark:after {
  background: #554837;
}
[data-theme="dark"] .daily-envelope,
[data-theme="dark"] .daily-paper {
  background: #2c3834;
}
[data-theme="dark"] .envelope-line,
[data-theme="dark"] .envelope-circle,
[data-theme="dark"] .envelope-seal {
  border-color: #75856c;
}
[data-theme="dark"] .daily-action {
  background: #354538;
}
[data-theme="dark"] .sage-button:hover:not(:disabled) {
  background: #d1dfc0;
}
[data-theme="dark"] .daily-left > .primary-button:disabled {
  background: #b1c2a0;
}
[data-theme="dark"] .decision-table {
  background: var(--blue-wash);
}
[data-theme="dark"] .decision-controls textarea {
  background: var(--paper);
  border-color: var(--line);
}
[data-theme="dark"] .wheel-wrap {
  border-color: #77859f;
}
[data-theme="dark"] .wheel-wrap > svg text {
  fill: #27304b;
}
[data-theme="dark"] .wheel-center {
  background: #29364d;
}
[data-theme="dark"] .play-link {
  border-color: var(--line);
}
[data-theme="dark"] .mini-calendar {
  background: #29392c;
  border-color: #66765e;
  color: #c4d4b1;
}
[data-theme="dark"] .mini-calendar > span {
  background: #465b41;
  color: #e1ebd7;
}
[data-theme="dark"] .round-arrow {
  background: var(--paper);
}
[data-theme="dark"] .small-button {
  background: var(--paper);
}
[data-theme="dark"] .toast,
[data-theme="dark"] .noscript-note,
[data-theme="dark"] .skip-link {
  background: #d9e1f0;
  color: #1b2943;
}
[data-theme="dark"] ::selection {
  color: #172238;
}
html[lang="en"] {
  --display: Georgia, "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html[lang="en"] .brand {
  font-size: 21px;
  letter-spacing: -0.04em;
}
html[lang="en"] h1 {
  letter-spacing: -0.025em;
}
html[lang="en"] .reading-controls h2,
html[lang="en"] .decision-controls h2 {
  letter-spacing: -0.02em;
  font-size: 27px;
}
html[lang="en"] .intro p,
html[lang="en"] .control-note {
  letter-spacing: 0;
}
html[lang="en"] .cover-title {
  font-size: 30px;
  max-width: 180px;
  line-height: 1.05;
  text-transform: capitalize;
  text-align: center;
  letter-spacing: -0.025em;
  margin-top: 25px;
  padding: 0;
}
html[lang="en"] .cover-top {
  font: 9px var(--body);
  letter-spacing: 0.12em;
}
html[lang="en"] .cover-subtitle {
  font: 8px var(--body);
  letter-spacing: 0.08em;
  margin-top: 12px;
}
html[lang="en"] .cover-bottom {
  display: none;
}
html[lang="en"] .paper-body {
  line-height: 1.8;
}
html[lang="en"] .answer-paper h3 {
  line-height: 1.35;
  font-size: 29px;
}
html[lang="en"] .envelope-circle {
  font-size: 23px;
}
html[lang="en"] .envelope-seal {
  font: 8px/29px var(--body);
}
html[lang="en"] .envelope-text {
  font-size: 10px;
  letter-spacing: 0.06em;
}
html[lang="en"] .daily-word {
  letter-spacing: -0.025em;
  padding: 0;
  font-size: 38px;
  overflow-wrap: anywhere;
}
html[lang="en"] .daily-paper h3 {
  line-height: 1.4;
}
html[lang="en"] .paper-footer {
  flex-wrap: wrap;
}
html[lang="en"] .saved-card h3 {
  line-height: 1.4;
}
html[lang="en"] .section-heading h2 {
  letter-spacing: -0.015em;
}
@media (max-width: 1050px) {
  .header-inner {
    gap: 16px;
  }
  .header-tools {
    gap: 7px;
  }
  .saved-nav > span:not(.saved-count) {
    display: none;
  }
  .main-nav {
    gap: 20px;
  }
  .collection-language {
    margin-left: 40px;
    margin-right: 40px;
  }
  html[lang="en"] .brand {
    font-size: 19px;
  }
  html[lang="en"] .main-nav a {
    font-size: 12px;
  }
}
@media (min-width: 601px) and (max-width: 850px) {
  .brand span {
    max-width: 100px;
    white-space: normal;
    line-height: 1.1;
  }
  .main-nav {
    gap: 14px;
  }
  html[lang="en"] .main-nav a {
    max-width: 70px;
    line-height: 1.5;
    text-align: center;
  }
  .book-object {
    width: 195px;
    height: 290px;
  }
  .cover-title {
    font-size: 28px;
    margin-top: 30px;
  }
}
@media (max-width: 600px) {
  .header-inner {
    align-items: flex-start;
    padding: 12px 16px 0;
    gap: 8px;
  }
  .brand {
    margin-top: 6px;
    font-size: 21px;
    gap: 7px;
  }
  html[lang="en"] .brand {
    font-size: 18px;
    max-width: 168px;
  }
  .brand img {
    width: 27px;
    height: 27px;
  }
  .header-tools {
    gap: 3px;
  }
  .utility-button {
    min-width: 40px;
    height: 44px;
    border: 0;
    padding: 0 6px;
  }
  .saved-nav {
    min-width: 34px;
    min-height: 44px;
    height: 44px;
    gap: 0;
  }
  .saved-count {
    padding: 0 4px;
    font-size: 10px;
  }
  .saved-nav > span:not(.saved-count) {
    display: none;
  }
  .main-nav {
    left: 16px;
    right: 16px;
    gap: 0;
  }
  html[lang="en"] .main-nav a {
    font-size: 12px;
  }
  .book-object {
    width: 171px;
    height: 247px;
  }
  .book-stage {
    min-height: 310px;
    padding-top: 12px;
  }
  .cover-top {
    margin-top: 27px;
    font-size: 9px;
  }
  .cover-title {
    margin-top: 28px;
    font-size: 26px;
  }
  .cover-subtitle {
    font-size: 9px;
    margin-top: 5px;
  }
  .cover-bottom {
    display: none;
  }
  html[lang="en"] .cover-title {
    max-width: 140px;
    font-size: 26px;
    margin-top: 21px;
  }
  html[lang="en"] .cover-top {
    font-size: 8px;
  }
  html[lang="en"] .cover-subtitle {
    font-size: 7px;
    margin-top: 10px;
  }
  .reading-controls {
    padding: 9px 24px 26px;
  }
  .bank-caption {
    margin-top: 10px;
    font-size: 10px;
  }
  html[lang="en"] .intro h1 {
    font-size: 33px;
    line-height: 1.3;
  }
  html[lang="en"] .reading-controls h2,
  html[lang="en"] .decision-controls h2 {
    font-size: 24px;
  }
  html[lang="en"] #topic-options {
    gap: 7px;
  }
  html[lang="en"] .topic span {
    font-size: 11px;
    padding: 7px 9px;
  }
  html[lang="en"] .answer-paper h3 {
    font-size: 27px;
  }
  html[lang="en"] .paper-footer button {
    font-size: 11px;
  }
  .collection-language {
    margin: -8px 24px 20px;
    font-size: 11px;
  }
  .saved-empty .primary-button {
    width: auto;
  }
}
@media (max-width: 360px) {
  html[lang="en"] .brand span {
    max-width: 100px;
    white-space: normal;
    line-height: 1.08;
  }
  .header-tools {
    gap: 0;
  }
}

/* Personal pages inherit the book's quiet paper and ink. */
.journal-privacy { text-align: center; color: var(--muted); margin: -16px 0 32px; font-size: 13px; }
.pages-switch { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.pages-switch button { background: none; color: var(--muted); border: 0; border-bottom: 2px solid transparent; padding: 12px 2px; min-height: 48px; }
.pages-switch button[aria-pressed="true"] { color: var(--blue-dark); border-bottom-color: var(--blue); font-weight: 600; }
.answer-feedback { padding: 16px 0 0; margin-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.answer-feedback > div { display: inline-flex; gap: 8px; margin: 4px 0 4px 12px; }
.answer-feedback button { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; min-height: 40px; }
.answer-feedback button[aria-pressed="true"] { background: var(--blue-wash); color: var(--blue-dark); border-color: var(--blue); }
.answer-feedback small { display: block; font-size: 12px; }
.action-complete { display: block; width: 100%; background: transparent; border: 1px solid currentColor; border-radius: 8px; color: inherit; padding: 12px; margin-top: 16px; text-align: left; font-weight: 600; }
.action-complete span { display: block; font-size: 12px; font-weight: 400; margin-top: 2px; }
.action-complete[aria-pressed="true"] { background: var(--sage); color: var(--sage-ink); }
.recent-row { display: grid; grid-template-columns: 130px 1fr 20px; align-items: center; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.recent-row:hover .recent-title { text-decoration: underline; text-underline-offset: 5px; }
.recent-date { font-size: 13px; color: var(--muted); }
.recent-row small { display: block; font-family: var(--body); font-size: 12px; color: var(--muted); margin-top: 4px; }
.recent-title { font: 22px/1.5 var(--display); overflow-wrap: anywhere; }
.journal-empty { padding: 48px 24px; text-align: center; background: var(--blue-wash); border-radius: var(--radius); }
.journal-empty h2 { font: 30px/1.4 var(--display); }
.journal-empty p { color: var(--muted); }
.week-letter { max-width: 780px; margin: 0 auto; padding: 48px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px 4px 24px 4px; }
.week-letter h2 { font: 36px/1.3 var(--display); margin: 16px 0 20px; }
.week-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); list-style: none; padding: 24px 0; margin: 28px 0 12px; border-block: 1px solid var(--line); gap: 8px; }
.week-day { text-align: center; color: var(--muted); font-size: 12px; }
.week-day strong { display: block; font: 26px/1.8 var(--display); }
.week-day .day-mark { display: block; font-size: 18px; }
.week-day.is-visited { color: var(--blue-dark); background: var(--blue-wash); border-radius: 32px; }
.week-legend { color: var(--muted); font-size: 12px; }
#week-invitation { margin: 28px 0; }
@media(max-width:600px) {
  .journal-privacy { max-width: 290px; margin: -8px auto 24px; }
  .pages-switch { gap: 24px; }
  .recent-row { grid-template-columns: 88px 1fr 16px; gap: 12px; padding: 22px 0; }
  .recent-title { font-size: 19px; }
  .recent-date { font-size: 12px; }
  .week-letter { padding: 28px 18px; }
  .week-letter h2 { font-size: 30px; }
  .week-days { gap: 3px; }
  .week-day { font-size: 11px; }
  .week-day strong { font-size: 23px; }
  .answer-feedback > div { display: flex; margin-left: 0; }
}
.pages-switch, #recent-list, #week-section { width: calc(100% - 80px); max-width: 1000px; margin-left: auto; margin-right: auto; }
#recent-list, #week-section { margin-bottom: 64px; }
@media(max-width:600px) {
  .pages-switch, #recent-list, #week-section { width: calc(100% - 40px); }
  #recent-section .saved-heading { display: block; }
}

.journal-arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* Notes and practices continue the quiet reading table. */
.note-editor { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; text-align: left; color: var(--ink); }
.note-editor summary { cursor: pointer; color: var(--blue-dark); padding: 8px 0; min-height: 44px; font-size: 13px; }
.note-editor label { display: block; font-size: 13px; margin: 12px 0 8px; }
.note-editor textarea, .reading-search-wrap input, .practice-choice select { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); padding: 12px; font: inherit; caret-color: var(--blue); }
.note-editor textarea { resize: vertical; min-height: 120px; max-height: 400px; font-size: 16px; line-height: 1.6; }
.note-editor textarea::placeholder, .reading-search-wrap input::placeholder { color: var(--muted); opacity: 1; }
.note-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.note-editor .note-private { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 8px 0; }
.note-editor .text-button { font-size: 12px; min-height: 40px; }
.note-editor[data-save-state="error"] .note-state { color: var(--danger); }
.reading-search-wrap, #notes-list, .backup-tools { width: calc(100% - 80px); max-width: 1000px; margin: 0 auto 32px; }
.reading-search-wrap label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.reading-search-wrap > div { display: flex; align-items: center; gap: 16px; }
.reading-search-wrap input { max-width: 520px; font-size: 16px; min-width: 0; }
.reading-search-wrap button { white-space: nowrap; flex-shrink: 0; min-height: 44px; }
.search-empty { color: var(--muted); padding: 28px 0; grid-column: 1 / -1; }
#notes-list { max-width: 1000px; }
.note-entry { max-width: 760px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.note-entry .note-date { font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.note-entry h3 { font: 24px/1.5 var(--display); margin: 0 0 16px; }
.note-entry h3 a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.note-text { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 65ch; }
.backup-tools { border-top: 1px solid var(--line); padding-top: 32px; margin-bottom: 64px; }
.backup-tools h2 { font: 26px/1.4 var(--display); margin: 0 0 16px; }
.backup-tools p { max-width: 70ch; }
.backup-privacy, #backup-status { font-size: 13px; color: var(--muted); }
.backup-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.backup-preview { background: var(--blue-wash); padding: 20px; border-radius: 8px; max-width: 680px; }
.backup-preview button + button { margin-left: 18px; }
.practice-root { max-width: 1040px; width: calc(100% - 80px); margin: 72px auto; scroll-margin-top: 130px; }
.practice-heading { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 28px; }
.practice-heading h2 { font: 34px/1.3 var(--display); margin: 0 0 12px; }
.practice-heading p { color: var(--muted); margin: 0; }
.practice-heading a { white-space: nowrap; }
.practice-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.practice-choice label { display: block; font-size: 13px; margin-bottom: 12px; }
.practice-choice select { font-size: 16px; min-height: 48px; }
.practice-choice > p { color: var(--muted); }
.practice-progress { margin-top: 28px; font-size: 13px; }
.practice-steps { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.practice-steps button { display: block; width: 100%; background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 6px; padding: 8px 2px; min-height: 54px; font: 18px/1.4 var(--display); }
.practice-steps button[aria-current="step"] { border-color: var(--blue); color: var(--blue-dark); background: var(--blue-wash); }
.step-status { display: block; font: 13px/1.5 var(--body); }
.practice-page { background: var(--sage); color: var(--sage-ink); border-radius: 12px; padding: 32px; min-width: 0; }
.practice-page h3 { font: 29px/1.35 var(--display); margin: 0 0 20px; }
.practice-page > p { line-height: 1.8; }
.practice-position { font-size: 12px; margin: 0 0 18px; }
.practice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.practice-actions .primary-button { padding: 14px 20px; font-size: 14px; }
.practice-actions .text-button { color: inherit; }
.practice-finished { border-top: 1px solid currentColor; padding-top: 16px; font-size: 13px; }
.practice-recap { margin: 28px 0; padding-block: 20px; border-block: 1px solid var(--line); }
.practice-recap h3 { font: 23px/1.4 var(--display); margin: 0 0 12px; }
.practice-recap p { font-size: 14px; }
@media(max-width:600px) {
  .reading-search-wrap, #notes-list, .backup-tools, .practice-root { width: calc(100% - 40px); }
  .pages-switch { gap: 22px; }
  .reading-search-wrap > div { gap: 10px; }
  .reading-search-wrap button { font-size: 12px; }
  .practice-root { margin: 48px auto; }
  .practice-heading { display: block; }
  .practice-heading h2 { font-size: 29px; }
  .practice-heading a { display: inline-block; margin-top: 12px; }
  .practice-layout { grid-template-columns: 1fr; gap: 22px; }
  .practice-page { padding: 28px 24px; }
  .practice-page h3 { font-size: 26px; }
  .practice-actions { align-items: stretch; }
  .practice-actions .primary-button { width: 100%; }
  .note-entry h3 { font-size: 22px; }
}
@media(max-width:360px) {
  .header-inner { gap: 4px; }
  .brand { min-width: 0; font-size: 18px; }
  .brand span { max-width: 100px; white-space: normal; line-height: 1.1; }
  .header-tools .utility-button { width: 40px; min-width: 40px; flex: 0 0 40px; }
  .header-tools .saved-nav { width: 34px; min-width: 34px; flex: 0 0 34px; position: relative; }
  .header-tools .saved-count { position: absolute; top: 0; right: 0; }
}

/* Keep the next action close to the reading, across both languages. */
.reading-return { max-width: 1124px; margin: -8px auto 20px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 32px; }
.reading-return a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--blue-dark); font-size: 14px; }
.reading-return a span { text-decoration: none; }
.reading-return a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.reading-return svg { width: 17px; height: 17px; flex: 0 0 auto; }
.paper-footer { flex-wrap: wrap; }
.paper-footer button, html[lang="en"] .paper-footer button { min-height: 44px; font-size: 14px; padding: 9px 10px; }
.paper-footer button[data-act="save"] { background: var(--blue-wash); color: var(--blue-dark); }
.paper-footer button[data-act="save"][aria-pressed="true"] { background: var(--sage); color: var(--sage-ink); }
.note-editor summary, .note-editor label { font-size: 14px; }
.note-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; }
.note-done { background: var(--blue-wash); color: var(--blue-dark); border: 1px solid var(--line); border-radius: 6px; min-height: 44px; padding: 10px 16px; font: inherit; font-size: 14px; }
.note-done:hover { border-color: var(--blue); }
.note-editor .note-actions .text-button { min-height: 44px; font-size: 13px; }
.note-editor textarea { scroll-margin-block: 130px 24px; }
@media (max-width: 600px) {
  .reading-return { margin: -4px 20px 20px; gap: 0 20px; }
  .reading-return a { font-size: 13px; }
  .reading-table:not(:has(.has-result)) .reading-controls { order: 0; padding: 24px 20px 4px; }
  .reading-table:not(:has(.has-result)) .book-stage { order: 1; }
  .reading-controls .bank-caption { display: none; }
  .reading-controls .section-copy { font-size: 14px; line-height: 1.7; }
  .reading-controls .section-copy br { display: none; }
  .reading-controls .topics legend { font-size: 14px; }
  .reading-controls .topic span, html[lang="en"] .reading-controls .topic span { min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; padding: 8px 10px; }
  .reading-table:has(.has-result) .reading-controls h2, .reading-table:has(.has-result) .bank-caption { display: none; }
  .reading-table:has(.has-result) .reading-controls { padding: 4px 20px 24px; }
  .answer-paper .paper-footer, .daily-paper .paper-footer { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 8px; }
  .answer-paper .paper-footer [data-act="save"], .daily-paper .paper-footer [data-act="save"] { grid-column: 1 / -1; }
  .paper-footer button, html[lang="en"] .paper-footer button { white-space: normal; line-height: 1.3; }
  .answer-paper { scroll-margin-top: 124px; }
  .saved-main .intro h1 { font-size: clamp(24px,7.4vw,29px); }
  .saved-main .intro .title-mark { display: block; width: fit-content; margin-inline: auto; }
}

.analytics-choice {
  position:fixed; z-index:40; bottom:16px; left:50%; transform:translateX(-50%);
  width:min(680px,calc(100% - 32px)); padding:20px 24px; border:1px solid var(--line);
  border-radius:12px; background:var(--paper); color:var(--ink);
}
.analytics-choice[hidden] { display:none; }
.analytics-choice h2 { margin:0 0 8px; font:500 18px/1.4 var(--body); }
.analytics-choice p { margin:0; font-size:13px; line-height:1.6; color:var(--muted); }
.analytics-choice a { text-decoration:underline; text-underline-offset:3px; }
.analytics-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:14px; }
.analytics-actions button { min-height:44px; padding:8px 18px; border:1px solid var(--line); border-radius:8px; background:var(--blue-wash); color:var(--blue-dark); font-weight:500; }
.analytics-actions button:hover { border-color:var(--blue); }
.analytics-choice .analytics-notice:empty { display:none; }
.analytics-choice .analytics-notice { margin-top:10px; font-size:12px; }
.analytics-settings { min-height:44px; font-family:var(--body); }
@media(max-width:480px) {
  .analytics-choice { padding:16px; bottom:8px; width:calc(100% - 16px); }
  .analytics-choice h2 { font-size:16px; }
  .analytics-actions { gap:8px; }
  .analytics-actions button { flex:1; }
}
