/* Soma Studio: the students' side of somadancemethod.com. Phone first. */

:root {
  --cream: #f4eee1;
  --cream-deep: #ece3d0;
  --paper: #fffdf8;
  --line: #e6dcc8;
  --line-strong: #d8ccb4;
  --forest: #1d2b21;
  --forest-2: #253528;
  --ink: #2a3527;
  --ink-soft: #5b6756;
  --muted: #8a8472;
  --moss: #57684d;
  --moss-deep: #4a5d42;
  --moss-tint: #e4e6d6;
  --rose: #c08d7c;
  --rose-ink: #a96b5c;
  --blush: #ecd9cd;

  --serif: "la-mericana", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "mundial", "Avenir Next", "Helvetica Neue", system-ui, -apple-system, sans-serif;

  --r: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --top-h: 60px;
  --tab-h: 62px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --pad: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--blush); color: var(--forest); }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; border-radius: 6px; }

/* ───────── chrome: top bar + tab bar */
.top {
  position: sticky; top: 0; z-index: 30;
  height: calc(var(--top-h) + var(--safe-t));
  padding: var(--safe-t) var(--pad) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(244, 238, 225, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
body.scrolled .top { border-bottom-color: var(--line); }
.wordmark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--forest); }
.wordmark b { font-family: var(--serif); font-weight: 400; font-size: 25px; letter-spacing: .01em; }
.wordmark span { font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-soft); transform: translateY(-2px); }
.top-tabs { display: none; gap: 30px; }
.top-tabs a {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--ink-soft);
  padding: 6px 0;
}
.top-tabs a.on { color: var(--forest); text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--tab-h) + var(--safe-b));
  padding: 0 8px var(--safe-b);
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(244, 238, 225, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--muted); font-size: 11px; letter-spacing: .04em;
  transition: color .2s;
}
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.on { color: var(--moss); }

@media (min-width: 820px) {
  .top-tabs { display: flex; }
  .tabbar { display: none; }
}

/* ───────── page frame */
.view {
  width: 100%; max-width: 760px; margin: 0 auto;
  padding: 12px var(--pad) calc(var(--tab-h) + var(--safe-b) + 36px);
  animation: rise .35s var(--ease) both;
}
body.bare .view { padding-bottom: calc(var(--safe-b) + 40px); }
.view.wide { max-width: 1080px; }
@media (min-width: 820px) { .view { padding-top: 28px; padding-bottom: 80px; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view { animation: none; } * { transition: none !important; } }

.h1 { font-family: var(--serif); font-weight: 400; color: var(--forest); font-size: clamp(33px, 8.6vw, 46px); line-height: 1.08; letter-spacing: -.005em; }
.h2 { font-family: var(--serif); font-weight: 400; color: var(--forest); font-size: 25px; line-height: 1.15; }
.h3 { font-family: var(--serif); font-weight: 400; color: var(--forest); font-size: 21px; line-height: 1.2; }
.lede { margin-top: 10px; color: var(--ink-soft); font-size: 16.5px; max-width: 36em; }
.meta { color: var(--ink-soft); font-size: 14px; }
.small { font-size: 13.5px; color: var(--muted); }
.section { margin-top: 38px; }
.section > .h2 { margin-bottom: 14px; }
.stack > * + * { margin-top: 12px; }
.center { text-align: center; }
.prose p { font-size: 16.5px; line-height: 1.7; color: var(--ink); }
.prose p + p { margin-top: 14px; }

/* ───────── buttons, links, fields */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border-radius: 999px;
  background: var(--moss); color: #f6f1e6;
  font-size: 13px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 10px 26px -14px rgba(87, 104, 77, .9);
  transition: background .25s, transform .25s var(--ease), opacity .2s;
  -webkit-user-select: none; user-select: none;
}
.btn:hover { background: var(--moss-deep); }
.btn:active { transform: scale(.985); }
.btn[disabled], .btn.busy { opacity: .6; pointer-events: none; }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: transparent; color: var(--moss); box-shadow: inset 0 0 0 1px var(--moss); }
.btn.ghost:hover { background: rgba(87, 104, 77, .07); }
.btn.light { background: var(--cream); color: var(--forest); box-shadow: none; }
.btn.small { min-height: 42px; padding: 0 20px; font-size: 12px; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--moss); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; background: none; border: 0; font-size: inherit; padding: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-soft); text-decoration: none; padding: 6px 0 14px; }
.back svg { width: 16px; height: 16px; }

