@font-face {
  font-family: "Tenor Sans";
  src: url("assets/fonts/TenorSans-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-wght.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fffdf9;
  --cream: #f7f1e8;
  --cream-deep: #efe4d4;
  --ink: #1b1712;
  --muted: #675f55;
  --line: #d9cbb7;
  --line-strong: #bca98e;
  --gold: #a87933;
  --gold-deep: #7d5620;
  --terracotta: #b8753f;
  --sage: #728b76;
  --sage-soft: #e4ece4;
  --rose-soft: #f6e7e1;
  --danger: #8c3f32;
  --shadow: 0 18px 50px rgb(63 46 27 / 0.09);
  --radius: 18px;
  --radius-small: 11px;
  --content-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.65 "Manrope", system-ui, sans-serif;
  overflow-wrap: anywhere;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--gold-deep); }
img { max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-family: "Tenor Sans", Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 3vw, 2.625rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.55rem); }
p { margin: 0 0 1em; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus { top: 12px; }
.is-hidden { display: none !important; }
.muted { color: var(--muted); }
.mobile-only { display: none; }

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Keep course navigation out of the initial login and session-loading views. */
.app-shell.is-entry > .topbar,
.app-shell.is-entry > .mobile-daybar,
.app-shell.is-entry > .global-notice,
.app-shell.is-entry > .brand-footer,
.app-shell.is-entry .sidebar { display: none; }
.app-shell.is-entry > .workspace {
  display: block;
  max-width: 960px;
  padding: 24px 16px 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px clamp(18px, 3vw, 46px);
  border-bottom: 1px solid var(--line);
  background: rgb(255 253 249 / 0.96);
}

.topbar__brand,
.topbar__actions,
.brand-footer__identity,
.brand-footer__link,
.dialog__heading,
.dialog__actions,
.step-actions,
.status-actions,
.field-actions {
  display: flex;
  align-items: center;
}

.topbar__brand { min-width: 0; gap: 13px; }
.topbar__actions { justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.topbar__logo { width: 52px; height: 52px; object-fit: contain; }
.topbar__title { margin: 0; font: 400 1.24rem/1.1 "Tenor Sans", Georgia, serif; }

.eyebrow {
  margin: 0 0 5px;
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.button,
.icon-button,
.day-button,
.step-button,
.choice-button,
.body-region-button {
  border: 1px solid transparent;
  cursor: pointer;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: not-allowed; opacity: 0.46; transform: none; }
.button--primary { background: var(--ink); color: var(--paper); }
.button--quiet { border-color: var(--line); background: var(--paper); color: var(--ink); }
.button--danger { border-color: #d6aaa0; background: var(--rose-soft); color: var(--danger); }

.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 1.35rem;
}

.save-status {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.global-notice {
  margin: 14px clamp(18px, 3vw, 46px) 0;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--paper);
  color: var(--muted);
}

.workspace {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  flex: 1;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 24px 48px;
}

.sidebar {
  min-width: 0;
  align-self: start;
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-gutter: stable;
}

.sidebar__intro { margin-bottom: 24px; }
.course-help-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; padding: 12px 0; border-block: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }
.course-help-link:hover { color: var(--gold-deep); }
.sidebar__intro h2 { margin-bottom: 9px; font-size: 24px; }
.progress-track { height: 5px; border-radius: 99px; background: var(--cream-deep); overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--gold); transition: width 250ms ease; }

.day-navigation { display: grid; gap: 24px; }
.week-group { display: grid; gap: 7px; }
.week-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 3px; }
.week-heading h3 { font-size: 1rem; }
.week-heading span { color: var(--muted); font-size: 0.75rem; }

.day-button {
  min-height: 49px;
  width: 100%;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.day-button:hover { background: rgb(255 253 249 / 0.7); }
.day-button.is-active { background: var(--paper); border-color: var(--line); box-shadow: 0 8px 24px rgb(58 40 20 / 0.06); }
.day-button.is-locked { color: var(--muted); cursor: not-allowed; }
.day-button__number { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 0.74rem; }
.day-button__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8rem; font-weight: 650; }
.day-button__status { color: var(--sage); text-align: center; }

