:root {
  color-scheme: light;
  --forest: #14382f;
  --deep-forest: #0d2c25;
  --parchment: #f5eedc;
  --paper: #fbf7ec;
  --muted: #6e766e;
  --line: rgba(20, 56, 47, 0.18);
  --shadow: 0 24px 70px rgba(26, 46, 38, 0.13);
}

* { box-sizing: border-box; }

html { background: var(--parchment); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--forest);
  background:
    radial-gradient(circle at 50% -10%, rgba(217, 184, 90, 0.2), transparent 34rem),
    var(--parchment);
  transition: color .8s ease, background .8s ease;
}

body[data-light="night"] {
  color-scheme: dark;
  --paper: #13203a;
  --muted: #c8c9c4;
  --line: rgba(245, 238, 220, 0.17);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  color: var(--parchment);
  background:
    radial-gradient(circle at 50% -10%, rgba(88, 102, 139, 0.28), transparent 32rem),
    #101b33;
}

body[data-light="twilight"] {
  --paper: #183b33;
  --muted: #d4d2c8;
  --line: rgba(245, 238, 220, 0.18);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  color: var(--parchment);
  background:
    radial-gradient(circle at 50% -10%, rgba(188, 112, 72, 0.25), transparent 32rem),
    var(--deep-forest);
}

