:root {
  color-scheme: light;
  --deep-teal: #0b4f60;
  --deep-teal-2: #073a49;
  --lake-blue: #4f8292;
  --mist-blue: #c9dbe1;
  --ice: #edf4f5;
  --pearl: #fbfcfa;
  --white: #ffffff;
  --silver: #aebcc5;
  --silver-light: #d9e2e6;
  --ink: #102f49;
  --muted: #687d90;
  --gold: #c68647;
  --gold-light: #f1dfc8;
  --danger: #98483f;
  --success: #1f6b65;
  --card-radius: 21px;
  --fine-border: 1px solid rgba(127, 151, 165, 0.28);
  --shadow: 0 18px 46px rgba(26, 61, 77, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--ice);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 4%, rgba(255, 255, 255, 0.96), transparent 31rem),
    linear-gradient(180deg, #eef5f6 0%, #e5eff2 50%, #f6f8f7 100%);
}

button,
input,
select,
textarea,
label {
  font: inherit;
}

button,
.file-button,
select {
  min-height: 44px;
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:focus-visible,
.file-button:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(198, 134, 71, 0.42);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.18rem;
  font-size: clamp(1.8rem, 8vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 0.3rem;
  font-size: clamp(1.55rem, 6.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
  line-height: 1.35;
}

.water-canvas {
  position: fixed;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.water-canvas::before,
.water-canvas::after {
  position: absolute;
  right: -18%;
  bottom: 5%;
  left: -18%;
  height: 12rem;
  content: "";
  border-radius: 50%;
  border-top: 1px solid rgba(81, 130, 146, 0.15);
  transform: rotate(-4deg);
}

.water-canvas::after {
  bottom: -1%;
  border-top-color: rgba(255, 255, 255, 0.72);
  transform: rotate(3deg);
}

.water-canvas__mist {
  position: absolute;
  inset: 34% -10% auto;
  height: 26rem;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.7), transparent 68%);
  filter: blur(20px);
}

.water-canvas__ripple {
  position: absolute;
  left: 50%;
  width: 32rem;
  height: 7rem;
  border: 1px solid rgba(106, 145, 158, 0.16);
  border-radius: 50%;
  transform: translateX(-50%);
}

.water-canvas__ripple--one {
  bottom: 15%;
}

.water-canvas__ripple--two {
  bottom: 10%;
  width: 45rem;
}

.app-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 14px calc(92px + env(safe-area-inset-bottom));
}

.view {
  min-height: 100vh;
  padding-top: calc(19px + env(safe-area-inset-top));
  padding-bottom: 26px;
}

.view--today {
  padding-top: 0;
}

.eyebrow {
  margin-bottom: 0.22rem;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: rgba(236, 246, 247, 0.78);
}

.home-hero {
  position: relative;
  min-height: 318px;
  margin: 0 -14px -54px;
  overflow: hidden;
  padding: calc(26px + env(safe-area-inset-top)) 20px 76px;
  color: var(--white);
  background: var(--deep-teal-2);
}

.home-hero__photo,
.home-hero__veil {
  position: absolute;
  inset: 0;
}

.home-hero__photo {
  background: url("./assets/images/hero-lake-v1.jpg") center 58% / cover no-repeat;
  transform: scale(1.015);
}

.home-hero__veil {
  background:
    linear-gradient(180deg, rgba(4, 34, 48, 0.68) 0%, rgba(9, 57, 72, 0.12) 43%, rgba(5, 42, 55, 0.56) 100%),
    linear-gradient(90deg, rgba(7, 45, 58, 0.38), transparent 62%);
}

.home-header,
.hero-message,
.hero-meta {
  position: relative;
  z-index: 1;
}

.home-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.home-subtitle {
  margin-bottom: 0;
  color: rgba(243, 249, 250, 0.82);
  font-size: 0.92rem;
  letter-spacing: 0.035em;
}