.pdf-library {
  margin: 0 0 28px;
  padding: 19px 0 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pdf-library h3 { font-size: 1.05rem; }
.pdf-library__intro { margin: 7px 0 14px; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.pdf-part-list { display: grid; gap: 7px; }

.pdf-part {
  min-height: 54px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.pdf-part.is-available { background: var(--paper); }
.pdf-part.is-available:hover { border-color: var(--sage); }
.pdf-part.is-locked { color: var(--muted); }
.pdf-part__symbol { color: var(--sage); font-size: 1.15rem; text-align: center; }
.pdf-part__copy { min-width: 0; display: grid; line-height: 1.3; }
.pdf-part__copy strong { font-size: 0.78rem; }
.pdf-part__copy span { color: var(--muted); font-size: 0.7rem; }
.pdf-part__state { color: var(--ink); font-size: 0.68rem; font-weight: 700; white-space: nowrap; }

.sidebar__privacy {
  margin-top: 28px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}
.sidebar__privacy strong { color: var(--ink); }
.sidebar__privacy p { margin: 5px 0 0; }

.main-stage { min-width: 0; }
.main-stage:focus { outline: none; }
.state-view { min-height: 56vh; display: grid; justify-items: center; align-content: center; text-align: center; padding: 50px 20px; }
.state-view img { margin-bottom: 17px; }
.state-view p:not(.eyebrow) { max-width: 600px; color: var(--muted); }
.state-view .button { margin-top: 10px; }

.day-view { width: 100%; max-width: var(--content-width); }
.day-header { margin-bottom: 27px; }
.day-header__meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 13px; }
.tag { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.tag--safety { border-color: #d9ac9d; background: var(--rose-soft); color: var(--danger); }
.day-header h1 {
  max-width: 30ch;
  font-size: clamp(36px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: 0;
}
.day-header__technique { margin: 12px 0 0; color: var(--gold-deep); font-weight: 700; }

.step-navigation {
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
}

.step-button {
  width: 100%;
  min-height: 44px;
  padding: 8px;
  border-bottom: 2px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.step-button.is-active { border-color: var(--gold); color: var(--ink); }
.step-button.is-complete::before { content: "✓ "; color: var(--sage); }

.step-content { min-height: 420px; }
.step-panel { display: grid; gap: 27px; }
.section-heading { max-width: 720px; }
.section-heading h2 { margin-bottom: 9px; }
.section-heading p { color: var(--muted); }

.hero-grid,
.practice-grid,
.form-grid,
.dialogue-grid,
.media-grid,
.body-map-layout {
  display: grid;
  gap: 22px;
}

.hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr); align-items: start; }
.practice-grid { grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr); align-items: start; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dialogue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.body-map-layout { grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr); align-items: start; }

.paper-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.paper-card h3 { margin-bottom: 12px; }
.paper-card > :last-child { margin-bottom: 0; }
.idea-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  grid-template-areas:
    "block-one media"
    "block-two media"
    "block-three block-three";
  gap: 22px;
}
.idea-editorial__block-1 { grid-area: block-one; }
.idea-editorial__block-2 { grid-area: block-two; }
.idea-editorial__block-3 { grid-area: block-three; }
.idea-editorial__detail-1, .idea-editorial__detail-2, .idea-photo-copy { display: none; }
.idea-editorial__media {
  grid-area: media;
  width: 100%;
  align-self: start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.idea-editorial__media .image-zoom { height: auto; }
.idea-editorial__media .idea-day-image {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center;
}
.idea-editorial--without-media { grid-template-columns: 1fr; grid-template-areas: "block-one" "block-two" "block-three"; }
.theory-card { box-shadow: none; }
.theory-card h3 { color: var(--gold-deep); }
.practice-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  grid-template-areas:
    "prep media"
    "steps media"
    "safety media";
  align-items: start;
  gap: 22px;
}
.practice-editorial__prep { grid-area: prep; }
.practice-editorial__summary { display: contents; }
.practice-editorial__safety { grid-area: safety; }
.practice-editorial__steps { grid-area: steps; }
.practice-editorial__media {
  grid-area: media;
  width: 100%;
  height: auto;
  align-self: start;
  justify-self: stretch;
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.image-figure {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.image-figure::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -26px;
  background-image: var(--image-backdrop);
  background-position: center;
  background-size: cover;
  filter: blur(22px) saturate(0.9);
  opacity: 0.72;
  transform: scale(1.08);
}
.image-figure::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgb(255 253 249 / 0.26);
  pointer-events: none;
}
.image-figure--tone::before,
.image-figure--tone::after { display: none; }
.image-figure--tone { background: var(--image-tone, #17140f); }
.image-figure--plain::before,
.image-figure--plain::after { display: none; }
.image-figure--plain { background: transparent; }
.image-zoom {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: calc(var(--radius) - 4px);
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.image-zoom:focus-visible { outline-offset: -4px; }
.image-zoom:hover .day-image { filter: brightness(0.97); }
.practice-overview { display: flex; flex-direction: column; justify-content: center; }
.image-zoom picture { display: block; width: 100%; }
.practice-steps { display: flex; flex-direction: column; }
.practice-steps .instruction-list { flex: 1; }
.step-range { margin-top: 18px; color: var(--muted); font-size: 0.76rem; font-weight: 700; }
.content-quote {
  padding: 12px 0 12px 16px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
}

.meaning-card { border-left: 4px solid var(--gold); }
.question-card { background: var(--sage-soft); border-color: #bdcdbf; box-shadow: none; }
.safety-card { background: var(--rose-soft); border-color: #dbb7ad; box-shadow: none; }
.support-card { background: var(--sage-soft); border-color: #b8c9ba; box-shadow: none; }

.day-image {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  background: var(--cream-deep);
  object-fit: cover;
  box-shadow: var(--shadow);
}
.day-image--portrait {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  aspect-ratio: auto;
  background: transparent;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.day-image--square { aspect-ratio: 1; object-fit: contain; }

.image-viewer {
  width: min(96vw, 1180px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 90px rgb(38 26 13 / 0.28);
}
.image-viewer::backdrop { background: rgb(27 23 18 / 0.76); backdrop-filter: blur(4px); }
.image-viewer form {
  position: relative;
  display: grid;
  place-items: center;
  gap: 10px;
  max-height: 94vh;
  padding: 16px;
}
.image-viewer__image {
  display: block;
  width: auto;
  max-width: calc(96vw - 32px);
  max-height: calc(94vh - 68px);
  object-fit: contain;
  border-radius: calc(var(--radius) - 4px);
}
.image-viewer__image--portrait-crop {
  width: min(calc(96vw - 32px), 56vh);
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center;
}
.image-viewer__close {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  background: rgb(255 253 249 / 0.9);
}
.image-viewer__caption {
  max-width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.instruction-list { margin: 0; padding: 0; display: grid; gap: 13px; list-style: none; counter-reset: steps var(--step-start, 0); }
.instruction-list li { position: relative; padding: 4px 0 4px 47px; counter-increment: steps; }
.instruction-list li::before { content: counter(steps); position: absolute; left: 0; top: 0; width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-deep); font-weight: 750; }

.field-group { min-width: 0; }
.field-group > label,
.field-label,
.dialog label { display: block; margin-bottom: 7px; font-weight: 750; }
.field-hint { margin: -2px 0 9px; color: var(--muted); font-size: 0.8rem; }

input[type="text"],
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  outline: none;
  background: var(--paper);
  color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgb(168 121 51 / 0.28); outline-offset: 2px; }

.repeatable { display: grid; gap: 14px; }
.repeatable-row { position: relative; display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.repeatable-row__number { color: var(--gold-deep); font-size: 0.78rem; font-weight: 800; }
.repeatable-row__remove { position: absolute; right: 9px; top: 7px; width: 38px; height: 38px; }
.field-actions { gap: 9px; flex-wrap: wrap; }

.check-list,
.choice-list { display: grid; gap: 9px; }
.check-option { min-height: 47px; display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--paper); }
.check-option input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--gold-deep); }

.choice-list { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choice-button { min-height: 48px; padding: 10px 12px; border-color: var(--line); border-radius: var(--radius-small); background: var(--paper); color: var(--ink); }
.choice-button.is-selected { border-color: var(--gold); background: #faf1df; }
.custom-option { padding: 10px; border: 1px dashed var(--line-strong); border-radius: var(--radius-small); }
.custom-option.is-selected { border-color: var(--gold); background: #faf1df; }

.dialogue-card { padding: 19px; border-top: 2px solid var(--gold); background: var(--paper); }
.dialogue-card h3 { font-size: 1.18rem; }

.body-map {
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--paper), #f4eadc);
}
.body-map-section { display: grid; gap: 18px; }
.body-map-instruction { margin: 0; color: var(--muted); text-align: center; }
.weather-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.weather-legend__item {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--paper);
}
.weather-legend__swatch {
  width: 28px;
  height: 28px;
  border: 1px solid rgb(27 23 18 / 0.16);
  border-radius: 50%;
}
.weather-legend__copy, .weather-legend__copy strong, .weather-legend__copy span { display: block; }
.weather-legend__copy strong { margin-bottom: 2px; font-size: 0.82rem; }
.weather-legend__copy span { color: var(--muted); font-size: 0.7rem; line-height: 1.35; }
.body-map svg { width: min(100%, 270px); height: auto; overflow: visible; }
.body-map__outline { fill: #f2e3d0; stroke: var(--line-strong); stroke-width: 2; }
.body-map__zone { fill: rgb(255 253 249 / 0.82); stroke: var(--gold); stroke-width: 2; cursor: pointer; transition: fill 150ms ease; }
.body-map__zone-group { cursor: pointer; outline: none; }
.body-map__zone-group:focus-visible .body-map__zone { stroke: var(--ink); stroke-width: 4; }
.body-map__zone-number {
  pointer-events: none;
  fill: var(--ink);
  font: 700 13px/1 "Manrope", system-ui, sans-serif;
  text-anchor: middle;
}
.body-map__zone[data-value="warm"] { fill: #e8b276; }
.body-map__zone[data-value="tense"] { fill: #cb806b; }
.body-map__zone[data-value="quiet"] { fill: #a8c0aa; }
.body-map__zone[data-value="numb"] { fill: #b4bec6; }
.body-map__zone[data-value="storm"] { fill: #aa8093; }
.body-map__zone[data-value="clear"] { fill: #ecdca2; }
.body-region-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.body-region-button {
  position: relative;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "label" "value";
  gap: 2px;
  place-content: center;
  padding: 10px 44px;
  border-color: var(--line);
  border-radius: var(--radius-small);
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}
.body-region-button__number {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 750;
}
.body-region-button strong { grid-area: label; display: block; }
.body-region-button__value { grid-area: value; display: block; color: var(--muted); font-size: 0.72rem; }
.body-region-button.has-value .body-region-button__value { color: rgb(27 23 18 / 0.74); }

.drawing-shell { display: grid; gap: 12px; }
.drawing-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.drawing-canvas-wrap { position: relative; min-height: 480px; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--paper); touch-action: none; }
.drawing-canvas-wrap canvas { width: 100%; height: 480px; display: block; touch-action: none; cursor: crosshair; }
.drawing-prompt { position: absolute; inset: 18px; display: grid; place-items: center; pointer-events: none; color: rgb(103 95 85 / 0.32); font: 400 clamp(1.4rem, 4vw, 2.7rem)/1.2 "Tenor Sans", Georgia, serif; text-align: center; }

.status-actions { align-items: stretch; gap: 10px; flex-wrap: wrap; }
.status-actions .button { flex: 1 1 170px; border-radius: var(--radius-small); }
.status-actions .button.is-selected { border-color: var(--gold); background: #f8edda; color: var(--ink); }

.step-actions { justify-content: space-between; gap: 15px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }

.auth-form {
  width: min(100%, 440px);
  display: grid;
  gap: 12px;
  margin: 18px auto 0;
  text-align: left;
}
.auth-form input,
.profile-section input,
#profile-dialog input,
#profile-dialog select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; }
.check-row input { width: 20px; min-height: 20px; flex: 0 0 20px; margin-top: 2px; }
.access-next-card { border-color: var(--gold-deep); }
.access-next-card .button { margin-top: 8px; }
#auth-consent { appearance: none; display: inline-grid; place-content: center; width: 18px; height: 18px; min-width: 18px; min-height: 18px; padding: 0; margin: 2px 0 0; border-radius: 3px; border: 1px solid var(--sage); cursor: pointer; }
#auth-consent:checked { background: var(--sage); }
#auth-consent:checked::after { content: ""; width: 5px; height: 9px; border: solid var(--paper); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
#auth-view { display: block; min-height: 0; padding: 20px 0 36px; text-align: left; }
.auth-heading { max-width: 780px; margin: 0 auto 24px; text-align: center; }
.auth-heading img { width: 62px; height: 62px; margin: 0 0 12px; }
.auth-heading .eyebrow { margin-bottom: 8px; }
.auth-heading h1 { font-size: clamp(29px, 3vw, 42px); line-height: 1.22; }
.auth-heading > p:last-child { max-width: 620px; margin: 12px auto 0; color: var(--muted); }
.auth-access-note { display: flex; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; margin-top: 20px; padding: 16px 20px; border-left: 4px solid var(--sage); background: var(--sage-soft); font-size: 0.91rem; line-height: 1.5; }
.auth-access-note strong { color: var(--ink); }
.auth-access-note span { color: #36533e; }
.auth-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin-top: 22px; }
.auth-option { display: flex; flex-direction: column; min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.auth-option h2 { margin: 7px 0 12px; font-size: 1.55rem; }
.auth-option > p:not(.eyebrow) { margin: 0 0 22px; font-size: 0.92rem; line-height: 1.55; }
.auth-telegram { border-color: #667d6a; background: #a4bba7; color: var(--ink); }
.auth-telegram .eyebrow { color: var(--ink); }
.auth-telegram > p:not(.eyebrow) { color: var(--ink); }
.auth-telegram__desktop-copy { display: none; }
.auth-option .button--primary { width: 100%; min-height: 48px; margin-top: auto; background: var(--gold-deep); color: var(--paper); text-align: center; }
.auth-telegram .button--primary { background: var(--paper); color: var(--ink); }
.auth-option .button--primary:hover,
.auth-option .button--primary:focus-visible { background: var(--sage); color: var(--paper); }
.auth-telegram .button--primary:hover,
.auth-telegram .button--primary:focus-visible { background: var(--sage-soft); color: var(--ink); }
.auth-form { width: 100%; gap: 9px; margin: auto 0 0; }
.auth-form label[for="auth-email"], .auth-form label[for="auth-code"] { font-weight: 700; font-size: 0.88rem; }
.auth-form .check-row { align-items: flex-start; margin: 4px 0; font-size: 0.78rem; line-height: 1.42; cursor: pointer; }
.auth-form input { text-align: left; }
.auth-details { margin-top: 21px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; }
.auth-details summary { width: fit-content; cursor: pointer; font-weight: 700; color: var(--gold-deep); }
.auth-details p { margin: 12px 0 0; }
#auth-domain-list { overflow-wrap: anywhere; }
.auth-telegram-notice { padding: 18px; border: 1px solid var(--sage); border-radius: var(--radius-small); background: var(--sage-soft); text-align: center; }
#auth-view .auth-telegram-notice p { margin: 8px 0 0; font-size: 14px; }
#auth-status:empty { display: none; }
@media (min-width: 900px) {
  .auth-telegram__desktop-copy { display: block; }
}
@media (max-width: 700px) {
  .auth-options { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .auth-option { padding: 22px; }
  .auth-heading { margin-bottom: 20px; }
  .auth-heading h1 { font-size: 30px; }
  .auth-access-note { display: block; padding: 14px 16px; }
  .auth-access-note strong { display: block; }
}
.profile-section { margin: 16px 0; padding: 14px 0; border-block: 1px solid var(--line); }
.profile-inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 8px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile-timezone-field { grid-column: 1 / -1; min-width: 0; }
#profile-timezone-hint { margin: 6px 0 0; font-size: 0.88rem; }
#profile-dialog label { display: block; margin: 12px 0 5px; font-weight: 700; }
.profile-onboarding { display: grid; gap: 18px; margin: 4px 0 22px; }
.profile-onboarding__copy { display: grid; gap: 10px; }
.profile-onboarding__copy p, .profile-author p { margin: 0; }
.profile-authors { display: grid; gap: 14px; }
.profile-author {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.profile-author img, .profile-onboarding__disclaimer img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}
.profile-author h3 { margin: 0 0 4px; font-size: 1.05rem; }
.profile-author__role { color: var(--accent-strong); font-weight: 700; }
.profile-onboarding__disclaimer { padding-top: 14px; border-top: 1px solid var(--line); }
.profile-onboarding__disclaimer img { max-width: 180px; margin-bottom: 12px; }

.brand-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.035em;
}
.brand-footer__identity { min-width: 0; gap: 9px; white-space: nowrap; }
.brand-footer__divider { color: var(--line-strong); font-weight: 400; }
.brand-footer__link { flex: 0 0 auto; color: var(--ink); text-decoration: none; font: inherit; white-space: nowrap; }
.brand-footer__link:hover span { text-decoration: underline; text-underline-offset: 3px; }

.dialog {
  width: min(620px, calc(100% - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 90px rgb(38 26 13 / 0.2);
}
.dialog::backdrop { background: rgb(27 23 18 / 0.46); backdrop-filter: blur(3px); }
.dialog form { padding: 25px; }
.dialog__heading { justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.dialog__actions { align-items: stretch; gap: 9px; flex-wrap: wrap; margin-top: 20px; }
.dialog__actions > * { flex: 1 1 150px; }
.print-part-list { display: grid; gap: 10px; margin-top: 18px; }
.print-part {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}
.print-part__copy { display: grid; line-height: 1.4; }
.print-part__copy span { color: var(--muted); font-size: 0.82rem; }
.print-part__actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.print-workbook { display: none; }

.toast {
  position: fixed;
  z-index: 200;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100% - 36px));
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
  font-size: 0.86rem;
}

@media (min-width: 1100px) {
  .idea-editorial {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "media media"
      "detail-one detail-two"
      "block-three block-three";
  }
  .idea-editorial--without-media {
    grid-template-columns: 1fr;
    grid-template-areas: "block-one" "block-two" "block-three";
  }
  .idea-editorial:not(.idea-editorial--without-media) .idea-editorial__block-1,
  .idea-editorial:not(.idea-editorial--without-media) .idea-editorial__block-2 { display: none; }
  .idea-editorial__detail-1, .idea-editorial__detail-2 { display: block; }
  .idea-editorial__detail-1 { grid-area: detail-one; }
  .idea-editorial__detail-2 { grid-area: detail-two; }
  .idea-editorial__media.image-figure--plain::after {
    display: block;
    z-index: 3;
    background: linear-gradient(0deg, rgb(15 13 11 / 0.88), rgb(15 13 11 / 0.46) 43%, transparent 76%);
  }
  .idea-photo-copy {
    position: absolute;
    z-index: 4;
    inset: auto 0 0;
    display: grid;
    gap: 8px;
    max-width: 740px;
    padding: 34px 42px 37px;
    color: var(--paper);
    pointer-events: none;
  }
  .idea-photo-copy__day { font-size: 0.8rem; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
  .idea-photo-copy__title { font-size: clamp(27px, 2.5vw, 38px); line-height: 1.18; }
  .idea-photo-copy__lead { margin: 0; font-size: 1rem; line-height: 1.5; }
  .idea-editorial__media .idea-day-image {
    aspect-ratio: 1672 / 941;
    object-fit: contain;
  }
  .practice-editorial {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "media media"
      "summary steps";
  }
  .practice-editorial__summary {
    grid-area: summary;
    display: grid;
    gap: 22px;
    min-width: 0;
  }
  .practice-editorial__summary > * { grid-area: auto; }
  .practice-editorial__media .day-image--portrait {
    aspect-ratio: 1600 / 1460;
    object-fit: contain;
  }
  .topbar {
    gap: 20px;
    padding: 12px max(10vw, calc((100vw - 1480px) / 2));
  }
  .topbar__brand { gap: 10px; }
  .topbar__logo { width: 42px; height: 42px; }
  .topbar__title { font-size: 1.08rem; }
  .topbar__brand .eyebrow { font-size: 0.66rem; }
  .topbar__actions { gap: 7px; }
  .topbar__actions .button {
    min-height: 37px;
    padding: 6px 12px;
    font-size: 0.82rem;
  }
  .workspace {
    width: 80%;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    padding: 28px 0 48px;
  }
  .sidebar__intro h2 { font-size: 21px; }
  .sidebar__intro p:not(.eyebrow) { font-size: 0.88rem; }
  .workspace .button { min-height: 38px; padding: 7px 13px; }
  .day-button { min-height: 42px; padding-block: 6px; }
  .pdf-part { min-height: 46px; }
  .step-button { min-height: 38px; padding-block: 6px; }
}

@media (min-width: 1100px) and (max-width: 1199px) {
  .topbar { padding-inline: 6vw; }
}

@media (max-width: 1099px) {
  .topbar { align-items: flex-start; }
  .workspace { display: block; padding: 24px 20px 48px; }
  .mobile-only { display: inline-flex; }
  .sidebar { display: none; position: static; max-height: none; margin-bottom: 24px; }
  .sidebar.is-open { display: block; }
  .mobile-daybar { display: flex; align-items: center; gap: 12px; padding: 12px 20px; }
  .mobile-daybar select { min-width: 0; }
  .topbar { flex-wrap: wrap; gap: 12px; }
  .practice-editorial {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "prep" "media" "steps" "safety";
  }
  .practice-editorial__media { max-width: 480px; justify-self: center; }
  .idea-editorial__media { max-width: 480px; justify-self: center; }
  .hero-grid, .practice-grid { grid-template-columns: 1fr; }
  .idea-editorial {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "media"
      "block-one"
      "block-two"
      "block-three";
  }
  .hero-grid .day-image { max-height: 600px; object-fit: cover; }
  .day-header h1 { font-size: 36px; }
}

@media (max-width: 820px) {
  #auth-view { padding: 12px 0 28px; }
  .profile-inline,
  .profile-grid { grid-template-columns: 1fr; }
  .profile-author { grid-template-columns: 82px minmax(0, 1fr); gap: 12px; }
  .mobile-only { display: inline-flex; }
  .topbar { align-items: center; padding: 12px 14px; }
  .topbar__logo { width: 39px; height: 39px; }
  .topbar__brand .eyebrow { display: none; }
  .topbar__actions { width: 100%; justify-content: flex-start; }
  .topbar__actions .button { font-size: 0.78rem; }
  .save-status { width: 100%; font-size: 0.75rem; }
  .topbar__actions .button { min-height: 44px; padding-inline: 13px; }
  .workspace { display: block; padding: 24px 16px 52px; }
  .sidebar { display: none; position: static; max-height: none; overflow: visible; margin: 0 0 24px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
  .sidebar.is-open { display: block; }
  .mobile-daybar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .mobile-daybar label { flex: 0 0 auto; font-size: 0.78rem; font-weight: 750; }
  .mobile-daybar select { min-height: 44px; padding-block: 8px; }
  .main-stage, .day-view { width: 100%; }
  .idea-editorial__media, .practice-editorial__media { max-width: 100%; }
  .day-header h1 { max-width: none; font-size: 34px; }
  .step-navigation { margin-bottom: 24px; gap: 2px; }
  .step-button { padding-inline: 3px; font-size: 0.72rem; }
  .form-grid, .dialogue-grid, .media-grid, .body-map-layout, .practice-grid { grid-template-columns: 1fr; }
  .practice-editorial {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "prep"
      "media"
      "steps"
      "safety";
  }
  .practice-editorial__media,
  .practice-editorial__media .image-zoom { height: auto; }
  .practice-editorial__media .day-image--portrait {
    width: 100%;
    height: auto;
  }
  .body-map { min-height: 380px; }
  .weather-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drawing-canvas-wrap, .drawing-canvas-wrap canvas { min-height: 420px; height: 420px; }
  .brand-footer { align-items: center; flex-direction: column; gap: 7px; font-size: 0.64rem; line-height: 1.45; text-align: center; }
  .brand-footer__identity { max-width: 100%; justify-content: center; gap: 6px; white-space: normal; }
  .brand-footer__link { font: inherit; line-height: inherit; }
  .print-part { grid-template-columns: 1fr; }
  .print-part__actions { justify-content: stretch; }
  .print-part__actions > * { flex: 1 1 100%; }
  .toast { right: 12px; bottom: 12px; }
}

@media (max-width: 480px) {
  .topbar__title { font-size: 1rem; }
  .topbar__actions { gap: 5px; }
  #desktop-link-button { font-size: 0.78rem; min-height: 44px; padding-inline: 12px; }
  .paper-card { padding: 19px 16px; }
  .weather-legend { grid-template-columns: 1fr; }
  .weather-legend__item { grid-template-columns: 32px minmax(0, 1fr); }
  .body-region-list { grid-template-columns: 1fr; }
  .body-region-button {
    min-height: 70px;
    padding-inline: 48px;
  }
  .step-navigation { grid-template-columns: repeat(4, 1fr); }
  .step-button { white-space: normal; }
  .body-region-list { grid-template-columns: 1fr; }
  .step-actions .button { min-width: 92px; }
  .brand-footer { padding-block: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  @page { size: A4; margin: 13mm 14mm 16mm; }

  html, body { background: #fff; color: #1b1712; font-size: 10.5pt; }
  .app-shell, body > dialog, body > .toast { display: none !important; }
  .print-workbook {
    display: block !important;
    width: auto;
    color: #1b1712;
    font: 400 10.5pt/1.48 "Manrope", Arial, sans-serif;
  }
  .print-workbook h1,
  .print-workbook h2,
  .print-workbook h3,
  .print-workbook h4 { color: #1b1712; break-after: avoid; }
  .print-cover {
    min-height: 252mm;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    break-after: page;
  }
  .print-cover__brand { color: #7d5620; font-size: 9pt; font-weight: 750; letter-spacing: 0.12em; }
  .print-cover h1 { max-width: 150mm; margin: 8mm 0 5mm; font-size: 32pt; }
  .print-cover h2 { margin-bottom: 6mm; font-size: 18pt; }
  .print-day { break-before: page; }
  .print-day__heading { padding-bottom: 5mm; border-bottom: 1px solid #d9cbb7; }
  .print-day__heading h2 { margin: 1.5mm 0 2mm; font-size: 22pt; }
  .print-image { margin: 6mm auto; text-align: center; break-inside: avoid; }
  .print-image img { display: block; width: auto; max-width: 100%; margin: 0 auto; border-radius: 2mm; }
  .print-image--cover { max-height: 105mm; }
  .print-image--technique { max-height: 205mm; }
  .print-theory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5mm; margin: 5mm 0; }
  .print-content-block,
  .print-practice,
  .print-answers,
  .print-field,
  .print-simple-answer,
  .print-repeatable-row,
  .print-safety { break-inside: avoid; }
  .print-content-block { padding: 4mm; border: 1px solid #d9cbb7; border-radius: 2mm; }
  .print-content-block:first-child { grid-column: 1 / -1; }
  .print-content-block h3,
  .print-practice h3,
  .print-answers h3 { margin-bottom: 2.5mm; font-size: 15pt; }
  .print-practice,
  .print-answers { margin-top: 7mm; }
  .print-steps { padding-left: 7mm; }
  .print-steps li { margin-bottom: 2.5mm; padding-left: 1.5mm; }
  .print-safety { padding: 4mm; border: 1px solid #dbb7ad; background: #f6e7e1; }
  .print-field { margin: 5mm 0; }
  .print-field h4 { margin: 0 0 1.5mm; font-size: 11.5pt; }
  .print-field__hint { color: #675f55; }
  .print-value { min-height: 13mm; margin-top: 1.5mm; padding: 3mm; border: 1px solid #bca98e; border-radius: 2mm; white-space: pre-wrap; }
  .print-value.is-empty { background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 7mm, #e7ded1 7.2mm, transparent 7.4mm); }
  .print-repeatable-row { margin-top: 3mm; padding: 3mm; border: 1px solid #d9cbb7; }
  .print-drawing { display: block; width: 100%; max-height: 190mm; margin-top: 2mm; }
  .print-footer { display: flex; justify-content: space-between; gap: 8mm; margin-top: 10mm; padding-top: 3mm; border-top: 1px solid #d9cbb7; color: #675f55; font-size: 8pt; break-inside: avoid; }
}
/* Published day recordings keep their natural proportions on every screen. */
.workbook-supplement { min-width: 0; padding: 24px 0; border-top: 1px solid var(--line, #ddd); }
.workbook-supplement h3 { margin-bottom: 16px; }
.workbook-supplement video, .workbook-supplement audio { display: block; width: 100%; max-width: 100%; margin-bottom: 16px; }
.workbook-supplement video { max-height: 75svh; background: #151515; border-radius: 8px; }
.workbook-supplement__text { white-space: pre-wrap; overflow-wrap: anywhere; }
@media print { .workbook-supplement video, .workbook-supplement audio, .workbook-supplement a { display: none; } }

/* Invitation-first entry, before channel selection. */
.promo-entry { max-width: 520px; margin: 24px auto; }
.promo-entry > .button--quiet { margin-top: 14px; }
.auth-step-label { text-align: center; color: var(--sage); font-weight: 700; }
#promo-entry-back { display: block; margin: 0 auto; }