.field { display: block; }
.field + .field { margin-top: 14px; }
.field > span { display: block; font-size: 14px; color: var(--ink-soft); margin: 0 0 7px 2px; }
.input {
  width: 100%; min-height: 54px; padding: 0 16px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: var(--paper);
  font-size: 17px; color: var(--forest);
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
textarea.input { min-height: 140px; padding: 14px 16px; line-height: 1.55; resize: vertical; }
.input:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgba(87, 104, 77, .15); }
.input::placeholder { color: #b0a894; }
.input.code {
  text-align: center; font-size: 30px; letter-spacing: .42em; padding-left: .42em;
  font-variant-numeric: tabular-nums; min-height: 66px;
}
.check { display: flex; align-items: center; gap: 12px; font-size: 15.5px; margin-top: 14px; }
.check input { width: 22px; height: 22px; accent-color: var(--moss); }
.form-error { margin-top: 12px; color: var(--rose-ink); font-size: 14.5px; }
.form-note { margin-top: 12px; color: var(--ink-soft); font-size: 14.5px; }

/* ───────── cards and rows */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card.pad-l { padding: 26px 22px; }
.card + .card { margin-top: 12px; }
.card .h3 + .meta { margin-top: 4px; }
.card-link { display: block; text-decoration: none; color: inherit; transition: transform .25s var(--ease), border-color .2s; }
.card-link:active { transform: scale(.99); }
.card-link:hover { border-color: var(--line-strong); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }

.bar { height: 4px; border-radius: 4px; background: var(--cream-deep); overflow: hidden; margin-top: 14px; }
.bar i { display: block; height: 100%; background: var(--moss); border-radius: 4px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 12.5px; letter-spacing: .04em; color: var(--moss); background: var(--moss-tint);
}
.chip.rose { color: var(--rose-ink); background: #f3e2da; }
.chip.plain { color: var(--ink-soft); background: var(--cream-deep); }
.chip svg { width: 14px; height: 14px; }

/* continue card: the one dark shape on the page */
.continue {
  position: relative; display: block; margin-top: 22px; padding: 22px 22px 20px;
  border-radius: 24px; background: var(--forest); color: var(--cream); text-decoration: none; overflow: hidden;
  box-shadow: 0 24px 50px -28px rgba(29, 43, 33, .8);
}
.continue::after {
  content: ""; position: absolute; right: -60px; top: -70px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(192, 141, 124, .28), rgba(192, 141, 124, 0)); pointer-events: none;
}
.continue .play {
  width: 50px; height: 50px; border-radius: 50%; background: var(--cream); color: var(--forest);
  display: grid; place-items: center; margin-bottom: 18px;
}
.continue .play svg { width: 20px; height: 20px; margin-left: 3px; }
.continue .h2 { color: var(--cream); font-size: 27px; }
.continue .meta { color: #c9c2ad; margin-top: 6px; }
.continue .bar { background: rgba(244, 238, 225, .16); }
.continue .bar i { background: var(--rose); }

/* units + lesson rows */
.unit { border-top: 1px solid var(--line); }
.unit:last-child { border-bottom: 1px solid var(--line); }
.unit-head { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; text-align: left; padding: 20px 2px; }
.unit-head .h2 { font-size: 25px; }
.unit-head .meta { margin-top: 3px; }
.unit-head .chev { width: 22px; height: 22px; color: var(--ink-soft); transition: transform .3s var(--ease); }
.unit.open .chev { transform: rotate(180deg); }
.unit-body { display: none; padding: 0 0 12px; }
.unit.open .unit-body { display: block; animation: rise .3s var(--ease) both; }
.unit-summary { color: var(--ink-soft); font-size: 15.5px; margin: -4px 0 8px 2px; max-width: 36em; }

.lessons { list-style: none; }
.lesson-row {
  display: grid; grid-template-columns: 30px 1fr 26px; gap: 12px; align-items: center;
  padding: 13px 4px; text-decoration: none; color: inherit; border-radius: 12px;
  transition: background .2s;
}
.lesson-row:hover { background: rgba(236, 227, 208, .5); }
.lesson-row .n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lesson-row .t { font-family: var(--serif); font-size: 19px; line-height: 1.22; color: var(--forest); }
.lesson-row .m { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }
.lesson-row .s { width: 24px; height: 24px; color: var(--moss); justify-self: end; }
.lesson-row .s.lock { color: var(--muted); }
.lesson-row.locked .t { color: var(--ink-soft); }
.lesson-row.draft .t::after { content: " (hidden)"; font-family: var(--sans); font-size: 12px; color: var(--rose-ink); }

/* ───────── lesson page */
.player-wrap { margin: 2px auto 0; }
.player {
  position: relative; border-radius: 18px; overflow: hidden; background: var(--forest);
  aspect-ratio: 16 / 9; width: 100%;
}
.player.portrait { aspect-ratio: 9 / 16; width: min(100%, calc(70dvh * 9 / 16)); margin: 0 auto; }
.player video { width: 100%; height: 100%; object-fit: contain; background: var(--forest); }
.player .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player .big-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(29, 43, 33, 0) 50%, rgba(29, 43, 33, .35));
}
.player .big-play span {
  width: 74px; height: 74px; border-radius: 50%; background: rgba(244, 238, 225, .95); color: var(--forest);
  display: grid; place-items: center; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6);
  transition: transform .3s var(--ease);
}
.player .big-play:hover span { transform: scale(1.04); }
.player .big-play svg { width: 26px; height: 26px; margin-left: 4px; }
.player .veil {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 18px; text-align: center; color: var(--cream);
  background: rgba(29, 43, 33, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.player .veil p { max-width: 22em; font-size: 15.5px; line-height: 1.5; }
.player .veil .h3 { color: var(--cream); }
.player .veil svg { width: 26px; height: 26px; opacity: .9; flex: none; }
@media (max-width: 560px) { .player:not(.portrait) .veil svg { display: none; } .player:not(.portrait) .veil p { font-size: 14.5px; } }
.resume-toast { position: absolute; left: 12px; top: 12px; z-index: 2; }
.lesson-title { margin-top: 22px; }
.lesson-meta { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.done-toggle { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line-strong); }
.done-toggle svg { width: 16px; height: 16px; }
.done-toggle.on { color: var(--moss); background: var(--moss-tint); box-shadow: none; }
.lesson-body { margin-top: 22px; }
.next-card { margin-top: 30px; }
.next-card .small { margin-bottom: 4px; }

/* ───────── sheet (bottom on phones, centered on desktop) */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(29, 43, 33, .38); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s both; }
.sheet {
  width: 100%; max-width: 520px; background: var(--paper); border-radius: 24px 24px 0 0;
  padding: 10px 22px calc(26px + var(--safe-b)); animation: up .32s var(--ease) both;
  max-height: 88dvh; overflow: auto;
}
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 0 auto 18px; }
.sheet .h2 { margin-bottom: 8px; }
.sheet .actions { margin-top: 20px; display: grid; gap: 10px; }
@media (min-width: 820px) { .scrim { align-items: center; } .sheet { border-radius: 24px; padding-bottom: 26px; } .sheet .grab { display: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 16px); z-index: 70;
  transform: translateX(-50%); max-width: calc(100% - 32px);
  background: var(--forest); color: var(--cream); padding: 13px 20px; border-radius: 14px; font-size: 15px;
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .6); animation: up .3s var(--ease) both;
}
body.bare .toast { bottom: calc(var(--safe-b) + 24px); }
@media (min-width: 820px) { .toast { bottom: 28px; } }