body[data-light="twilight"][data-twilight] {
  --paper: var(--twilight-paper);
  --muted: var(--twilight-muted);
  --line: color-mix(in srgb, var(--twilight-text) 18%, transparent);
  --shadow: 0 28px 80px color-mix(in srgb, #000 24%, transparent);
  color: var(--twilight-text);
  background:
    radial-gradient(circle at 50% -8%, color-mix(in srgb, var(--twilight-glow) 52%, transparent), transparent 32rem),
    linear-gradient(180deg, color-mix(in srgb, var(--twilight-wash) 72%, var(--twilight-bg)), var(--twilight-bg) 72%);
}

button { font: inherit; }

body.opening-active { overflow: hidden; }
body.location-dialog-open, body.tide-dialog-open { overflow: hidden; }
.opening-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem max(1.25rem, env(safe-area-inset-bottom));
  color: #f5eedc;
  background:
    radial-gradient(circle at 50% 44%, rgba(245, 238, 220, .07), transparent 27rem),
    #14382f;
  transition: opacity .65s ease, visibility .65s ease;
}
.opening-screen.hidden, .opening-seen .opening-screen { visibility: hidden; opacity: 0; pointer-events: none; }
.opening-inner { width: min(100%, 660px); text-align: center; }
.opening-edition, .opening-calendar, .opening-subtitle, .opening-year {
  font-family: ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .15em;
}
.opening-edition { margin: 0 0 1rem; font-size: clamp(.7rem, 2.7vw, .9rem); opacity: .58; }
.opening-screen h1 { margin: 0; font-size: clamp(2.6rem, 11vw, 5.3rem); font-weight: 500; line-height: .92; letter-spacing: -.035em; text-transform: uppercase; }
.opening-calendar { margin: .65rem 0 0; font-size: clamp(1rem, 5vw, 1.7rem); letter-spacing: .38em; opacity: .55; }
.opening-emblem-art { display: block; width: min(78vw, 410px); height: auto; margin: .6rem auto .45rem; }
.opening-subtitle { max-width: 31rem; margin: 0 auto 1rem; font-size: clamp(.7rem, 2.8vw, .88rem); line-height: 1.5; letter-spacing: .06em; text-transform: none; opacity: .62; }
.opening-enter, .about-close, .about-button {
  color: inherit;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
}
.opening-enter { min-height: 2.9rem; padding: .7rem 1.25rem; border-radius: 999px; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .8rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.opening-year { margin: 1rem 0 0; padding-top: .8rem; border-top: 1px solid rgba(245, 238, 220, .32); font-size: .72rem; }

.location-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  background: rgba(8, 24, 20, .64);
  backdrop-filter: blur(10px);
}
.location-dialog-backdrop[hidden] { display: none; }
.location-dialog {
  position: relative;
  width: min(100%, 31rem);
  padding: 1.5rem;
  color: var(--forest);
  border: 1px solid rgba(20, 56, 47, .18);
  border-radius: 1.6rem;
  background: #fbf7ec;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}
.location-dialog h2 { max-width: 24rem; margin: .25rem 0 .7rem; font-size: clamp(1.75rem, 7vw, 2.4rem); font-weight: 500; line-height: 1.02; }
.location-dialog > p:not(.eyebrow, .location-dialog-message, .location-privacy) { margin: 0; color: #65736d; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .92rem; line-height: 1.5; }
.location-dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: .4rem .65rem;
  color: var(--forest);
  border: 1px solid rgba(20, 56, 47, .18);
  border-radius: 999px;
  background: transparent;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
}
.location-dialog-backdrop[data-required="true"] .location-dialog-close { display: none; }
.location-dialog-status { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 1.15rem 0 .8rem; padding: .75rem .85rem; border: 1px solid rgba(20, 56, 47, .14); border-radius: .9rem; font-family: ui-sans-serif, system-ui, sans-serif; }
.location-dialog-status span { font-size: .72rem; opacity: .62; }
.location-dialog-status strong { overflow: hidden; font-size: .82rem; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.location-dialog-actions { display: grid; gap: .65rem; }
.location-choice { display: grid; gap: .25rem; width: 100%; padding: .9rem 1rem; color: var(--forest); text-align: left; border: 1px solid rgba(20, 56, 47, .18); border-radius: 1rem; background: rgba(20, 56, 47, .025); cursor: pointer; }
.location-choice[hidden] { display: none; }
.location-choice.primary { color: var(--parchment); border-color: var(--forest); background: var(--forest); }
.location-choice strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; font-weight: 600; }
.location-choice span { font-family: ui-sans-serif, system-ui, sans-serif; font-size: .76rem; line-height: 1.4; opacity: .72; }
.location-choice:disabled { cursor: wait; opacity: .55; }
.location-dialog-message { min-height: 1.3em; margin: .75rem 0 0; color: #985144; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .78rem; line-height: 1.4; }
.location-privacy { margin: .55rem 0 0; color: #65736d; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .7rem; line-height: 1.4; opacity: .7; }
.tide-station-choices { display: grid; gap: .55rem; }
.tide-station-choices:empty { display: none; }
.tide-station-choice-distance { font-variant-numeric: tabular-nums; }
.tide-dialog { max-height: calc(100svh - 2rem); overflow: auto; }
.tide-dialog h2 { max-width: 20rem; font-size: clamp(1.65rem, 6.2vw, 2.15rem); }
.tide-dialog .location-dialog-status { margin: .85rem 0 .65rem; }
.tide-dialog .location-dialog-actions { gap: .5rem; }
.tide-dialog .location-choice { padding: .7rem .8rem; }
.tide-dialog .location-choice strong { font-size: .94rem; }
.tide-dialog .location-choice span { font-size: .7rem; }

.app-shell {
  width: min(100%, 780px);
  margin: 0 auto;
  padding: max(1.1rem, env(safe-area-inset-top)) 1rem max(2rem, env(safe-area-inset-bottom));
  overflow-x: clip;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem .75rem;
  padding: .35rem .25rem 1rem;
}
.brand-lockup { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.brand-lockup .eyebrow { max-width: 8rem; margin: 0; line-height: 1.35; }
.brand-icon {
  display: block;
  flex: 0 0 2.55rem;
  width: 2.55rem;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.brand-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.header-date-block { grid-column: 1 / -1; min-width: 0; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: .45rem; min-width: 0; }
.about-button {
  display: grid;
  place-content: center;
  gap: .22rem;
  flex: 0 0 2.65rem;
  width: 2.65rem;
  aspect-ratio: 1;
  border-color: var(--line);
  border-radius: 50%;
}
.about-button span { display: block; width: 1rem; height: 1.5px; border-radius: 999px; background: currentColor; }

.view-switcher {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .35rem;
  margin: 0 0 1rem;
  padding: .3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}

.view-tab {
  min-height: 2.7rem;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: color .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.view-tab.active { color: var(--parchment); background: var(--forest); box-shadow: 0 5px 18px rgba(13, 44, 37, .2); }
.app-view { display: none; touch-action: pan-y; }
.app-view.active { display: block; }
.app-view.view-enter-forward { animation: view-enter-forward .3s cubic-bezier(.22, .72, .2, 1) both; }
.app-view.view-enter-backward { animation: view-enter-backward .3s cubic-bezier(.22, .72, .2, 1) both; }

@keyframes view-enter-forward {
  from { opacity: .35; transform: translate3d(2.75rem, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes view-enter-backward {
  from { opacity: .35; transform: translate3d(-2.75rem, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.eyebrow {
  margin: 0 0 .25rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .68;
}

.civil-time {
  min-height: 1.35em;
  margin: 0;
  overflow: hidden;
  font-size: clamp(1.18rem, 5.3vw, 1.48rem);
  line-height: 1.18;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mode-indicator {
  margin: .3rem 0 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  opacity: .62;
  cursor: pointer;
}

.location-button {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  max-width: min(42vw, 15rem);
  padding: .7rem .8rem;
  color: inherit;
  background: rgba(255, 255, 255, .17);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.location-button svg { width: 1rem; flex: 0 0 auto; fill: currentColor; }
.location-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.about-hero, .about-card {
  padding: 1.3rem;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}
.about-hero { padding: 1.5rem; background: linear-gradient(145deg, color-mix(in srgb, #a9bc85 25%, var(--paper)), var(--paper) 62%); }
.about-card { margin-top: 1rem; }
.about-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.about-close { padding: .45rem .7rem; border-color: var(--line); border-radius: 999px; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .7rem; font-weight: 700; }
.about-hero-content { max-width: 40rem; }
.about-hero h1 { max-width: 38rem; margin: 1.4rem 0 .8rem; font-size: clamp(2.6rem, 9vw, 5rem); font-weight: 500; line-height: .92; }
.about-lede { max-width: 34rem; margin: 0 0 1.1rem; font-size: clamp(1.2rem, 5vw, 1.7rem); line-height: 1.25; }
.about-hero-content > p:last-child, .about-card > p, .about-moon-section p, .about-rules p { font-family: ui-sans-serif, system-ui, sans-serif; font-size: .92rem; line-height: 1.58; }
.about-card h2 { margin: .1rem 0 .7rem; font-size: clamp(1.65rem, 7vw, 2.6rem); font-weight: 500; line-height: 1.05; }
.about-moon-section { display: flex; align-items: center; gap: 1.1rem; }
.about-moon-mark { flex: 0 0 auto; font-size: 4.3rem; }
.about-moon-section > div { min-width: 0; }
.about-note { padding-top: .9rem; border-top: 1px solid var(--line); opacity: .72; }
.about-art-figure { margin: 1rem 0 0; }
.about-theme-art { display: block; width: 100%; }
.about-theme-art img { display: block; width: 100%; height: auto; }
.about-art-night { display: none !important; }
body[data-light="night"] .about-art-day,
body[data-light="twilight"] .about-art-day { display: none; }
body[data-light="night"] .about-art-night,
body[data-light="twilight"] .about-art-night { display: block !important; }
.about-movement-art { width: min(100%, 25rem); margin-inline: auto; }
.about-art-figure figcaption { margin-top: .45rem; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .72rem; font-style: italic; text-align: center; opacity: .62; }
.about-movements { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.about-movements li { display: grid; grid-template-columns: .75rem 6.6rem 1fr; gap: .6rem; align-items: center; padding: .68rem 0; border-bottom: 1px solid var(--line); }
.about-movements i { width: .65rem; aspect-ratio: 1; border-radius: 50%; background: var(--movement); }
.about-movements strong { font-size: .92rem; }
.about-movements span { font-family: ui-sans-serif, system-ui, sans-serif; font-size: .76rem; line-height: 1.35; opacity: .68; }
.about-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.about-rules > div { padding: .9rem; border: 1px solid var(--line); border-radius: 1rem; }
.about-rules strong { font-size: 1rem; }
.about-rules p { margin: .35rem 0 0; font-size: .8rem; }
.about-closing { text-align: center; }
.about-quote { margin: .5rem auto 1rem; max-width: 32rem; font-family: Georgia, "Times New Roman", serif !important; font-size: clamp(1.35rem, 5vw, 2rem) !important; line-height: 1.3 !important; }
.about-acknowledgement { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .75rem !important; opacity: .62; }
.about-closing .opening-enter { margin-top: .4rem; }

.clock-card, .solar-arc-card, .day-card, .day-moon-card, .tide-card, .year-card, .calendar-card, .octave-hero, .octave-card, .passage-hero, .passage-calendar-card {
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.natural-note { margin-top: 1rem; padding: .85rem 1rem; border-top: 1px solid var(--line); font-family: ui-sans-serif, system-ui, sans-serif; }
.natural-note .eyebrow { margin-bottom: .28rem; }
.natural-note p:last-child { margin: 0; font-size: .82rem; line-height: 1.5; }

.clock-card { padding: 1rem 1rem 1.15rem; border-radius: 2rem; }

.wheel-wrap {
  position: relative;
  width: min(100%, 420px);
  margin: 0 auto;
  aspect-ratio: 1;
}

.movement-wheel { display: block; width: 100%; height: 100%; overflow: visible; }
.wheel-segment { stroke: var(--paper); stroke-width: 3; transition: opacity .5s ease, filter .5s ease; }
.wheel-segment.is-past { opacity: .68; }
.wheel-segment.is-future { opacity: .38; }
.wheel-segment.is-current { opacity: 1; filter: drop-shadow(0 0 9px rgba(245, 238, 220, .48)); }
.wheel-orbit { fill: none; stroke: currentColor; stroke-width: 1.2; opacity: .24; }
.corner-dot { fill: var(--paper); stroke: currentColor; stroke-width: 2; }
.civil-dot { fill: var(--paper); stroke: currentColor; stroke-width: 2; }
.civil-marker-label {
  fill: currentColor;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 750;
  text-anchor: middle;
  dominant-baseline: central;
  opacity: .72;
}
.year-quarter-label {
  fill: currentColor;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 9px;
  font-weight: 750;
  text-anchor: middle;
  dominant-baseline: central;
  opacity: .72;
}
.year-season-path { fill: none; stroke: none; }
.year-season-label {
  fill: currentColor;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .12em;
  text-anchor: middle;
  text-transform: uppercase;
  opacity: .76;
}
.now-dot { fill: var(--parchment); stroke: var(--forest); stroke-width: 3; }
.now-pointer { fill: currentColor; filter: drop-shadow(0 2px 3px rgba(13, 44, 37, .2)); }
.current-progress { fill: none; stroke: var(--parchment); stroke-width: 5; stroke-linecap: round; }

.clock-center {
  position: absolute;
  inset: 29%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.movement-label, .progress-label {
  margin: 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .62;
}

.clock-center h1 {
  max-width: 100%;
  min-height: 1em;
  margin: .34rem 0 .25rem;
  font-size: clamp(1.35rem, 6.3vw, 2.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .02em;
}

.progress-number {
  min-height: 1em;
  margin: 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2rem, 9vw, 3.7rem);
  font-weight: 270;
  line-height: 1;
}

.progress-number small { font-size: .38em; vertical-align: top; line-height: 1.7; }
.progress-label { margin-top: .3rem; font-size: .6rem; }
.movement-invitation {
  min-height: 2.15rem;
  max-width: 13.5rem;
  margin: .55rem 0 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .75rem;
  line-height: 1.35;
  opacity: .72;
}

.next-event {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .16rem 1rem;
  margin: -.2rem .35rem 0;
  padding: 1rem 1.05rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  color: var(--parchment);
  background: var(--forest);
  border-radius: 1.2rem;
  min-height: 5.1rem;
}

.next-kicker { grid-column: 1 / -1; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .68; }
.next-event strong { align-self: end; font-size: 1.04rem; line-height: 1.25; }
.next-event span:last-child { align-self: end; max-width: 13rem; font-size: .82rem; line-height: 1.3; text-align: right; }

.solar-arc-card {
  margin-top: 1rem;
  padding: 1rem .85rem .35rem;
  border-radius: 1.5rem;
}
.solar-arc-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; min-height: 1.15rem; padding: 0 .2rem; }
.solar-light-countdown { display: flex; flex-direction: column; align-items: flex-end; margin: 0; max-width: 11rem; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .72rem; line-height: 1.25; text-align: right; opacity: .7; }
.solar-light-countdown strong { font-size: .78rem; font-weight: 650; white-space: nowrap; }
.solar-light-countdown span { white-space: nowrap; }
.solar-arc-graphic { display: block; width: 100%; height: auto; margin-top: -.2rem; overflow: visible; color: inherit; }
.solar-arc-line { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.solar-horizon-line { fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; opacity: .28; }
.solar-arc-dot { fill: var(--paper); stroke: currentColor; stroke-width: 2; }
.solar-now-sun { display: none; color: currentColor; }
.solar-now-sun.is-visible { display: block; }
.solar-now-sun-disc { fill: var(--paper); stroke: currentColor; stroke-width: 1.8; }
.solar-now-sun-rays { fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; }
.solar-now-sun.is-twilight .solar-now-sun-disc { fill: none; }
.solar-now-sun.is-twilight .solar-now-sun-rays { opacity: 0; }
.solar-threshold-name, .solar-threshold-time, .solar-measure-label { font-family: ui-sans-serif, system-ui, sans-serif; }
.solar-threshold-name { fill: currentColor; font-size: 10.5px; font-weight: 650; letter-spacing: .035em; }
.solar-threshold-time { fill: currentColor; font-size: 10px; font-weight: 500; opacity: .66; }
.solar-measure-label { fill: currentColor; font-size: 10px; font-weight: 650; letter-spacing: .14em; opacity: .58; }
.solar-daylight-value { fill: currentColor; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 400; }

.day-card { margin-top: 1rem; padding: 1.2rem; border-radius: 1.5rem; }
.year-card, .calendar-card { padding: 1.2rem; border-radius: 1.5rem; }
.calendar-card { margin-top: 1rem; }
.section-heading h2 { margin: 0; font-size: 1.4rem; font-weight: 500; line-height: 1.15; }
.day-card .section-heading { min-height: 5rem; align-items: flex-start; }
.day-card .section-heading > div { min-width: 0; }
#solar-day-label { min-height: 2.3em; font-size: 1.25rem; line-height: 1.1; }
body[data-time-mode="civil"] #solar-day-label { font-size: 1.25rem; white-space: normal; }
.day-length { min-width: 5.4rem; min-height: 2.3em; max-width: 7rem; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .8rem; line-height: 1.35; text-align: right; opacity: .66; }

.movement-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.movement-item {
  position: relative;
  min-height: 4.25rem;
}

.movement-item.current .timeline-content,
.passage-item.current .timeline-content {
  border-color: var(--timeline-color);
  background: color-mix(in srgb, var(--timeline-color) 14%, var(--paper));
}

.day-moon-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.05rem 1.15rem;
  color: var(--parchment);
  background: var(--forest);
  border-radius: 1.35rem;
}
.day-moon-card.new-moon-day,
.current-moon-card.new-moon-day {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--parchment) 58%, transparent), 0 0 0 4px color-mix(in srgb, #d9b85a 18%, transparent);
}
.day-moon-card.new-moon-day .moon-glyph,
.current-moon-card.new-moon-day .moon-glyph {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid color-mix(in srgb, var(--parchment) 70%, transparent);
  border-radius: 50%;
  font-size: 1.65rem;
}
.day-moon-copy { min-width: 0; }
.day-moon-card h2 { margin: 0; font-size: 1.45rem; font-weight: 500; }
.day-moon-card p:not(.eyebrow) { margin: .24rem 0 0; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .78rem; line-height: 1.4; opacity: .76; }
.day-moon-card #day-moon-countdown { opacity: .96; }
.lunar-guidance { grid-column: 1 / -1; width: 100%; margin-top: .45rem; padding-top: .65rem; border-top: 1px solid color-mix(in srgb, var(--parchment) 32%, transparent); }
.lunar-guidance span { display: block; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .62rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; opacity: .68; }
.day-moon-card .lunar-guidance #day-moon-guidance { margin-top: .28rem; font-family: Georgia, "Times New Roman", serif; font-size: .88rem; font-style: italic; line-height: 1.42; opacity: .96; }
.moon-threshold { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .15rem .75rem; width: 100%; margin-top: .55rem; padding-top: .65rem; border-top: 1px solid color-mix(in srgb, var(--parchment) 32%, transparent); font-family: ui-sans-serif, system-ui, sans-serif; }
.moon-threshold[hidden] { display: none; }
.moon-threshold span { display: block; font-size: .62rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; opacity: .72; }
.moon-threshold strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; font-weight: 500; white-space: nowrap; }
.moon-threshold small { grid-column: 1 / -1; display: block; font-size: .66rem; line-height: 1.35; opacity: .76; }

.tide-card { margin-top: 1rem; padding: 1.2rem; border-radius: 1.5rem; }
.tide-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.tide-heading h2 { margin: 0; font-size: 1.45rem; font-weight: 500; }
.tide-station { margin: .24rem 0 0; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .76rem; line-height: 1.35; opacity: .65; }
.tide-station-button { display: block; max-width: 18rem; padding: 0; color: inherit; text-align: left; border: 0; background: transparent; cursor: pointer; }
.tide-station-button:hover, .tide-station-button:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: .2em; }
.tide-next { max-width: 11.5rem; margin: 1.35rem 0 0; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .78rem; font-weight: 650; line-height: 1.35; text-align: right; }
.tide-wave { display: block; width: 100%; height: auto; margin-top: .45rem; overflow: visible; color: inherit; }
.tide-midline { stroke: currentColor; stroke-width: 1; opacity: .14; }
.tide-wave-path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tide-now-line { stroke: currentColor; stroke-width: 1; stroke-dasharray: 2 4; opacity: .3; }
.tide-now-dot, .tide-turn-dot { fill: var(--paper); stroke: currentColor; stroke-width: 2; }
.tide-now-label, .tide-turn-label { fill: currentColor; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 9px; font-weight: 650; letter-spacing: .08em; }
.tide-turn-time { fill: currentColor; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 9px; font-weight: 500; opacity: .62; }
.tide-now-divider { position: relative; height: 1.35rem; margin-top: .2rem; border-top: 1px solid var(--line); }
.tide-now-triangle { position: absolute; left: 50%; top: -.48rem; width: 0; height: 0; border-right: .28rem solid transparent; border-bottom: .42rem solid currentColor; border-left: .28rem solid transparent; opacity: .58; transform: translateX(-50%); }
.tide-now-divider .tide-now-label { position: absolute; top: .22rem; left: 50%; font-size: .64rem; transform: translateX(-50%); }
.tide-events { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; list-style: none; margin: .15rem 0 0; padding: .55rem 0 0; }
.tide-events li { min-width: 0; text-align: center; }
.tide-events span, .tide-events strong { display: block; font-family: ui-sans-serif, system-ui, sans-serif; white-space: nowrap; }
.tide-events span { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; opacity: .58; }
.tide-events strong { margin-top: .18rem; font-size: .82rem; font-weight: 650; }
.tide-events li.is-past { opacity: .48; }
.tide-source { margin: .75rem 0 0; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .65rem; text-align: center; opacity: .52; }
.tide-source a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.tide-unavailable { padding: .35rem 0 0; text-align: center; }
.tide-unavailable[hidden] { display: none; }
.tide-quiet-water { position: relative; display: grid; min-height: 9.5rem; margin: .2rem 0 0; overflow: hidden; place-items: center; color: currentColor; }
.tide-quiet-water span { position: absolute; left: 2%; right: 2%; top: 6.4rem; height: 3rem; border-top: 1.5px solid currentColor; border-radius: 50%; opacity: .2; }
.tide-quiet-water span:nth-of-type(2) { left: 14%; right: 14%; top: 7.4rem; opacity: .1; }
.tide-quiet-water b { position: absolute; left: 50%; top: 5.25rem; display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border: 1px solid currentColor; border-radius: 50%; background: var(--paper); font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 400; opacity: .48; transform: translateX(-50%); }
.tide-unavailable-saying { position: relative; z-index: 1; max-width: 24rem; margin: 0 auto 2.35rem; padding: 0 .75rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 5.4vw, 1.75rem); line-height: 1.15; }
.tide-unavailable > p { margin: .1rem auto 0; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .84rem; opacity: .65; }
.tide-unavailable-choice { margin: .85rem auto 0; padding: .62rem .9rem; color: inherit; border: 1px solid var(--line); border-radius: 999px; background: rgba(20, 56, 47, .04); font-family: ui-sans-serif, system-ui, sans-serif; font-size: .76rem; font-weight: 650; cursor: pointer; }
.tide-unavailable small { display: block; max-width: 27rem; margin: 1rem auto 0; padding-top: .9rem; border-top: 1px solid var(--line); font-family: ui-sans-serif, system-ui, sans-serif; font-size: .68rem; line-height: 1.45; opacity: .52; }

.definition-note, .error-message {
  margin: 1rem .5rem 0;
  text-align: center;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .76rem;
  line-height: 1.5;
  opacity: .68;
}

.error-message { color: #be5247; opacity: 1; }

.year-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: .2rem .15rem 0;
}

.year-intro h1 { margin: 0; font-size: clamp(2.25rem, 11vw, 4rem); font-weight: 500; line-height: .95; }
.year-range { margin: .65rem 0 0; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .86rem; opacity: .66; }
.year-progress { flex: 0 0 auto; padding-top: .15rem; text-align: right; font-family: ui-sans-serif, system-ui, sans-serif; }
.year-progress strong { display: block; font-size: 1.45rem; font-weight: 500; }
.year-progress span { display: block; font-size: .72rem; opacity: .62; }

.year-wheel-wrap { position: relative; width: min(100%, 390px); margin: .6rem auto; aspect-ratio: 1; }
.year-wheel { display: block; width: 100%; height: 100%; overflow: visible; }
.cycle-start-line { stroke: currentColor; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 2px var(--paper)); pointer-events: none; }
.cycle-start-line.natural-start { stroke-width: 2.1; }
.cycle-start-line.civil-start { stroke-width: 1.4; opacity: .9; }
.year-wheel-center {
  position: absolute;
  inset: 31%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.year-wheel-center h2 { margin: .35rem 0 .4rem; font-size: clamp(1.35rem, 6vw, 2rem); font-weight: 500; line-height: 1; }
.year-wheel-center p:last-child { margin: 0; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .72rem; opacity: .68; }
.year-wheel-center p strong { font-size: 1rem; }

.current-moon-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  color: var(--parchment);
  background: var(--forest);
  border-radius: 1.2rem;
}
.moon-glyph { flex: 0 0 auto; font-size: 3.2rem; line-height: 1; }
.current-moon-card h2 { margin: 0; font-size: 1.4rem; font-weight: 500; }
.current-moon-card p:not(.eyebrow) { margin: .25rem 0 0; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .8rem; opacity: .74; }
.current-moon-card .moon-event { margin-top: .45rem; color: var(--parchment); font-weight: 700; opacity: 1; }
.current-moon-card .moon-event span,
.current-moon-card .moon-event strong { display: block; white-space: nowrap; }
.current-moon-card .moon-event span { font-size: .7rem; font-weight: 600; opacity: .74; }
.current-moon-card .moon-event strong { margin-top: .1rem; font-size: .8rem; font-weight: 750; }

.passage-list, .moon-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.passage-item { position: relative; min-height: 4.05rem; }
.passage-season-group {
  display: grid;
  grid-template-columns: 1.65rem minmax(0, 1fr);
  gap: .55rem;
  min-width: 0;
}
.passage-season-label {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.35rem 0 0;
  color: var(--forest);
  border: 1px solid color-mix(in srgb, var(--season-color) 58%, var(--line));
  border-radius: .75rem;
  background: color-mix(in srgb, var(--season-color) 14%, var(--paper));
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .57rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.passage-season-timeline { min-width: 0; }

.movement-list { --timeline-threshold-height: 1.2rem; --timeline-box-height: 3.05rem; }
.passage-list { --timeline-threshold-height: 1.2rem; --timeline-box-height: 2.85rem; }
.timeline-segment, .timeline-endpoint {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  grid-template-rows: var(--timeline-threshold-height) var(--timeline-box-height);
  gap: 0 .65rem;
  min-width: 0;
}
.timeline-threshold {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  min-width: 0;
  padding: 0 .55rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .63rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .62;
}
.timeline-threshold time { font-weight: 600; letter-spacing: .01em; }
.timeline-threshold time::before { content: "·"; margin-right: .35rem; }
.timeline-track { position: relative; grid-column: 1; grid-row: 1 / 3; align-self: stretch; min-height: 100%; }
.timeline-segment .timeline-track::before {
  content: "";
  position: absolute;
  top: .3rem;
  bottom: -.3rem;
  left: 50%;
  width: .2rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--timeline-color) 74%, var(--line));
  transform: translateX(-50%);
}
.timeline-node {
  position: absolute;
  z-index: 2;
  top: .16rem;
  left: 50%;
  width: .62rem;
  height: .62rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--paper);
  transform: translateX(-50%);
}
.timeline-now {
  position: absolute;
  z-index: 3;
  top: clamp(1.55rem, var(--segment-progress), calc(100% - .42rem));
  left: 50%;
  width: .9rem;
  height: .9rem;
  border: .22rem solid var(--timeline-color);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 .18rem color-mix(in srgb, var(--timeline-color) 18%, transparent);
  transform: translate(-50%, -50%);
}
.timeline-content {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: var(--timeline-box-height);
  padding: .58rem .75rem .55rem .9rem;
  border: 1px solid var(--line);
  border-left: .3rem solid var(--timeline-color);
  border-radius: .9rem;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
}
.timeline-content strong { display: block; font-size: 1rem; font-weight: 600; }
.timeline-meta { display: block; margin-top: .1rem; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .69rem; line-height: 1.3; opacity: .66; }
.passage-item .timeline-content {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.passage-item .timeline-meta { flex: 0 0 auto; margin-top: 0; text-align: right; white-space: nowrap; }
.timeline-endpoint { grid-template-rows: var(--timeline-threshold-height) 1.05rem; min-height: 2.4rem; }
.timeline-endpoint .timeline-track { grid-row: 1 / 2; }
.timeline-endpoint .timeline-content { grid-row: 2; min-height: auto; padding: 0 .55rem; border: 0; background: transparent; }
.timeline-endpoint .timeline-content small { font-family: ui-sans-serif, system-ui, sans-serif; font-size: .52rem; font-weight: 700; letter-spacing: .12em; opacity: .42; }
.timeline-endpoint .timeline-node { top: .16rem; }
.passage-endpoint { margin-left: 2.2rem; }

.moon-list { border-top: 1px solid var(--line); }
.moon-item { display: grid; grid-template-columns: 1.15rem 1fr auto; gap: .65rem; align-items: center; padding: .82rem .1rem; border-bottom: 1px solid var(--line); }
.moon-item.current { color: var(--forest); font-weight: 700; }
body[data-light="night"] .moon-item.current, body[data-light="twilight"] .moon-item.current { color: var(--parchment); }
.moon-mark { width: .7rem; height: .7rem; border: 2px solid currentColor; border-radius: 50%; opacity: .7; }
.moon-item.current .moon-mark { background: currentColor; opacity: 1; }
.moon-item.new-moon-today { background: color-mix(in srgb, #d9b85a 10%, transparent); }
.moon-item.new-moon-today .moon-mark { border-color: #b7953f; box-shadow: 0 0 0 4px color-mix(in srgb, #d9b85a 18%, transparent); }
.moon-name { font-size: .96rem; }
.moon-dates { font-family: ui-sans-serif, system-ui, sans-serif; font-size: .74rem; text-align: right; opacity: .67; }
.full-moon { display: block; margin-top: .18rem; font-size: .69rem; opacity: .72; }
.moon-threshold-note { display: block; margin-top: .2rem; color: #8d6e22; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .66rem; font-weight: 750; }
.calendar-note { margin: 1rem 0 0; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .76rem; line-height: 1.5; opacity: .64; }

.octave-hero, .octave-card, .passage-hero, .passage-calendar-card { padding: 1.2rem; border-radius: 1.5rem; }
.octave-card, .passage-calendar-card { margin-top: 1rem; }
.octave-intro, .passage-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: .2rem .1rem .9rem; }
.octave-intro > div:first-child { flex: 1 1 auto; min-width: 0; }
.octave-intro h1, .passage-intro h1 { margin: 0; font-size: clamp(2.5rem, 13vw, 4.7rem); font-weight: 500; line-height: .92; }
.passage-intro > div:first-child { flex: 1 1 auto; min-width: 0; }
.passage-intro h1 { min-height: 1em; font-size: clamp(1.75rem, 8vw, 3.35rem); white-space: nowrap; }
.octave-intro h1 { overflow: hidden; font-size: clamp(1.85rem, 8.8vw, 3.5rem); white-space: nowrap; text-overflow: clip; }
.octave-day-heading { display: flex; align-items: center; gap: .65rem; min-height: 3.5rem; }
.octave-date-badge {
  display: grid;
  place-items: center;
  flex: 0 0 3rem;
  width: 3rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .76rem;
  font-weight: 750;
}
.octave-date, .passage-range { margin: .7rem 0 0; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .82rem; line-height: 1.45; opacity: .66; }
.octave-date { min-height: 1.45em; white-space: nowrap; }
.octave-progress, .passage-view-progress { flex: 0 0 auto; padding-top: .1rem; text-align: right; font-family: ui-sans-serif, system-ui, sans-serif; }
.octave-progress { width: 5.25rem; }
.octave-progress strong, .passage-view-progress strong { display: block; font-size: 1.45rem; font-weight: 500; }
.octave-progress span, .passage-view-progress span { display: block; max-width: 6.5rem; font-size: .7rem; line-height: 1.25; opacity: .62; }

.octave-current-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  color: var(--parchment);
  background: var(--forest);
  border-radius: 1.2rem;
  min-height: 6.35rem;
}
.octave-current-card > div:last-child { min-width: 0; }
.octave-focus-panel {
  min-height: 5.25rem;
  margin: 0 .1rem .85rem;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: color-mix(in srgb, currentColor 4%, transparent);
}
.octave-focus-panel p { margin: 0; font-family: ui-sans-serif, system-ui, sans-serif; }
.octave-focus-panel .octave-association { font-size: .78rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; opacity: .68; }
.octave-focus-panel p:last-child { margin-top: .35rem; font-size: .86rem; line-height: 1.4; }
.octave-symbol {
  position: relative;
  flex: 0 0 3.25rem;
  width: 3.25rem;
  aspect-ratio: 1;
  border: 1px solid rgba(245, 238, 220, .65);
  border-radius: 50%;
  background: conic-gradient(var(--parchment) var(--octave-fill, 0deg), rgba(245, 238, 220, .12) 0);
  transform: rotate(-90deg);
}
.octave-current-card h2 { margin: 0; font-size: 1.4rem; font-weight: 500; }
.octave-current-card p:last-child { min-height: 2.2em; margin: .25rem 0 0; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .78rem; line-height: 1.4; opacity: .74; }

.octave-compatibility { display: none; }
.octave-practice-card {
  --active-chakra: #985144;
  position: relative;
  display: grid;
  grid-template-columns: minmax(9.2rem, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: .25rem clamp(.75rem, 3vw, 1.4rem);
  min-height: 15.25rem;
  padding: 1rem clamp(1rem, 4vw, 1.6rem) 1.15rem;
  overflow: hidden;
  color: var(--forest);
  border: 1px solid color-mix(in srgb, var(--forest) 42%, transparent);
  border-radius: 1.3rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.32), transparent 44%),
    #f5eedc;
  box-shadow: 0 .65rem 1.5rem rgba(18, 43, 37, .08);
}
.octave-practice-card[data-octave-day="Flow"] { --active-chakra: #bd7040; }
.octave-practice-card[data-octave-day="Will"] { --active-chakra: #bc9038; }
.octave-practice-card[data-octave-day="Heart"] { --active-chakra: #769269; }
.octave-practice-card[data-octave-day="Voice"] { --active-chakra: #618c9b; }
.octave-practice-card[data-octave-day="Vision"] { --active-chakra: #52698e; }
.octave-practice-card[data-octave-day="Crown"] { --active-chakra: #8d73a8; }
.octave-practice-header {
  position: relative;
  z-index: 3;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .15rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.octave-practice-header i { flex: 1; height: 1px; background: currentColor; opacity: .66; }
.octave-body-wrap { position: relative; z-index: 1; min-width: 0; aspect-ratio: 300 / 330; }
.octave-day-art { position: absolute; z-index: 3; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.octave-element-field, .octave-figure-art, .octave-body { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.octave-body-wrap > .octave-element-field,
.octave-body-wrap > .octave-figure-art,
.octave-body-wrap > .octave-body { display: none; }
.octave-element-field { z-index: 0; overflow: visible; }
.octave-figure-art { z-index: 1; }
.octave-body { z-index: 2; color: var(--forest); overflow: visible; }
.octave-body .element-motif { display: none !important; }
.chakra circle { fill: color-mix(in srgb, var(--paper) 86%, currentColor); stroke: color-mix(in srgb, currentColor 42%, transparent); stroke-width: 1.4; transition: fill .45s ease, stroke .45s ease, filter .45s ease; }
.chakra text { fill: currentColor; font-family: Georgia, "Times New Roman", serif; font-size: 17px; text-anchor: middle; }
.octave-practice-card[data-active-note="Do"] .chakra-do circle,
.octave-practice-card[data-active-note="Re"] .chakra-re circle,
.octave-practice-card[data-active-note="Mi"] .chakra-mi circle,
.octave-practice-card[data-active-note="Fa"] .chakra-fa circle,
.octave-practice-card[data-active-note="Sol"] .chakra-sol circle,
.octave-practice-card[data-active-note="La"] .chakra-la circle,
.octave-practice-card[data-active-note="Ti"] .chakra-ti circle {
  fill: var(--active-chakra);
  stroke: color-mix(in srgb, var(--active-chakra) 78%, currentColor);
  stroke-width: 2.6;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--active-chakra) 38%, transparent));
}
.octave-practice-card[data-active-note="Do"] .chakra-do text,
.octave-practice-card[data-active-note="Re"] .chakra-re text,
.octave-practice-card[data-active-note="Mi"] .chakra-mi text,
.octave-practice-card[data-active-note="Fa"] .chakra-fa text,
.octave-practice-card[data-active-note="Sol"] .chakra-sol text,
.octave-practice-card[data-active-note="La"] .chakra-la text,
.octave-practice-card[data-active-note="Ti"] .chakra-ti text { fill: var(--parchment); }
.element-motif { display: none; fill: none; stroke: var(--active-chakra); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .72; }
.octave-practice-card[data-octave-day="Ground"] .motif-ground,
.octave-practice-card[data-octave-day="Flow"] .motif-flow,
.octave-practice-card[data-octave-day="Will"] .motif-will,
.octave-practice-card[data-octave-day="Heart"] .motif-heart,
.octave-practice-card[data-octave-day="Voice"] .motif-voice,
.octave-practice-card[data-octave-day="Vision"] .motif-vision,
.octave-practice-card[data-octave-day="Crown"] .motif-crown { display: block; }
.motif-ground { stroke-width: 2; opacity: .5; }
.motif-flow { stroke-width: 5; opacity: .42; }
.motif-will { stroke: none; opacity: .9; }
.motif-will .flame-outer { fill: color-mix(in srgb, #bc7048 78%, transparent); }
.motif-will .flame-inner { fill: color-mix(in srgb, #d9b85a 88%, transparent); }
.motif-heart { stroke-width: 2.15; opacity: .34; }
.motif-voice { stroke-width: 2.7; opacity: .38; }
.motif-vision { stroke-width: 2.4; opacity: .67; }
.motif-crown { stroke-width: 3; opacity: .88; filter: drop-shadow(0 0 7px color-mix(in srgb, #8d73a8 48%, transparent)); }
.motif-crown .halo-glow { stroke-width: 1.2; opacity: .62; }
.octave-practice-copy { position: relative; z-index: 2; min-width: 0; padding: .3rem 0 .65rem; }
.octave-practice-copy h2 { margin: 0; color: var(--forest); font-size: clamp(1.75rem, 6vw, 2.7rem); font-weight: 500; line-height: 1; }
.octave-chakra-label { margin: .48rem 0 0; color: color-mix(in srgb, var(--active-chakra) 84%, var(--forest)); font-family: ui-sans-serif, system-ui, sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.octave-copy-rule { display: block; width: 2.35rem; height: 1px; margin-top: .8rem; background: var(--forest); opacity: .42; }
.octave-guidance { max-width: 20rem; margin: .7rem 0 0; color: var(--forest); font-family: Georgia, "Times New Roman", serif; font-size: clamp(.9rem, 3.1vw, 1.05rem); font-style: italic; line-height: 1.4; }

.octave-list { position: relative; list-style: none; margin: 1rem 0 0; padding: 0; }
.octave-list::before { content: ""; position: absolute; left: 1.38rem; top: 1.6rem; bottom: 1.6rem; width: 1px; background: var(--line); }
.octave-item { position: relative; display: grid; grid-template-columns: 2.8rem 1fr auto; gap: .75rem; align-items: center; min-height: 4.4rem; padding: .55rem .7rem .55rem 0; border-bottom: 1px solid var(--line); }
.octave-item:last-child { border-bottom: 0; }
.octave-item:first-child .octave-note, .octave-item:last-child .octave-note { border-width: 2px; }
.octave-item:last-child::after { content: ""; position: absolute; left: .54rem; top: -.05rem; width: 1.7rem; height: 1px; background: var(--line); transform: rotate(-30deg); transform-origin: left center; }
.octave-note { z-index: 1; display: grid; place-items: center; width: 2.8rem; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .76rem; background: var(--paper); }
.octave-item.past { opacity: .58; }
.octave-item.future { opacity: .78; }
.octave-item.current .octave-note { color: var(--parchment); border-color: var(--forest); background: var(--forest); box-shadow: 0 0 0 5px color-mix(in srgb, var(--forest) 12%, transparent); }
.octave-name strong { display: block; font-size: 1.12rem; font-weight: 600; }
.octave-name small { display: block; min-height: 1.05rem; margin-top: .16rem; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .72rem; line-height: 1.35; opacity: .65; }
.octave-state { font-family: ui-sans-serif, system-ui, sans-serif; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
#octave-range { min-height: 1.2em; }
#octave-note { min-height: 3em; }

.passage-hero { overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--current-passage-color) 26%, var(--paper)), var(--paper) 66%); }
.passage-range { max-width: 20rem; }
.passage-progress-track { overflow: hidden; height: .48rem; margin: .15rem .1rem 0; background: color-mix(in srgb, var(--current-passage-color) 18%, transparent); border-radius: 999px; }
.passage-progress-track span { display: block; width: 0; height: 100%; background: var(--current-passage-color); border-radius: inherit; transition: width .7s ease; }
.passage-present { margin: .9rem .1rem .1rem; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .8rem; opacity: .68; }
.passage-present strong { font-weight: 750; }
.path-reflection { min-height: 7.2rem; margin-top: 1rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 1rem; background: color-mix(in srgb, currentColor 4%, transparent); }
.path-reflection strong { display: block; font-size: 1.1rem; font-weight: 600; }
.path-reflection p:last-child { max-width: 36rem; margin: .32rem 0 0; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .82rem; line-height: 1.45; opacity: .72; }
.passage-calendar-heading { align-items: flex-end; flex-wrap: wrap; }
.moon-key { display: flex; flex: 1 1 100%; flex-wrap: wrap; gap: .45rem .75rem; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .64rem; opacity: .72; }
.moon-key span { display: inline-flex; align-items: center; gap: .25rem; }
.calendar-symbol { display: inline-block; flex: 0 0 auto; width: .9rem; height: .9rem; overflow: visible; color: currentColor; --symbol-bg: var(--paper); }

.passage-weekdays, .passage-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.passage-weekdays { margin-top: 1.1rem; border-bottom: 1px solid var(--line); }
.passage-weekdays span { overflow: hidden; padding: 0 .08rem .45rem; font-family: ui-sans-serif, system-ui, sans-serif; font-size: clamp(.48rem, 2vw, .65rem); font-weight: 750; text-align: center; text-overflow: clip; letter-spacing: -.02em; opacity: .58; }
.passage-calendar-grid { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.passage-day { position: relative; min-width: 0; min-height: 4.15rem; padding: .34rem .2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: ui-sans-serif, system-ui, sans-serif; }
.passage-day.blank { background: color-mix(in srgb, currentColor 2%, transparent); }
.passage-day.current { z-index: 1; color: var(--parchment); background: var(--forest); box-shadow: 0 0 0 2px var(--forest); }
.passage-day.boundary { background-image: linear-gradient(135deg, color-mix(in srgb, var(--current-passage-color) 18%, transparent), transparent 65%); }
.passage-day.current.boundary { background-color: var(--forest); }
.day-month { display: block; margin-bottom: .05rem; font-size: .48rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; opacity: .62; }
.day-number { display: block; font-size: .83rem; }
.passage-day small { display: block; margin-top: .1rem; font-size: .47rem; font-weight: 700; text-transform: uppercase; opacity: .58; }
.day-symbols { position: absolute; right: .2rem; bottom: .25rem; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .08rem; max-width: calc(100% - .35rem); }
.day-symbols .calendar-symbol { width: .72rem; height: .72rem; }
.passage-day.current .calendar-symbol { --symbol-bg: var(--forest); }
.passage-day.new-moon-today { box-shadow: inset 0 0 0 2px color-mix(in srgb, #d9b85a 78%, transparent); }
.passage-events { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.passage-events ol { list-style: none; margin: .55rem 0 0; padding: 0; }
.passage-event { display: grid; grid-template-columns: minmax(7.8rem, 9rem) 1fr; gap: .7rem; padding: .62rem 0; border-bottom: 1px solid var(--line); font-family: ui-sans-serif, system-ui, sans-serif; }
.passage-event:last-child { border-bottom: 0; }
.passage-event time { font-size: .7rem; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; opacity: .58; }
.passage-event time strong { display: block; color: currentColor; font-size: .78rem; font-weight: 750; opacity: 1; }
.passage-event time small { display: block; margin-top: .16rem; font-size: .61rem; font-weight: 650; line-height: 1.35; letter-spacing: 0; white-space: normal; }
.passage-event span { font-size: .82rem; line-height: 1.35; }
.passage-event .event-copy { display: flex; align-items: flex-start; gap: .45rem; }
.passage-event .event-copy > .calendar-symbol { width: 1rem; height: 1rem; margin-top: .03rem; }
.passage-event .event-copy > span { min-width: 0; }
.passage-event .event-kind { display: inline-block; margin-left: .35rem; font-size: .58rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; opacity: .5; }
.event-copy-list { display: grid; gap: .6rem; }
.passage-event .event-meta { display: block; margin-top: .12rem; font-size: .61rem; font-weight: 650; line-height: 1.35; opacity: .58; }

@media (min-width: 680px) {
  .app-shell { padding-top: 2rem; }
  .clock-card { padding: 1.5rem 2rem 1.5rem; }
  .view-tab { font-size: .86rem; }
  .passage-day { min-height: 5.2rem; padding: .5rem .45rem; }
  .day-number { font-size: 1rem; }
  .octave-name small { font-size: .78rem; }
}

@media (max-width: 430px) {
  .location-dialog-backdrop:has(.tide-dialog) { place-items: end center; padding: max(.5rem, env(safe-area-inset-top)) 0 0; }
  .tide-dialog { width: 100%; max-height: calc(100svh - max(.5rem, env(safe-area-inset-top))); padding: 1rem; border-radius: 1.45rem 1.45rem 0 0; }
  .tide-dialog .eyebrow { font-size: .58rem; }
  .tide-dialog h2 { max-width: calc(100% - 3.6rem); margin: .18rem 0 .45rem; font-size: clamp(1.4rem, 7vw, 1.8rem); line-height: 1.02; }
  .tide-dialog > p:not(.eyebrow, .location-dialog-message, .location-privacy) { font-size: .76rem; line-height: 1.38; }
  .tide-dialog .location-dialog-close { top: .75rem; right: .75rem; }
  .tide-dialog .location-dialog-status { margin: .65rem 0 .5rem; padding: .55rem .65rem; }
  .tide-dialog .location-dialog-status span { font-size: .64rem; }
  .tide-dialog .location-dialog-status strong { font-size: .72rem; }
  .tide-dialog .location-choice { gap: .12rem; padding: .58rem .7rem; border-radius: .85rem; }
  .tide-dialog .location-choice strong { font-size: .88rem; line-height: 1.12; }
  .tide-dialog .location-choice span { font-size: .64rem; line-height: 1.28; }
  .tide-dialog .location-privacy { margin-top: .4rem; font-size: .62rem; line-height: 1.3; }
  .day-moon-card { gap: .7rem; }
  .octave-practice-card { grid-template-columns: minmax(8.2rem, .9fr) minmax(0, 1.1fr); min-height: 14rem; padding: .8rem .85rem 1rem; }
  .octave-practice-header { gap: .55rem; font-size: .57rem; letter-spacing: .18em; }
  .octave-practice-copy h2 { font-size: clamp(1.45rem, 6.5vw, 1.9rem); }
  .octave-chakra-label { font-size: .6rem; letter-spacing: .1em; }
  .octave-copy-rule { margin-top: .62rem; }
  .octave-guidance { margin-top: .55rem; font-size: .78rem; line-height: 1.38; }
  .passage-event { grid-template-columns: 7.25rem 1fr; gap: .5rem; }
  .about-rules { grid-template-columns: 1fr; }
  .about-movements li { grid-template-columns: .7rem 5.7rem 1fr; gap: .45rem; }
  .about-moon-section { align-items: flex-start; }
  .about-moon-mark { font-size: 3.2rem; }
  .tide-heading { align-items: flex-end; }
  .tide-next { max-width: 9rem; font-size: .72rem; }
  .tide-events { gap: .2rem; }
  .tide-events strong { font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