.round-entry {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border: var(--fine-border);
  border-radius: 50%;
  color: var(--deep-teal);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 9px 22px rgba(32, 66, 80, 0.1);
  backdrop-filter: blur(16px);
}

.round-entry--light {
  border-color: rgba(235, 244, 246, 0.62);
  color: #e7f2f3;
  background: rgba(7, 55, 69, 0.32);
}

.round-entry svg,
.bottom-nav svg,
.record-orb svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero-message {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 82px;
  text-align: right;
}

.hero-message > span {
  width: 34px;
  margin-top: 0.48rem;
  border-top: 1px solid rgba(238, 248, 248, 0.7);
}

.hero-message p {
  margin-bottom: 0;
  color: rgba(245, 250, 251, 0.8);
  font-size: 0.78rem;
  line-height: 1.65;
  letter-spacing: 0.12em;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
}

.status-pill,
.tag,
.progress-chip,
.plan-stage {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--deep-teal);
  background: rgba(213, 231, 234, 0.78);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 750;
  white-space: nowrap;
}

.status-pill--glass {
  color: rgba(246, 250, 251, 0.9);
  background: rgba(9, 58, 72, 0.38);
  border: 1px solid rgba(235, 245, 247, 0.32);
  backdrop-filter: blur(12px);
}

.status-pill.is-offline {
  color: #fff4ef;
  background: rgba(116, 51, 44, 0.68);
}

.glass-link {
  min-height: 34px;
  border: 0;
  padding: 0 2px;
  color: rgba(248, 251, 251, 0.88);
  background: transparent;
  font-size: 0.76rem;
  font-weight: 700;
}

.candidate-note {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.7rem;
  margin: 0 6px 13px;
  border: 1px solid rgba(167, 187, 195, 0.56);
  border-radius: 14px;
  padding: 10px 12px;
  color: #526a79;
  background: rgba(249, 252, 251, 0.9);
  box-shadow: 0 10px 26px rgba(27, 61, 75, 0.09);
  backdrop-filter: blur(18px);
  font-size: 0.76rem;
  line-height: 1.45;
}

.candidate-note strong {
  flex: 0 0 auto;
  color: var(--gold);
}