/* ───────── sign-in, enroll, checkout */
.narrow { max-width: 440px; margin: 0 auto; }
.auth-top { padding-top: calc(var(--safe-t) + 34px); text-align: center; }
.auth-top .wordmark { justify-content: center; }
.auth-card { margin-top: 30px; }
.divider { height: 1px; background: var(--line); margin: 24px 0; }
.tuition-tag { display: inline-block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--rose-ink); border: 1px solid var(--rose); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.price { font-weight: 600; font-size: 40px; color: var(--forest); line-height: 1; margin-top: 6px; }
.price span { font-size: 16px; font-weight: 400; color: var(--ink-soft); margin-left: 2px; }
.features { list-style: none; margin-top: 18px; }
.features li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.5; }
.features li + li { margin-top: 10px; }
.features li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 1.6px solid var(--moss); border-bottom: 1.6px solid var(--moss); transform: rotate(-45deg); }

/* the Stripe stand-in keeps Stripe's neutral look with Soma's accent, like Checkout's branding settings */
.co { font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif; color: #1a1f36; }
.co-shell { min-height: 100dvh; background: #fff; }
.co-grid { max-width: 920px; margin: 0 auto; display: grid; gap: 28px; padding: calc(var(--safe-t) + 22px) 22px 40px; }
@media (min-width: 860px) { .co-grid { grid-template-columns: 1fr 1fr; gap: 64px; padding-top: 70px; } }
.co-test { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: #b3450f; background: #ffe7d6; border-radius: 4px; padding: 2px 6px; margin-left: 8px; vertical-align: middle; }
.co-brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: #1a1f36; }
.co-brand img { width: 28px; height: 28px; border-radius: 7px; }
.co-sum .lbl { margin-top: 26px; font-size: 16px; color: #697386; }
.co-sum .amt { font-size: 36px; font-weight: 600; letter-spacing: -.02em; margin-top: 2px; }
.co-sum .amt span { font-size: 14px; font-weight: 400; color: #697386; }
.co-line { display: flex; justify-content: space-between; font-size: 14px; padding: 14px 0; border-bottom: 1px solid #ebeef1; }
.co-line:first-of-type { margin-top: 22px; border-top: 1px solid #ebeef1; }
.co-form label { display: block; font-size: 13px; font-weight: 500; color: #30313d; margin: 16px 0 6px; }
.co-in { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #e0e0e6; border-radius: 6px; font-size: 16px; font-family: inherit; color: #1a1f36; background: #fff; }
.co-in:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgba(87, 104, 77, .2); }
.co-group .co-in { border-radius: 0; }
.co-group .co-in:first-child { border-radius: 6px 6px 0 0; }
.co-group .split { display: grid; grid-template-columns: 1fr 1fr; }
.co-group .split .co-in { margin-top: -1px; }
.co-group .split .co-in:first-child { border-radius: 0 0 0 6px; }
.co-group .split .co-in:last-child { border-radius: 0 0 6px 0; margin-left: -1px; }
.co-pay { width: 100%; height: 48px; margin-top: 22px; border-radius: 6px; background: var(--moss); color: #fff; font-size: 16px; font-weight: 600; font-family: inherit; }
.co-pay:hover { background: var(--moss-deep); }
.co-pay[disabled] { opacity: .65; }
.co-err { color: #df1b41; font-size: 14px; margin-top: 12px; }
.co-foot { margin-top: 20px; font-size: 12.5px; color: #8792a2; line-height: 1.6; }

/* ───────── home screen guide */
.seg { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 999px; background: var(--cream-deep); margin-top: 22px; }
.seg button { height: 40px; padding: 0 20px; border-radius: 999px; font-size: 14px; color: var(--ink-soft); }
.seg button.on { background: var(--paper); color: var(--forest); box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .25); }
.steps { list-style: none; counter-reset: s; margin-top: 18px; }
.steps li { counter-increment: s; position: relative; padding: 16px 0 16px 50px; border-top: 1px solid var(--line); font-size: 16.5px; line-height: 1.5; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 14px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; color: var(--moss); background: var(--moss-tint);
}
.ico-inline { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); vertical-align: middle; margin: 0 3px; color: #0a7aff; }
.ico-inline svg { width: 17px; height: 17px; }
.ico-inline.dark { color: var(--forest); }

/* ───────── front desk */
.desk-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--cream-deep); margin-top: 18px; width: max-content; max-width: 100%; overflow-x: auto; }
.desk-tabs a { height: 40px; padding: 0 18px; border-radius: 999px; display: grid; place-items: center; font-size: 14px; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.desk-tabs a.on { background: var(--paper); color: var(--forest); box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .25); }
.stat-line { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; font-size: 14.5px; color: var(--ink-soft); }
.stat-line b { font-weight: 600; color: var(--forest); }
.people { list-style: none; margin-top: 16px; }
.person { border-top: 1px solid var(--line); }
.person:last-child { border-bottom: 1px solid var(--line); }
.person > button { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; text-align: left; padding: 15px 2px; }
.person .nm { font-size: 16.5px; color: var(--forest); }
.person .em { font-size: 13.5px; color: var(--ink-soft); overflow-wrap: anywhere; }
.person .mini { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.person .panel { padding: 4px 2px 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; margin-top: 6px; }
.kv dt { color: var(--muted); }
.kv dd { color: var(--ink); overflow-wrap: anywhere; }
.edit-list .lesson-row { grid-template-columns: 30px 1fr auto; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); transition: background .2s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.switch input:checked + i { background: var(--moss); }
.switch input:checked + i::after { transform: translateX(20px); }
.feed { list-style: none; margin-top: 12px; }
.feed li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.feed li .small { grid-column: 1 / -1; }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); margin-right: 8px; }
.status-dot.on { background: #5f9a5a; box-shadow: 0 0 0 4px rgba(95, 154, 90, .18); }
.status-dot.off { background: var(--rose); }

/* skeleton while the first load finishes */
.sk { background: linear-gradient(90deg, var(--cream-deep), #f3ecdd, var(--cream-deep)); background-size: 200% 100%; animation: sk 1.4s ease infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: #f6e7df; color: var(--rose-ink); font-size: 15px; margin-top: 18px; }
.notice.calm { background: var(--moss-tint); color: var(--moss-deep); }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.notice .btn { margin-top: 10px; }

.list-links { list-style: none; margin-top: 12px; }
.list-links a, .list-links button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 2px; border-top: 1px solid var(--line); text-decoration: none; color: var(--forest); font-size: 16.5px; text-align: left; }
.list-links li:last-child a, .list-links li:last-child button { border-bottom: 1px solid var(--line); }
.list-links svg { width: 18px; height: 18px; color: var(--muted); flex: none; }

/* ───────── rich text: lessons and the Root Work guide */
.view.reading .lesson-body { max-width: 38em; }
.prose .rich-sub { font-family: var(--serif); font-size: 21px; line-height: 1.35; color: var(--ink-soft); margin-bottom: 18px; }
.prose .rich-h { font-size: 26px; margin: 34px 0 12px; }
.prose .rich-list { list-style: none; margin: 16px 0; }
.prose .rich-list li { position: relative; padding-left: 20px; font-size: 16.5px; line-height: 1.65; }
.prose .rich-list li + li { margin-top: 10px; }
.prose .rich-list li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); }
.prose .rich-list strong { font-weight: 600; color: var(--forest); }
.prose .rich-quote { margin: 30px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--rose); }
.prose .rich-quote p { font-family: var(--serif); font-size: 23px; line-height: 1.35; color: var(--forest); }
.prose .rich-quote cite { display: block; margin-top: 10px; font-style: normal; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.prose .callout { margin: 26px 0; padding: 20px 20px 18px; border-radius: 18px; background: var(--moss-tint); }
.prose .callout-t { font-size: 11.5px !important; letter-spacing: .2em; text-transform: uppercase; color: var(--moss-deep) !important; margin-bottom: 8px; }
.prose .callout p { font-size: 16px; line-height: 1.65; color: var(--ink); }
.prose .callout p + p { margin-top: 10px; }
.prose a.link { overflow-wrap: anywhere; }
.chip.start { background: var(--rose); color: #fffdf8; height: 26px; font-size: 12px; letter-spacing: .06em; }

/* ───────── subtitles */
.player { container-type: inline-size; }
.cc-layer {
  position: absolute; left: 5%; right: 5%; bottom: 19%; z-index: 3;
  display: flex; justify-content: center; pointer-events: none;
}
.player.portrait .cc-layer { bottom: 17%; }
@media (max-width: 640px) { .player:not(.portrait) .cc-layer { bottom: 28%; } }
.cc-layer span {
  display: inline-block; max-width: 100%; text-align: center;
  font-family: var(--sans); font-weight: 600; letter-spacing: .005em;
  font-size: clamp(15px, 3.7cqw, 26px); line-height: 1.26;
  color: #fffdf8; background: rgba(29, 43, 33, .72);
  -webkit-backdrop-filter: blur(8px) saturate(1.2); backdrop-filter: blur(8px) saturate(1.2);
  padding: .26em .62em .3em; border-radius: .6em;
  box-shadow: 0 6px 22px -10px rgba(0, 0, 0, .5);
  animation: ccin .16s ease-out both;
}
.player.portrait .cc-layer span { font-size: clamp(16px, 5.4cqw, 28px); }
@keyframes ccin { from { opacity: 0; transform: translateY(3px) scale(.98); } }
.cc-btn {
  position: absolute; right: 12px; top: 12px; z-index: 4;
  height: 30px; min-width: 44px; padding: 0 10px; border-radius: 9px;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--forest);
  background: rgba(244, 238, 225, .9); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .45);
  transition: background .2s, color .2s;
}
.cc-btn.on { background: var(--moss); color: #f6f1e6; }
video::cue { font-family: var(--sans); background: rgba(29, 43, 33, .7); color: #fffdf8; }

/* the guide as Unit 1's reading companion */
.companion { display: grid; grid-template-columns: 30px 1fr 22px; gap: 12px; align-items: center; margin: 2px 0 10px; padding: 14px 14px 14px 12px; border-radius: 14px; background: var(--moss-tint); text-decoration: none; color: inherit; }
.companion .ic { width: 24px; height: 24px; color: var(--moss); }
.companion .t { display: block; font-family: var(--serif); font-size: 19px; color: var(--forest); line-height: 1.2; }
.companion .m { display: block; font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }
.companion .s { width: 20px; height: 20px; color: var(--moss); }