.surface-card {
  position: relative;
  overflow: hidden;
  border: var(--fine-border);
  border-radius: var(--card-radius);
  background: rgba(252, 253, 252, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.today-learning,
.rhythm-card,
.review-card,
.progress-overview,
.progress-dashboard,
.data-panel,
.plan-section {
  padding: 16px;
}

.today-learning {
  margin-bottom: 12px;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 12px;
}

.card-heading--bordered {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(137, 161, 173, 0.2);
}

.card-heading h2,
.card-heading h3,
.card-heading p {
  margin-bottom: 0;
}

.card-heading p {
  color: var(--muted);
  font-size: 0.76rem;
}

.card-heading p strong,
.card-heading h2 strong,
.card-heading h3 strong {
  color: var(--gold);
}

.today-lesson-grid {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.today-lesson-image {
  width: 94px;
  height: 112px;
  border: 1px solid rgba(160, 181, 190, 0.5);
  border-radius: 15px;
  background: url("./assets/images/lesson-airport-v1.jpg") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.today-lesson-copy {
  min-width: 0;
}

.today-lesson-copy .lesson-meta {
  margin: 0.45rem 0 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.today-lesson-copy h3 {
  margin-bottom: 0.3rem;
  font-size: 1.22rem;
}

.time-line {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.time-line::before {
  width: 14px;
  height: 14px;
  content: "";
  border: 1.5px solid #7692a2;
  border-radius: 50%;
  box-shadow: inset 4px 0 0 -3px #7692a2;
}

.today-start {
  width: 100%;
  margin-top: 12px;
}

.primary-button,
.secondary-button,
.danger-button,
.text-danger-button,
.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 11px 17px;
  font-weight: 760;
  text-decoration: none;
}

.primary-button {
  border: 1px solid #0a5263;
  color: #fff;
  background: linear-gradient(135deg, #197184, #06495a);
  box-shadow: 0 10px 22px rgba(7, 72, 87, 0.2);
}

.secondary-button {
  border: 1px solid rgba(137, 158, 169, 0.46);
  color: var(--ink);
  background: rgba(250, 252, 252, 0.86);
}

.danger-button {
  border: 1px solid rgba(152, 72, 63, 0.4);
  color: var(--danger);
  background: #fff8f6;
}

.text-danger-button {
  border: 0;
  color: var(--danger);
  background: transparent;
}

.rhythm-card {
  min-height: 192px;
}

.chevron-button {
  width: 40px;
  min-height: 40px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 1.8rem;
}

.rhythm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 13px;
  align-items: center;
}

.rhythm-steps {
  display: grid;
  gap: 5px;
}

.rhythm-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19px 18px;
  gap: 7px;
  align-items: center;
  color: var(--silver);
  font-size: 0.72rem;
}

.rhythm-track {
  display: flex;
  width: 100%;
  gap: 10px;
}

.rhythm-track i {
  flex: 1 1 0;
  height: 7px;
  border-radius: 99px;
  background: #c9d4d9;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.rhythm-step b,
.rhythm-step em {
  font-style: normal;
  font-weight: 760;
}

.rhythm-step.is-done {
  color: var(--deep-teal);
}

.rhythm-step.is-done .rhythm-track i {
  background: var(--deep-teal);
  box-shadow: 0 1px 4px rgba(11, 79, 96, 0.2);
}

.rhythm-step.is-done em {
  color: var(--success);
}

.rhythm-motto {
  display: grid;
  gap: 0.25rem;
  padding-left: 13px;
  border-left: 1px solid rgba(128, 153, 165, 0.24);
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.rhythm-motto strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.water-lines {
  height: 24px;
  margin: 10px -17px -16px;
  opacity: 0.58;
  background:
    radial-gradient(ellipse at 35% 0%, transparent 62%, rgba(91, 142, 157, 0.16) 64%, transparent 66%),
    radial-gradient(ellipse at 70% 0%, transparent 66%, rgba(255, 255, 255, 0.92) 68%, transparent 70%);
}

.screen-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 18px;
  padding: 10px 4px 0;
}

.screen-header > div > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.screen-mark {
  color: var(--deep-teal);
  font-size: 2rem;
  line-height: 1;
}

.screen-header--with-symbol {
  align-items: center;
}

.mini-hexagram {
  display: grid;
  gap: 3px;
  width: 41px;
}

.mini-hexagram > i {
  display: flex;
  height: 4px;
  gap: 7px;
}

.mini-hexagram b {
  display: block;
  width: 100%;
  border-radius: 99px;
  background: var(--deep-teal);
}

.mini-hexagram .is-broken b {
  width: calc((100% - 7px) / 2);
}

.filter-row {
  display: flex;
  gap: 8px;
  margin: 0 -14px 16px;
  overflow-x: auto;
  padding: 0 14px 5px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid rgba(130, 155, 167, 0.34);
  border-radius: 999px;
  padding: 7px 15px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 750;
}

.filter-chip.is-active {
  border-color: var(--deep-teal);
  color: #fff;
  background: var(--deep-teal);
}

.card-list {
  display: grid;
  gap: 11px;
}

.scene-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  min-height: 105px;
  border: var(--fine-border);
  border-radius: 18px;
  padding: 8px 11px 8px 8px;
  background: rgba(252, 253, 253, 0.9);
  box-shadow: 0 12px 28px rgba(24, 63, 79, 0.08);
}

.scene-card__image {
  width: 86px;
  height: 87px;
  border: 1px solid rgba(169, 185, 193, 0.52);
  border-radius: 13px;
  object-fit: cover;
}

.scene-card__copy {
  min-width: 0;
}

.scene-card__copy h3 {
  margin: 0.25rem 0 0.25rem;
  font-size: 1rem;
}

.scene-card__copy p,
.scene-card__copy small {
  display: block;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.scene-card__action {
  display: grid;
  width: 24px;
  min-height: 44px;
  place-items: center;
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 1.7rem;
}

.scene-card.is-planned {
  opacity: 0.82;
}

.scene-card.is-planned .progress-chip {
  color: #70512b;
  background: var(--gold-light);
}

.card-list--inside .scene-card {
  box-shadow: none;
}

.review-card {
  margin-bottom: 13px;
}

.review-card .card-heading {
  margin-bottom: 9px;
}

.progress-overview,
.progress-dashboard {
  margin-bottom: 13px;
}

.overview-grid {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.progress-ring {
  --progress-angle: 0deg;
  position: relative;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--deep-teal) var(--progress-angle), #e3ecef 0);
}

.progress-ring::after {
  position: absolute;
  inset: 12px;
  content: "";
  border-radius: 50%;
  background: rgba(253, 254, 253, 0.98);
}

.progress-ring strong {
  position: relative;
  z-index: 1;
  font-size: 1.45rem;
}

.overview-copy h3 {
  margin-bottom: 0.25rem;
  font-size: 1.15rem;
}

.overview-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.progress-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}

.summary-item {
  border: 1px solid rgba(141, 163, 173, 0.26);
  border-radius: 14px;
  padding: 10px 7px;
  background: rgba(245, 249, 249, 0.72);
  text-align: center;
}

.summary-item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 1.22rem;
}

.summary-item span {
  color: var(--muted);
  font-size: 0.68rem;
}

.data-panel p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.button-stack {
  display: grid;
  gap: 10px;
}

.silver-dot {
  width: 13px;
  height: 13px;
  border: 1px solid #92a6b1;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #abb9c0);
  box-shadow: 0 2px 8px rgba(44, 80, 95, 0.18);
}

.plan-banner {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(73, 113, 127, 0.38);
  border-radius: 18px;
  padding: 15px 16px;
  color: #f4f9f9;
  background:
    linear-gradient(110deg, rgba(8, 65, 80, 0.94), rgba(48, 104, 117, 0.83)),
    url("./assets/images/hero-lake-v1.jpg") center / cover;
  text-align: left;
  box-shadow: 0 14px 30px rgba(10, 60, 73, 0.16);
}

.plan-banner span {
  display: grid;
  gap: 0.25rem;
}

.plan-banner small {
  color: rgba(241, 248, 249, 0.76);
  line-height: 1.45;
}

.plan-banner b {
  font-size: 1.8rem;
}

.site-filing {
  margin: 22px 18px 6px;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}

.site-filing a {
  display: inline-block;
  padding: 4px 8px;
  color: var(--muted);
  text-decoration: none;
}

.site-filing a:hover,
.site-filing a:focus-visible {
  color: var(--deep-teal);
  text-decoration: underline;
}

.bottom-nav {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(93, 126, 140, 0.22);
  padding: 7px max(9px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(9px, env(safe-area-inset-left));
  background: rgba(250, 252, 251, 0.91);
  box-shadow: 0 -10px 32px rgba(29, 65, 79, 0.08);
  backdrop-filter: blur(22px) saturate(125%);
}

.nav-item {
  display: grid;
  justify-items: center;
  gap: 2px;
  border: 0;
  padding: 2px;
  color: #718699;
  background: transparent;
  font-size: 0.66rem;
  font-weight: 720;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.7;
}

.nav-item.is-active {
  color: var(--deep-teal);
}

.nav-item.is-active svg {
  fill: rgba(23, 104, 118, 0.12);
  stroke-width: 2.1;
}

body.is-plan-view .bottom-nav {
  display: none;
}

.view--plan {
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.plan-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  margin-bottom: 16px;
}

.plan-header h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
}

.back-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(119, 145, 157, 0.32);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  font-size: 1.85rem;
}

.plan-stage {
  color: #774f27;
  background: var(--gold-light);
}

.plan-hero {
  position: relative;
  min-height: 260px;
  margin-bottom: 13px;
  overflow: hidden;
  border: 1px solid rgba(196, 211, 217, 0.5);
  border-radius: 25px;
  padding: 31px 21px 24px;
  color: #f3f8f8;
  background:
    linear-gradient(110deg, rgba(4, 47, 61, 0.92), rgba(14, 72, 86, 0.5)),
    url("./assets/images/hero-lake-v1.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.plan-hero::after {
  position: absolute;
  right: -20%;
  bottom: -19%;
  width: 110%;
  height: 45%;
  content: "";
  border: 1px solid rgba(229, 243, 244, 0.36);
  border-radius: 50%;
}

.plan-kicker {
  margin-bottom: 1.1rem;
  color: #e2bd8a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.plan-hero h3 {
  max-width: 19rem;
  margin-bottom: 1rem;
  font-size: clamp(1.55rem, 7vw, 2.2rem);
  line-height: 1.35;
}

.plan-hero > p:last-child {
  max-width: 31rem;
  margin-bottom: 0;
  color: rgba(241, 248, 249, 0.82);
  font-size: 0.88rem;
  line-height: 1.7;
}

.plan-section {
  margin-bottom: 13px;
}

.plan-section > p:last-child {
  margin-bottom: 0;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.65rem;
  color: #405d70;
  font-size: 0.88rem;
  line-height: 1.55;
}

.check-list li::before {
  position: absolute;
  top: 0.05rem;
  left: 0;
  display: grid;
  width: 1.15rem;
  height: 1.15rem;
  place-items: center;
  content: "✓";
  border: 1px solid rgba(27, 103, 113, 0.45);
  border-radius: 50%;
  color: var(--deep-teal);
  font-size: 0.7rem;
  font-weight: 850;
}

.route-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-list li {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  padding-bottom: 18px;
}

.route-list li:not(:last-child)::after {
  position: absolute;
  top: 31px;
  bottom: 0;
  left: 16px;
  content: "";
  border-left: 1px solid #c9d5da;
}

.route-list li > b {
  display: grid;
  z-index: 1;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #b6c5cc;
  border-radius: 50%;
  color: var(--muted);
  background: #f6f9f9;
  font-size: 0.78rem;
}

.route-list li.is-current > b {
  border-color: var(--gold);
  color: #fff;
  background: var(--gold);
  box-shadow: 0 5px 13px rgba(198, 134, 71, 0.24);
}

.route-list li.is-complete > b {
  border-color: var(--deep-teal);
  color: var(--deep-teal);
  background: #e3eff0;
}

.route-list span {
  display: grid;
  gap: 0.18rem;
}

.route-list small {
  color: var(--muted);
  line-height: 1.5;
}

.target-scale-card {
  background:
    radial-gradient(circle at 92% 5%, rgba(213, 231, 234, 0.9), transparent 15rem),
    rgba(252, 253, 252, 0.94);
}

.target-scale-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 14px 0 12px;
}

.target-scale-grid > div {
  display: grid;
  gap: 0.25rem;
  border: 1px solid rgba(128, 153, 165, 0.25);
  border-radius: 14px;
  padding: 12px 7px;
  background: rgba(248, 251, 251, 0.76);
  text-align: center;
}

.target-scale-grid strong {
  color: var(--deep-teal);
  font-size: clamp(1rem, 4.8vw, 1.35rem);
  line-height: 1.1;
}

.target-scale-grid span {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.4;
}

.scope-caution {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.plan-scope-grid {
  display: grid;
  gap: 13px;
}

.scope-card--in {
  border-top: 3px solid var(--deep-teal);
}

.scope-card--out {
  border-top: 3px solid var(--gold);
}

.scope-card p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.scope-card strong {
  color: var(--danger);
}

.privacy-card {
  background:
    linear-gradient(145deg, rgba(248, 252, 251, 0.96), rgba(224, 238, 241, 0.9));
}

.privacy-card p {
  color: #405f6f;
  font-size: 0.86rem;
  line-height: 1.7;
}

.feedback-card form {
  display: grid;
  gap: 8px;
}

.feedback-card label {
  margin-top: 6px;
  color: #294b5e;
  font-size: 0.82rem;
  font-weight: 760;
}

.feedback-card select,
.feedback-card textarea {
  width: 100%;
  border: 1px solid rgba(132, 156, 168, 0.42);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(252, 254, 253, 0.88);
}

.feedback-card select {
  padding: 9px 12px;
}

.feedback-card textarea {
  min-height: 76px;
  padding: 11px 12px;
  resize: vertical;
  line-height: 1.55;
}

.save-status {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
}

.lesson-panel,
.message-panel {
  position: fixed;
  z-index: 60;
  inset: 0;
  overflow-y: auto;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.95), transparent 23rem),
    linear-gradient(180deg, #edf5f6, #e8f1f3 70%, #f7f9f8);
}

.lesson-sheet {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 14px calc(96px + env(safe-area-inset-bottom));
}

.lesson-sheet::after {
  position: fixed;
  z-index: -1;
  right: -20%;
  bottom: 10%;
  left: -20%;
  height: 180px;
  content: "";
  border-radius: 50%;
  border-top: 1px solid rgba(74, 131, 147, 0.15);
  pointer-events: none;
}

.lesson-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 52px;
  gap: 9px;
  align-items: center;
  margin-bottom: 11px;
  text-align: center;
}

.lesson-header h2 {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.lesson-step-count {
  color: var(--ink);
  font-size: 0.85rem;
}

.lesson-step-meter {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0 10px 20px;
}

.lesson-step-meter span {
  height: 6px;
  border-radius: 99px;
  background: #bdcad0;
}

.lesson-step-meter span.is-complete {
  background: #6ca7b1;
}

.lesson-step-meter span.is-current {
  background: var(--deep-teal);
  box-shadow: 0 0 0 2px rgba(11, 79, 96, 0.08);
}

.lesson-main-card {
  min-height: min(620px, calc(100vh - 185px));
  border: var(--fine-border);
  border-radius: 21px;
  padding: 17px;
  background: rgba(253, 254, 253, 0.93);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.lesson-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.lesson-card-top h2 {
  font-size: 1.25rem;
}

.favorite-button {
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  border: 1px solid rgba(139, 160, 171, 0.3);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.78);
  font-size: 1.55rem;
}

.lesson-goal {
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.lesson-status {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  margin: 0 -17px 12px;
  padding: 0 17px 5px;
  scrollbar-width: none;
}

.lesson-status::-webkit-scrollbar {
  display: none;
}

.lesson-status .progress-chip {
  min-height: 25px;
  color: var(--muted);
  background: #eef3f4;
}

.lesson-status .progress-chip.is-done {
  color: var(--deep-teal);
  background: #dcecee;
}

.lesson-step {
  padding-top: 12px;
  border-top: 1px solid rgba(132, 157, 169, 0.22);
}

.step-label {
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.13em;
}

.hero-russian {
  margin: 38px 0 12px;
  color: var(--ink);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 730;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.hero-intent {
  margin-bottom: 1.3rem;
  color: #496579;
  font-size: 1rem;
  line-height: 1.6;
}

.audio-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}

.audio-button {
  min-height: 52px;
  border: 1px solid rgba(153, 174, 183, 0.38);
  border-radius: 999px;
  color: var(--ink);
  background: linear-gradient(180deg, #eef3f4, #e5edef);
  font-weight: 740;
}

.audio-button span {
  color: var(--deep-teal);
}

.small-note {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

#audio-status {
  margin: 14px 0 0;
}

.intent-list,
.phrase-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.intent-card,
.phrase-card {
  border: 1px solid rgba(140, 163, 174, 0.26);
  border-radius: 15px;
  padding: 14px;
  background: rgba(248, 251, 251, 0.82);
}

.intent-card strong,
.phrase-card .russian-line {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 1.15rem;
}

.intent-card p,
.phrase-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.segment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px 0;
}

.segment-list span {
  border: 1px solid rgba(57, 112, 126, 0.18);
  border-radius: 8px;
  padding: 5px 8px;
  color: var(--deep-teal);
  background: #e5f0f1;
  font-size: 0.78rem;
}

.practice-panel > p,
.role-task > p,
.completion-panel > p {
  color: var(--muted);
  line-height: 1.6;
}

.record-orb {
  display: grid;
  width: 132px;
  min-height: 132px;
  margin: 30px auto 16px;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 7px solid rgba(215, 231, 234, 0.88);
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 32% 24%, rgba(112, 178, 189, 0.9), transparent 45%),
    linear-gradient(145deg, #1a6e7e, #053d4c);
  box-shadow: 0 12px 30px rgba(4, 62, 76, 0.24);
}

.record-orb svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.55;
}

.record-orb span {
  font-size: 0.78rem;
  font-weight: 740;
}

#recording-playback {
  width: 100%;
  margin-top: 12px;
}

.lesson-actions {
  margin-top: 17px;
}

.completion-panel {
  position: relative;
  min-height: 350px;
}

.completion-watermark {
  display: grid;
  width: 108px;
  height: 108px;
  margin: 30px auto 18px;
  place-items: center;
  border: 1px solid rgba(14, 86, 100, 0.28);
  border-radius: 50%;
  color: var(--deep-teal);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96), rgba(216, 234, 237, 0.78));
  font-family: Georgia, "Songti SC", serif;
  font-size: 2.3rem;
  box-shadow: 0 11px 28px rgba(20, 72, 85, 0.12);
}

.completion-panel .primary-button {
  width: 100%;
  margin-top: 18px;
}

.lesson-footer {
  position: fixed;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 12px;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(237, 245, 246, 0), rgba(237, 245, 246, 0.94) 24%, #edf5f6 100%);
}

.lesson-footer .primary-button,
.lesson-footer .secondary-button {
  width: 100%;
}

.message-panel {
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  background: rgba(10, 43, 55, 0.62);
  backdrop-filter: blur(12px);
}

.message-card {
  width: min(100%, 420px);
  border: 1px solid rgba(203, 217, 222, 0.55);
  border-radius: 21px;
  padding: 22px;
  background: rgba(252, 254, 253, 0.96);
  box-shadow: var(--shadow);
}

.message-card li {
  margin-bottom: 9px;
  line-height: 1.55;
}

.message-card .primary-button {
  width: 100%;
}

.toast {
  position: fixed;
  z-index: 90;
  right: 20px;
  bottom: calc(91px + env(safe-area-inset-bottom));
  left: 20px;
  width: fit-content;
  max-width: min(520px, calc(100% - 40px));
  margin: 0 auto;
  border: 1px solid rgba(238, 246, 247, 0.2);
  border-radius: 999px;
  padding: 11px 16px;
  color: white;
  background: rgba(5, 49, 61, 0.94);
  box-shadow: 0 13px 32px rgba(8, 46, 58, 0.22);
  text-align: center;
  font-size: 0.8rem;
  backdrop-filter: blur(14px);
}

[hidden] {
  display: none !important;
}

@media (min-width: 500px) {
  .app-shell {
    padding-right: 20px;
    padding-left: 20px;
  }

  .home-hero {
    margin-right: -20px;
    margin-left: -20px;
    padding-right: 28px;
    padding-left: 28px;
  }

  .plan-scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 680px) {
  .app-shell {
    padding-right: 28px;
    padding-left: 28px;
  }

  .home-hero {
    margin-right: -28px;
    margin-left: -28px;
    border-radius: 0 0 28px 28px;
  }

  .card-list:not(.card-list--inside) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lesson-main-card {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
