:root {
  --ink: #18212f;
  --muted: #5d6979;
  --line: #dce5ee;
  --paper: #ffffff;
  --wash: #f4f8fb;
  --blue: #1268f3;
  --green: #18a66a;
  --orange: #ff7a2f;
  --yellow: #ffd74a;
  --rose: #ff5d7d;
  --shadow: 0 24px 70px rgba(24, 33, 47, .14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  background: var(--wash);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(220, 229, 238, .9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--green) 56%, var(--orange));
  border-radius: 8px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 24px);
  flex: 1 1 auto;
  min-width: 0;
  color: #3b4756;
  font-size: 15px;
}

.nav-links a {
  white-space: nowrap;
}

.session-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}

.session-user {
  display: grid;
  gap: 2px;
  max-width: 220px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(24, 33, 47, .08);
}

.session-user span,
.session-user small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-user span {
  font-weight: 800;
  font-size: 13px;
}

.session-user small {
  color: var(--muted);
  font-size: 12px;
}

.session-nav [data-global-logout] {
  color: #fff;
  background: linear-gradient(135deg, #ef4444, var(--orange));
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(239, 68, 68, .22);
}

.compact-action {
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 8px;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  padding: 58px clamp(20px, 5vw, 76px) 74px;
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
  background: #f8fcff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 38%, rgba(255,255,255,.36) 66%, rgba(255,255,255,.12) 100%),
    linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,.08));
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.035);
  animation: heroSlide 42s infinite;
}

.hero-slide::before,
.hero-slide::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.hero-slide span {
  position: absolute;
  right: clamp(26px, 6vw, 110px);
  bottom: clamp(26px, 5vw, 76px);
  max-width: min(420px, 42vw);
  padding: 12px 18px;
  color: #0d3d47;
  font-weight: 900;
  line-height: 1.45;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(24, 33, 47, .12);
  backdrop-filter: blur(10px);
}

.slide-one {
  background-image: url("/assets/images/hero-scenes/real-scene-1.jpg");
}

.slide-two {
  animation-delay: 7s;
  background-image: url("/assets/images/hero-scenes/real-scene-2.jpg");
}

.slide-three {
  animation-delay: 14s;
  background-image: url("/assets/images/hero-scenes/real-scene-3.jpg");
}

.slide-four {
  animation-delay: 21s;
  background-image: url("/assets/images/hero-scenes/real-scene-4.jpg");
}

.slide-five {
  animation-delay: 28s;
  background-image: url("/assets/images/hero-scenes/real-scene-5.jpg");
}

.slide-six {
  animation-delay: 35s;
  background-image: url("/assets/images/hero-scenes/real-scene-6.jpg");
}

.slide-one::before {
  width: 34vw;
  height: 34vw;
  right: 8vw;
  top: 14%;
  border: 28px solid rgba(255,255,255,.28);
}

.slide-two::before {
  width: 48vw;
  height: 18vw;
  right: -8vw;
  bottom: 16%;
  background: rgba(255,255,255,.18);
  transform: rotate(-12deg);
}

.slide-three::before {
  width: 36vw;
  height: 36vw;
  right: 10vw;
  top: 16%;
  background: radial-gradient(circle, rgba(255,255,255,.28), transparent 64%);
}

.slide-four::before {
  width: 42vw;
  height: 42vw;
  right: -10vw;
  top: 8%;
  border: 44px solid rgba(255,255,255,.20);
}

.slide-five::before {
  width: 46vw;
  height: 20vw;
  right: 4vw;
  top: 22%;
  background: rgba(255,255,255,.18);
  transform: rotate(18deg);
}

.slide-six::before {
  width: 28vw;
  height: 28vw;
  right: 12vw;
  top: 20%;
  border: 1px solid rgba(255,255,255,.36);
  box-shadow: 0 0 0 28px rgba(255,255,255,.08), 0 0 0 72px rgba(255,255,255,.06);
}

@keyframes heroSlide {
  0% { opacity: 0; transform: scale(1.035); }
  4% { opacity: 1; transform: scale(1); }
  15% { opacity: 1; transform: scale(1); }
  20% { opacity: 0; transform: scale(1.03); }
  100% { opacity: 0; transform: scale(1.035); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 680px) minmax(360px, 1fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.hero-copy-panel {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(18, 104, 243, .12);
  backdrop-filter: blur(12px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero h1 {
  margin: 0;
  max-width: 10em;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  animation: heroTitleRise .7s ease-out both;
}

.hero-subtitle {
  margin: 14px 0 0;
  color: #0f766e;
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 900;
  line-height: 1.25;
  animation: heroTitleRise .7s .08s ease-out both;
}

.hero-copy {
  max-width: 560px;
  margin: 18px 0 26px;
  color: #435166;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.65;
  animation: heroTitleRise .7s .14s ease-out both;
}

.hero-actions,
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-actions {
  animation: heroTitleRise .7s .2s ease-out both;
}

.primary-action,
.secondary-action,
.tool-button {
  border: 0;
  cursor: pointer;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-action {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 14px 34px rgba(18, 104, 243, .28);
}

.secondary-action {
  color: var(--ink);
  background: var(--yellow);
}

.tool-button {
  color: #fff;
  background: var(--green);
}

.full {
  width: 100%;
}

.hero-stats {
  margin-top: 34px;
}

.hero-stats span {
  padding: 10px 16px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(18, 104, 243, .14);
  border-radius: 8px;
  max-width: 100%;
  box-shadow: 0 10px 26px rgba(24, 33, 47, .08);
}

.hero-stats b {
  margin-right: 7px;
  color: var(--blue);
}

.hero-scene {
  position: relative;
  min-height: 430px;
  border-radius: 22px;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  animation: sceneFloat 7s ease-in-out infinite;
  backdrop-filter: none;
}

.sun-orbit {
  position: absolute;
  width: 78px;
  height: 78px;
  right: 34px;
  top: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7b1 0 40%, #ffd74a 42% 100%);
  box-shadow: 0 0 0 18px rgba(255, 215, 74, .16), 0 0 46px rgba(255, 122, 47, .26);
  animation: sunPulse 4.8s ease-in-out infinite;
}

.growth-path {
  position: absolute;
  left: 56px;
  right: 58px;
  bottom: 82px;
  height: 88px;
  border-bottom: 8px solid rgba(24, 166, 106, .62);
  border-radius: 0 0 50% 50%;
  transform: rotate(-4deg);
}

.growth-path::before,
.growth-path::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: var(--green);
}

.growth-path::before {
  width: 18px;
  height: 18px;
  left: 22%;
  bottom: -13px;
  box-shadow: 120px -22px 0 var(--blue), 245px -52px 0 var(--orange);
}

.growth-path::after {
  width: 36px;
  height: 20px;
  right: 24px;
  bottom: 22px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  transform: rotate(-18deg);
}

.person-card {
  position: absolute;
  display: grid;
  place-items: center;
  width: 96px;
  height: 138px;
  bottom: 72px;
  border-radius: 22px 22px 34px 34px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 18px 42px rgba(24, 33, 47, .13);
}

.person-card-left {
  left: 42px;
  animation: personStep 5s ease-in-out infinite;
}

.person-card-right {
  right: 54px;
  bottom: 104px;
  animation: personStep 5s 1.1s ease-in-out infinite;
}

.person-head {
  position: absolute;
  top: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffd6a1;
  box-shadow: inset -8px -8px 0 rgba(255,122,47,.18);
}

.person-body {
  position: absolute;
  bottom: 28px;
  width: 50px;
  height: 60px;
  border-radius: 22px 22px 12px 12px;
  background: linear-gradient(135deg, var(--blue), #4fb6ff);
}

.person-card-right .person-body {
  background: linear-gradient(135deg, var(--green), #7ee7b4);
}

.scene-card {
  position: absolute;
  display: grid;
  gap: 8px;
  padding: 14px;
  color: var(--ink);
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(24, 33, 47, .12);
}

.scene-card b {
  font-size: 14px;
}

.scene-card-main {
  right: 76px;
  top: 58px;
  left: auto;
  width: 190px;
  animation: cardFloat 5.5s ease-in-out infinite;
}

.scene-card-main i {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.scene-card-main i:nth-child(3) {
  width: 78%;
}

.scene-card-main i:nth-child(4) {
  width: 56%;
}

.scene-card-plan {
  right: 250px;
  top: 230px;
  left: auto;
  width: 136px;
  animation: cardFloat 5.5s .6s ease-in-out infinite;
}

.scene-card-report {
  right: 76px;
  top: 258px;
  width: 136px;
  animation: cardFloat 5.5s 1s ease-in-out infinite;
}

.scene-card span {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
}

.scene-card-report span {
  background: linear-gradient(135deg, #fff, #dfefff);
  border: 6px solid var(--blue);
}

.scene-ground {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 54px;
  height: 24px;
  border-radius: 50%;
  background: rgba(24, 166, 106, .18);
}

@keyframes heroTitleRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sceneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes sunPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes personStep {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

section {
  padding: 74px clamp(18px, 4vw, 58px);
}

.section-head {
  max-width: 880px;
  margin-bottom: 28px;
}

.section-head h2,
.report-copy h2,
.safety-section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: 0;
}

.quick-band,
.digital-section,
.special-section,
.register-section,
.home-gateway {
  background: #fff;
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gateway-grid a {
  min-height: 150px;
  padding: 22px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-left: 7px solid var(--green);
  border-radius: 8px;
}

.gateway-grid b {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.gateway-grid span {
  color: var(--muted);
  line-height: 1.65;
}

.member-dashboard {
  background:
    linear-gradient(180deg, #ffffff 0%, #edf8f4 52%, #f4f8fb 100%);
}

.member-dashboard[hidden] {
  display: none;
}

.member-topline {
  display: grid;
  grid-template-columns: 1fr minmax(250px, 360px);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}

.member-identity,
.member-live-card,
.dashboard-panel,
.dashboard-stat-grid article,
.dashboard-stat-card,
.feature-dock a {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(24, 33, 47, .07);
}

.member-identity {
  display: flex;
  gap: 18px;
  align-items: center;
  min-width: 0;
  padding: 22px;
}

.member-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--green) 58%, var(--orange));
  border-radius: 8px;
}

.member-avatar.small {
  width: 46px;
  height: 46px;
  font-size: 20px;
}

.member-identity h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.member-identity p,
.member-live-card span {
  color: var(--muted);
  line-height: 1.65;
}

.member-live-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  border-top: 7px solid var(--yellow);
}

.member-live-card b {
  font-size: 20px;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.dashboard-stat-grid article,
.dashboard-stat-card {
  display: block;
  min-width: 0;
  padding: 16px;
}

.dashboard-stat-card {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.dashboard-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 104, 243, .35);
  box-shadow: 0 18px 42px rgba(24, 33, 47, .12);
}

.dashboard-stat-card em {
  display: inline-block;
  margin-top: 10px;
  color: var(--green);
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
}

.drilldown-focus {
  outline: 3px solid rgba(18, 104, 243, .22);
  outline-offset: 6px;
  animation: drillPulse 1.6s ease;
}

@keyframes drillPulse {
  0%, 100% { box-shadow: 0 12px 36px rgba(24, 33, 47, .07); }
  35% { box-shadow: 0 0 0 10px rgba(18, 104, 243, .10), 0 20px 48px rgba(24, 33, 47, .14); }
}

.dashboard-stat-grid span,
.dashboard-stat-grid small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.dashboard-stat-grid b {
  display: block;
  margin: 8px 0 4px;
  color: var(--blue);
  font-size: 34px;
  line-height: 1;
}

.feature-dock {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.feature-dock a {
  min-width: 0;
  padding: 15px;
  transition: transform .18s ease, border-color .18s ease;
}

.feature-dock a:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 104, 243, .45);
}

.feature-dock b {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
}

.feature-dock span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 380px);
  gap: 20px;
  align-items: start;
}

.dashboard-main,
.dashboard-side {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.dashboard-panel {
  min-width: 0;
  padding: 22px;
}

.dashboard-panel h3 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.25;
}

.dashboard-panel h4 {
  margin: 0 0 10px;
  font-size: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}

.compact-action {
  min-height: 38px;
  padding: 0 14px;
}

.panel-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: #115740;
  font-weight: 900;
  background: rgba(24, 166, 106, .12);
  border-radius: 8px;
  white-space: nowrap;
}

.ai-insight-list {
  display: grid;
  gap: 10px;
}

.ai-insight-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ai-insight-item b {
  display: grid;
  place-items: center;
  height: 34px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
}

.ai-insight-item p,
.summary-card p,
.resource-list p,
.exercise-list span,
.timeline-item p,
.mood-log-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.dashboard-chart-grid,
.split-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-chart-grid {
  margin-top: 18px;
}

.mini-chart {
  display: grid;
  gap: 10px;
}

.mini-chart-row {
  display: grid;
  grid-template-columns: minmax(72px, 118px) 1fr 32px;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}

.mini-chart-row span {
  color: #334155;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.mini-chart-row i {
  height: 10px;
  overflow: hidden;
  background: #e6edf4;
  border-radius: 999px;
}

.mini-chart-row em {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: inherit;
}

.mini-chart-row strong {
  text-align: right;
}

.record-timeline,
.plan-list,
.resource-list,
.exercise-list,
.mood-log-list {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(96px, 140px) 1fr;
  gap: 14px;
  padding: 14px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline-item > span {
  align-self: start;
  padding: 8px 10px;
  color: #0d5271;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  background: #dff3ff;
  border-radius: 8px;
}

.timeline-item.module-history > span {
  color: #7b4a00;
  background: #fff8d9;
}

.timeline-item h4 {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}

.timeline-item small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

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

.plan-item {
  display: grid;
  gap: 6px;
  padding: 13px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-left: 5px solid #cbd7e3;
  border-radius: 8px;
}

.plan-item.is-today {
  border-left-color: var(--orange);
  background: #fff8f1;
}

.plan-item.is-done {
  border-left-color: var(--green);
  background: #f1fbf6;
}

.plan-item.is-missed {
  border-left-color: var(--rose);
  background: #fff5f7;
}

.plan-item b {
  color: var(--blue);
}

.plan-item span {
  line-height: 1.5;
}

.plan-item small {
  color: var(--muted);
}

.plan-item em {
  color: #9f1239;
  font-style: normal;
  line-height: 1.5;
}

.goal-reminder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 20px;
  padding: 18px;
  color: #0f3324;
  background: linear-gradient(135deg, #e8fff4, #fff8df);
  border: 1px solid rgba(24, 166, 106, .28);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(24, 33, 47, .08);
}

.goal-reminder h3,
.goal-reminder p {
  margin: 0;
}

.goal-reminder p {
  margin-top: 6px;
  line-height: 1.65;
}

.goal-reminder small {
  display: block;
  margin-top: 8px;
  color: #2d5f48;
  line-height: 1.5;
}

.goal-reminder-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.goal-plan-form {
  margin-bottom: 18px;
  padding: 14px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.plan-progress,
.plan-conclusion {
  margin-bottom: 12px;
  padding: 14px;
  background: #eef6ff;
  border: 1px solid #cfe2ff;
  border-radius: 8px;
}

.plan-progress b {
  display: block;
  color: var(--blue);
  font-size: 24px;
}

.plan-progress span,
.plan-conclusion p {
  color: var(--muted);
  line-height: 1.65;
}

.plan-calendar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.plan-check-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.plan-check-row input {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.plan-check-row button {
  padding: 9px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.plan-check-row button:first-of-type {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.notice-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(10px);
}

.notice-modal {
  position: relative;
  width: min(460px, 100%);
  padding: 26px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.notice-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  color: var(--muted);
  background: #f4f8fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.notice-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 8px;
}

.notice-modal h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.notice-modal p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.notice-countdown {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  color: var(--muted);
}

.notice-countdown::before {
  content: "";
  display: none;
}

.notice-countdown i {
  display: block;
  height: 8px;
  background: linear-gradient(90deg, var(--green), var(--orange));
  border-radius: 999px;
  transition: width .3s linear;
}

body.modal-open {
  overflow: hidden;
}

.compat-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.compat-profile-grid section {
  padding: 13px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compat-profile-grid b,
.compat-profile-grid span {
  display: block;
}

.compat-profile-grid span {
  margin-top: 4px;
  color: var(--green);
  font-weight: 800;
}

.compat-profile-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.report-notifications,
.admin-notice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.report-notifications span,
.admin-notice-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  color: var(--muted);
  background: #f4f8fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.report-notifications .is-sent,
.admin-notice-tags .is-sent {
  color: #0f7a4d;
  background: #ecfdf5;
  border-color: #b7ead1;
}

.report-notifications .is-failed,
.admin-notice-tags .is-failed {
  color: #b4234b;
  background: #fff1f3;
  border-color: #ffd0da;
}

.summary-card {
  padding: 14px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.summary-metrics span {
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-metrics b {
  display: block;
  color: var(--blue);
  font-size: 20px;
}

.exercise-list article,
.mood-log-list article {
  padding: 12px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.exercise-list b {
  display: block;
  margin-bottom: 5px;
}

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

.practice-list article {
  display: grid;
  gap: 12px;
  align-content: start;
}

.practice-title span {
  display: block;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.practice-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.practice-list ol {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

.practice-record {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.practice-record strong {
  color: var(--blue);
}

.practice-record small {
  color: var(--muted);
  line-height: 1.55;
}

.dashboard-form {
  display: grid;
}

.dashboard-form label {
  margin-bottom: 13px;
}

.mood-chart {
  display: flex;
  align-items: end;
  gap: 7px;
  min-height: 140px;
  margin: 16px 0;
  padding: 12px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mood-bar {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 6px;
  flex: 1;
  min-width: 0;
  height: 112px;
  align-items: end;
}

.mood-bar i {
  width: 100%;
  min-height: 10px;
  background: linear-gradient(180deg, var(--orange), var(--green));
  border-radius: 8px 8px 2px 2px;
}

.mood-bar span {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.mood-log-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: start;
}

.mood-log-list b {
  color: var(--green);
}

.mood-log-list span {
  display: block;
  margin-bottom: 4px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.empty-inline {
  padding: 13px;
  color: var(--muted);
  line-height: 1.6;
  background: #f7fafc;
  border: 1px dashed #cbd7e3;
  border-radius: 8px;
}

.portal-page {
  background: #f4f8fb;
}

.admin-shell {
  background: #f4f8fb;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(360px, .95fr) 1.25fr;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-row b {
  overflow-wrap: anywhere;
}

.admin-row p,
.admin-row small,
.admin-user-title span {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-inline-form,
.admin-user-form {
  display: grid;
  gap: 8px;
}

.admin-user-form {
  grid-template-columns: 1.4fr repeat(4, minmax(90px, 1fr)) auto;
  align-items: end;
}

.admin-user-title {
  display: grid;
  align-self: center;
}

.permission-form {
  grid-template-columns: 1fr 110px 150px auto;
}

.admin-day-row {
  display: grid;
  grid-template-columns: 70px 1fr 1fr 90px;
  gap: 10px;
  align-items: center;
}

.admin-day-row i {
  height: 11px;
  overflow: hidden;
  background: #e6edf4;
  border-radius: 999px;
}

.admin-day-row em {
  display: block;
  height: 100%;
  background: var(--green);
}

.admin-day-row .orange-bar {
  background: var(--orange);
}

.admin-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.admin-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.admin-chart-legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-user { background: var(--green); }
.legend-report { background: var(--blue); }
.legend-income { background: var(--orange); }
.user-bar, .line-user, .dot-user { --chart-color: var(--green); }
.report-bar, .line-report, .dot-report { --chart-color: var(--blue); }
.income-bar, .line-income, .dot-income { --chart-color: var(--orange); }

.admin-bar-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  min-height: 230px;
}

.admin-bar-group {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 8px;
  min-width: 0;
}

.bar-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 5px;
  min-height: 150px;
  padding: 10px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bar-stack i {
  display: flex;
  align-items: end;
  height: 130px;
  background: #e9f0f7;
  border-radius: 999px;
  overflow: hidden;
}

.bar-stack em {
  display: block;
  width: 100%;
  min-height: 8px;
  background: var(--chart-color);
  border-radius: inherit;
}

.admin-bar-group b,
.admin-bar-group small {
  text-align: center;
}

.admin-bar-group small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-filter-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.admin-range-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admin-range-summary article {
  padding: 12px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-range-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-range-summary b {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.admin-line-chart {
  min-height: 280px;
  padding: 12px;
  overflow-x: auto;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-line-chart svg {
  min-width: 720px;
  width: 100%;
  height: auto;
}

.admin-line-chart line {
  stroke: #cbd7e3;
}

.admin-line-chart polyline {
  fill: none;
  stroke: var(--chart-color);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-line-chart circle {
  fill: var(--chart-color);
  stroke: #fff;
  stroke-width: 2;
}

.admin-line-chart text {
  fill: var(--muted);
  font-size: 12px;
}

.calm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.calm-grid article,
.intake-panel,
.result-panel,
.engine-card,
.register-form,
.safety-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(24, 33, 47, .07);
}

.calm-grid article {
  padding: 24px;
}

.calm-grid h3,
.engine-card h3,
.result-card h3 {
  margin: 12px 0 8px;
  font-size: 22px;
}

.calm-grid p,
.engine-card p,
.report-copy p,
.safety-section p,
.empty-state p {
  color: var(--muted);
  line-height: 1.7;
}

.icon-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.blue { background: var(--blue); }
.green { background: var(--green); }
.orange { background: var(--orange); }

.text-link {
  color: var(--blue);
  font-weight: 800;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--orange);
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(300px, 430px) 1fr;
  gap: 22px;
}

.digital-section .workspace-layout {
  grid-template-columns: minmax(320px, 460px) 1fr;
}

.intake-panel,
.result-panel,
.register-form {
  padding: 24px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #334155;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd7e3;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
  min-width: 0;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 104, 243, .12);
}

.result-panel {
  min-height: 430px;
  display: grid;
  place-items: center;
}

.empty-state {
  max-width: 430px;
  text-align: center;
}

.compass-glyph {
  display: inline-block;
  width: 96px;
  aspect-ratio: 1;
  border: 12px solid var(--blue);
  border-right-color: var(--green);
  border-bottom-color: var(--orange);
  border-radius: 50%;
}

.result-card {
  width: 100%;
  min-width: 0;
}

.result-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.result-card dl div,
.action-strip {
  padding: 15px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

dt {
  color: var(--muted);
  font-size: 13px;
}

dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.reflection {
  color: var(--muted);
  line-height: 1.8;
}

.privacy-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.insight-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.insight-list section {
  padding: 15px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.insight-list b {
  display: block;
  margin-bottom: 6px;
}

.insight-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.action-strip {
  display: grid;
  gap: 8px;
  border-left: 6px solid var(--green);
}

.special-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.special-tool-card {
  min-width: 0;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(247, 250, 252, .96)),
    linear-gradient(135deg, rgba(18, 104, 243, .16), rgba(24, 166, 106, .12), rgba(255, 122, 47, .14));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(24, 33, 47, .08);
}

.featured-tool-card {
  border-top: 7px solid var(--rose);
}

.tool-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.tool-head h3 {
  margin: 0;
  font-size: 24px;
}

.tool-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 8px;
}

.compact-form {
  display: grid;
  gap: 12px;
}

.compact-form label {
  margin-bottom: 0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.optional-fields {
  padding: 12px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.optional-fields summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 900;
}

.check-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid #cbd7e3;
  border-radius: 8px;
}

.check-label input {
  width: auto;
}

.tool-result {
  margin-top: 16px;
}

.mini-loading,
.mini-error,
.notice-pill {
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.6;
}

.mini-loading {
  color: #115740;
  background: rgba(24, 166, 106, .12);
}

.mini-error {
  color: #9a2626;
  background: rgba(255, 93, 125, .13);
}

.notice-pill {
  color: #7b4a00;
  background: #fff8d9;
}

.module-result-card {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.module-result-card h4 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
}

.score-band {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  padding: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 8px;
}

.score-band b {
  font-size: 34px;
  line-height: 1;
}

.score-band span {
  font-weight: 900;
}

.module-summary {
  color: var(--muted);
  line-height: 1.75;
}

.metric-list,
.chart-list,
.module-sections,
.decision-list,
.action-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.metric-row {
  display: grid;
  grid-template-columns: minmax(82px, 118px) 1fr 36px;
  gap: 9px;
  align-items: center;
  font-size: 14px;
}

.metric-row span {
  color: #334155;
  font-weight: 800;
}

.metric-row i {
  height: 9px;
  overflow: hidden;
  background: #e6edf4;
  border-radius: 999px;
}

.metric-row em {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--green));
  border-radius: inherit;
}

.metric-row strong {
  text-align: right;
}

.module-sections section {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.module-sections b,
.decision-list b {
  display: block;
  margin-bottom: 5px;
}

.module-sections p,
.decision-list span {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hexagram-box {
  display: grid;
  gap: 6px;
  padding: 12px;
  color: #fff;
  background: #101827;
  border-radius: 8px;
}

.hexagram-box strong {
  font-size: 34px;
  letter-spacing: 0;
}

.decision-list div {
  padding: 12px;
  background: #f7fafc;
  border-left: 5px solid var(--orange);
  border-radius: 8px;
}

.action-list {
  padding-left: 22px;
  color: var(--ink);
  line-height: 1.65;
}

.engine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.engine-card {
  overflow: hidden;
}

.engine-card div {
  padding: 22px;
}

.visual-engine {
  display: grid;
  grid-template-rows: 260px auto;
}

.engine-visual {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 0;
}

.engine-visual span {
  position: absolute;
  display: block;
  border-radius: 8px;
}

.calm-engine .engine-visual {
  background: linear-gradient(135deg, #e8f7ff, #f2fff5);
}

.calm-engine .engine-visual span:nth-child(1) {
  width: 180px;
  height: 180px;
  left: 12%;
  top: 18%;
  border: 18px solid var(--blue);
  border-right-color: var(--green);
  border-bottom-color: var(--yellow);
  border-radius: 50%;
}

.calm-engine .engine-visual span:nth-child(2) {
  width: 42%;
  height: 14px;
  right: 12%;
  top: 32%;
  background: var(--green);
  box-shadow: 0 36px 0 var(--blue), 0 72px 0 var(--orange);
}

.calm-engine .engine-visual span:nth-child(3) {
  width: 110px;
  height: 110px;
  right: 18%;
  bottom: 12%;
  background: rgba(255, 215, 74, .88);
}

.symbol-engine .engine-visual {
  background: linear-gradient(135deg, #fff8d9, #e8f7ff);
}

.symbol-engine .engine-visual span:nth-child(1) {
  width: 58%;
  height: 58%;
  right: 10%;
  top: 16%;
  background: conic-gradient(from 90deg, var(--blue), var(--green), var(--yellow), var(--orange), var(--blue));
  border-radius: 50%;
}

.symbol-engine .engine-visual span:nth-child(2) {
  width: 44%;
  height: 44%;
  right: 17%;
  top: 23%;
  background: #fff;
  border-radius: 50%;
}

.symbol-engine .engine-visual span:nth-child(3) {
  width: 42%;
  height: 64%;
  left: 12%;
  bottom: 12%;
  background: repeating-linear-gradient(180deg, var(--blue) 0 10px, transparent 10px 24px);
  opacity: .72;
}

.flat-card {
  display: grid;
  min-height: 210px;
  align-content: center;
  border-top: 8px solid var(--orange);
}

.module-section {
  background: #fff;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.module-grid article {
  min-height: 126px;
  padding: 18px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.module-grid b {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.module-grid span {
  color: var(--muted);
  line-height: 1.6;
}

.report-section {
  display: grid;
  grid-template-columns: minmax(300px, 520px) 1fr;
  gap: 34px;
  align-items: center;
  background: #fff;
}

.feature-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.feature-list li {
  padding: 13px 15px;
  border-left: 5px solid var(--orange);
  background: #fff8f1;
  border-radius: 8px;
  font-weight: 800;
}

.report-mockup {
  min-height: 520px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(247,250,252,.96)),
    linear-gradient(135deg, rgba(18,104,243,.16), rgba(24,166,106,.12), rgba(255,122,47,.14));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mockup-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 8px;
}

.mockup-top span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--ink);
  font-weight: 900;
  background: var(--yellow);
  border-radius: 8px;
}

.mockup-top b {
  font-size: 24px;
}

.mockup-chart {
  display: flex;
  align-items: end;
  gap: 18px;
  height: 190px;
  margin: 26px 0;
  padding: 22px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mockup-chart i {
  flex: 1;
  min-height: 20px;
  background: linear-gradient(180deg, var(--orange), var(--green));
  border-radius: 8px 8px 3px 3px;
}

.mockup-lines {
  display: grid;
  gap: 14px;
}

.mockup-lines span {
  display: block;
  height: 16px;
  background: #dce5ee;
  border-radius: 999px;
}

.mockup-lines span:nth-child(2) {
  width: 82%;
}

.mockup-lines span:nth-child(3) {
  width: 68%;
}

.mockup-lines span:nth-child(4) {
  width: 92%;
}

.report-mockup p {
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.register-section {
  max-width: none;
}

.register-form {
  max-width: 680px;
}

.auth-page {
  background:
    linear-gradient(135deg, rgba(18, 104, 243, .08), rgba(24, 166, 106, .08)),
    var(--wash);
}

.auth-page main {
  min-height: calc(100vh - 150px);
}

.auth-hero {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(340px, 520px);
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(34px, 7vw, 86px) clamp(16px, 5vw, 58px);
}

.auth-hero-copy {
  display: grid;
  gap: 18px;
}

.auth-hero-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.auth-hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.auth-autofill-decoys {
  position: fixed;
  left: -10000px;
  top: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.masked-password-input {
  -webkit-text-security: disc;
  text-security: disc;
}

.standalone-auth {
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

.auth-panel-head {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.auth-panel-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

.auth-panel-head span {
  color: var(--muted);
  line-height: 1.55;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(320px, 680px) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
}

.auth-panel,
.account-card,
.report-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(24, 33, 47, .07);
}

.auth-panel {
  padding: clamp(20px, 3vw, 30px);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px;
  background: #eef3f8;
  border-radius: 8px;
}

.auth-tab {
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.auth-tab.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 8px 20px rgba(24, 33, 47, .09);
}

.auth-page .register-form {
  max-width: none;
}

.auth-page .register-form label {
  font-weight: 900;
}

.auth-page .register-form input,
.auth-page .register-form select,
.auth-page .register-form textarea {
  min-height: 48px;
}

.auth-page .primary-action.full {
  min-height: 50px;
  font-size: 16px;
}

.auth-inline-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 0;
}

.text-button {
  padding: 0;
  color: var(--blue);
  background: transparent;
  border: 0;
  font-weight: 900;
  cursor: pointer;
}

.account-card {
  padding: 24px;
}

.account-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.account-profile {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.account-card p {
  color: var(--muted);
  line-height: 1.7;
}

.account-meta {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.account-meta div {
  padding: 10px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-meta dt {
  color: var(--muted);
}

.account-meta dd {
  overflow-wrap: anywhere;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.code-row .secondary-action {
  min-width: 150px;
  margin-bottom: 16px;
}

.form-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
}

.password-rule {
  margin: -4px 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.pricing-notice {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.pricing-notice span {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 12px;
  color: #334155;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: 8px;
}

.pricing-notice b {
  color: var(--blue);
  font-size: 16px;
}

.form-message[data-state="ok"] {
  color: var(--green);
}

.form-message[data-state="error"] {
  color: #c33131;
}

.safety-section {
  margin: 74px clamp(18px, 4vw, 58px);
  padding: 32px;
}

.reports-section {
  background: #f4f8fb;
}

.reports-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.reports-list {
  display: grid;
  gap: 14px;
}

.report-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.report-item h3 {
  margin: 0 0 8px;
  font-size: 22px;
  overflow-wrap: anywhere;
}

.report-item p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.report-item small {
  color: var(--muted);
}

.discount-hint {
  margin-top: 8px !important;
  color: #7b4a00 !important;
  font-size: 13px;
}

.report-download-inline {
  margin-top: 16px;
}

.report-actions {
  display: grid;
  gap: 10px;
  min-width: 170px;
}

.report-actions .primary-action,
.report-actions .secondary-action {
  width: 100%;
  white-space: nowrap;
}

.alipay-action {
  background: #dff3ff;
  color: #0d5271;
}

.payment-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  color: #115740;
  font-weight: 900;
  background: rgba(24, 166, 106, .12);
  border-radius: 8px;
}

.payment-state.pending {
  color: #7b4a00;
  background: #fff8d9;
}

.breathing-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(12, 18, 28, .72);
}

.breathing-modal[hidden] {
  display: none;
}

.breathing-dialog {
  position: relative;
  width: min(420px, calc(100vw - 34px));
  padding: 34px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #eef3f8;
  cursor: pointer;
}

.breathing-orb {
  width: 150px;
  aspect-ratio: 1;
  margin: 26px auto;
  border-radius: 50%;
  background: radial-gradient(circle, var(--yellow), var(--green) 54%, var(--blue));
  animation: breathe 16s infinite ease-in-out;
}

@keyframes breathe {
  0%, 100% { transform: scale(.72); }
  25%, 50% { transform: scale(1); }
  75% { transform: scale(.72); }
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 4vw, 58px);
  color: var(--muted);
  background: #101827;
}

@media (max-width: 900px) {
  .digital-section .workspace-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-header {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .nav-links {
    order: 3;
    flex: 1 0 100%;
    justify-content: flex-start;
    gap: 16px;
    padding: 4px 0 2px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .session-nav {
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .hero {
    min-height: 620px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-scene {
    min-height: 110px;
    max-width: 560px;
    width: 100%;
    justify-self: center;
  }

  .hero-scene .scene-card {
    display: none;
  }

  .hero-slide span {
    right: 18px;
    bottom: 18px;
    max-width: 58vw;
    font-size: 14px;
  }

  .auth-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 16px 46px;
  }

  .auth-hero-copy {
    order: 2;
  }

  .standalone-auth {
    order: 1;
    max-width: 640px;
    justify-self: center;
  }

  .calm-grid,
  .workspace-layout,
  .engine-grid,
  .module-grid,
  .special-grid,
  .account-layout,
  .report-section,
  .member-topline,
  .dashboard-grid,
  .dashboard-chart-grid,
  .split-panel,
  .gateway-grid,
  .admin-grid,
  .admin-filter-form,
  .admin-range-summary,
  .admin-user-form,
  .permission-form,
  .practice-list {
    grid-template-columns: 1fr;
  }

  .admin-bar-chart {
    overflow-x: auto;
    grid-template-columns: repeat(7, minmax(86px, 1fr));
  }

  .dashboard-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .goal-reminder {
    align-items: stretch;
    flex-direction: column;
  }

  .goal-reminder-actions {
    width: 100%;
  }

  .goal-reminder-actions a,
  .goal-reminder-actions button {
    flex: 1 1 0;
  }

  .plan-calendar {
    grid-template-columns: 1fr;
  }

  .compat-profile-grid {
    grid-template-columns: 1fr;
  }

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

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

  .admin-day-row {
    grid-template-columns: 1fr;
  }

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

  .result-card dl,
  .code-row,
  .form-row,
  .report-item,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .code-row .secondary-action {
    width: 100%;
    margin-bottom: 0;
  }

  .report-item .primary-action {
    width: 100%;
  }

  .report-actions {
    width: 100%;
  }
}

@media (max-width: 560px) {
  html,
  body,
  main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  section,
  section > *,
  .section-head,
  .workspace-layout,
  .special-grid,
  .intake-panel,
  .result-panel,
  .special-tool-card {
    min-width: 0;
    max-width: 100%;
  }

  .section-head h2,
  .section-head p,
  .hero-copy-panel h1,
  .hero-copy-panel p,
  .special-tool-card h3,
  .special-tool-card p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body {
    background: #fff;
  }

  section {
    padding: 46px 14px;
  }

  .hero {
    min-height: auto;
    padding: 34px 16px 46px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.82) 48%, rgba(255,255,255,.22) 100%);
  }

  .hero-copy-panel {
    padding: 18px;
    border-radius: 14px;
  }

  .auth-page .site-header {
    position: sticky;
  }

  .auth-hero {
    padding: 18px 12px 34px;
  }

  .auth-panel {
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(24, 33, 47, .11);
  }

  .auth-panel-head {
    margin-bottom: 12px;
  }

  .auth-panel-head h2 {
    font-size: 25px;
  }

  .auth-tabs {
    margin-bottom: 12px;
  }

  .auth-tab {
    min-height: 44px;
  }

  .auth-page .register-form label {
    margin-bottom: 11px;
  }

  .auth-page .register-form input {
    min-height: 46px;
  }

  .auth-inline-links {
    display: grid;
    justify-content: stretch;
    text-align: left;
  }

  .auth-hero-copy {
    gap: 12px;
    padding: 4px 2px 0;
  }

  .auth-hero-copy h1 {
    font-size: 28px;
    line-height: 1.18;
  }

  .auth-hero-copy > p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.7;
  }

  .hero h1 {
    font-size: 40px;
    line-height: 1.08;
  }

  .hero-copy {
    margin: 14px 0 20px;
    font-size: 16px;
    line-height: 1.6;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .hero-scene {
    min-height: 60px;
    border-radius: 18px;
  }

  .hero-slide {
    background-position: 60% center;
  }

  .hero-slide span {
    display: none;
  }

  .sun-orbit {
    width: 72px;
    height: 72px;
    right: 24px;
    top: 22px;
  }

  .person-card {
    width: 82px;
    height: 122px;
    bottom: 56px;
    border-radius: 18px 18px 26px 26px;
  }

  .person-card-left {
    left: 24px;
  }

  .person-card-right {
    right: 24px;
    bottom: 78px;
  }

  .person-head {
    top: 18px;
    width: 34px;
    height: 34px;
  }

  .person-body {
    width: 42px;
    height: 52px;
    bottom: 22px;
  }

  .scene-card {
    padding: 10px;
    border-radius: 12px;
  }

  .scene-card-main {
    left: 98px;
    top: 50px;
    width: 150px;
  }

  .scene-card-plan {
    left: 66px;
    top: 174px;
    width: 120px;
  }

  .scene-card-report {
    right: 36px;
    top: 172px;
    width: 120px;
  }

  .growth-path {
    left: 34px;
    right: 34px;
    bottom: 74px;
    height: 56px;
  }

  .hero-stats span {
    width: 100%;
  }

  .eyebrow {
    font-size: 12px;
    letter-spacing: 0;
    line-height: 1.35;
  }

  .brand {
    min-width: 0;
  }

  .brand strong,
  .brand small {
    white-space: normal;
  }

  .site-header {
    padding: 10px 14px;
    gap: 8px 10px;
  }

  .session-nav {
    flex: 0 0 auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  .session-user {
    max-width: 46vw;
    flex: 1 1 auto;
  }

  .session-nav .compact-action {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 11px;
    font-size: 14px;
  }

  .nav-links {
    flex-basis: 100%;
    font-size: 14px;
    gap: 14px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand small {
    font-size: 12px;
  }

  .section-head h2,
  .report-copy h2,
  .safety-section h2 {
    font-size: 30px;
  }

  .intake-panel,
  .result-panel,
  .register-form,
  .auth-panel,
  .account-card,
  .dashboard-panel,
  .special-tool-card,
  .safety-section {
    padding: 18px;
    max-width: 100%;
  }

  .member-dashboard {
    padding: 46px 14px;
  }

  .member-identity {
    align-items: start;
    padding: 18px;
  }

  .member-avatar {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .member-identity h2 {
    font-size: 28px;
  }

  .dashboard-stat-grid,
  .feature-dock,
  .summary-metrics,
  .pricing-notice {
    grid-template-columns: 1fr;
  }

  .plan-check-row {
    grid-template-columns: 1fr;
  }

  .plan-check-row button,
  .goal-reminder-actions {
    width: 100%;
  }

  .goal-reminder-actions {
    display: grid;
  }

  .notice-modal {
    padding: 24px 18px;
  }

  .auth-page .pricing-notice {
    gap: 8px;
  }

  .auth-page .pricing-notice span {
    padding: 10px 12px;
  }

  .dashboard-stat-grid b {
    font-size: 30px;
  }

  .panel-head {
    display: grid;
  }

  .compact-action {
    width: 100%;
  }

  .mini-chart-row {
    grid-template-columns: 1fr 34px;
  }

  .mini-chart-row i {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .timeline-item > span {
    text-align: left;
  }

  .result-panel {
    min-height: 300px;
  }

  .visual-engine {
    grid-template-rows: 220px auto;
  }

  .engine-visual {
    min-height: 220px;
  }

  .module-grid article {
    min-height: auto;
  }

  .breathing-dialog {
    width: calc(100vw - 24px);
    padding: 26px 18px;
  }

  .breathing-orb {
    width: min(46vw, 150px);
  }

  .hero-actions a,
  .hero-actions button,
  .reports-toolbar a,
  .reports-toolbar button,
  .account-actions a,
  .account-actions button {
    width: 100%;
  }

  .metric-row {
    grid-template-columns: 1fr 34px;
  }

  .metric-row span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 390px) {
  .brand small {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .session-nav .compact-action {
    padding: 7px 9px;
    font-size: 13px;
  }

  .nav-links {
    gap: 12px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1,
  .hero-subtitle,
  .hero-copy,
  .hero-actions,
  .hero-scene,
  .sun-orbit,
  .person-card,
  .scene-card {
    animation: none !important;
  }
}

/* Learning psychology bridge across the YLK and exam-preparation sites. */
.study-support-section {
  padding-block: 82px;
  background: #103f46;
  color: #fff;
}

.study-support-inner {
  max-width: 1360px;
  margin: 0 auto;
}

.study-support-head p:last-child {
  color: #cfe5e1;
}

.study-support-layout {
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr);
  gap: 18px;
  align-items: start;
}

.study-support-form,
.study-support-result {
  min-width: 0;
  padding: 24px;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
}

.study-support-form {
  display: grid;
  gap: 15px;
}

.study-support-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
  font-size: 14px;
}

.study-support-form textarea,
.study-support-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.study-support-form textarea {
  resize: vertical;
}

.study-score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.study-score-grid label {
  position: relative;
  padding: 12px;
  background: #f1f7f5;
  border: 1px solid #d9e8e4;
  border-radius: 6px;
}

.study-score-grid output {
  position: absolute;
  top: 10px;
  right: 12px;
  color: var(--green);
  font-weight: 800;
}

.study-support-result {
  min-height: 470px;
}

.study-result-empty {
  min-height: 420px;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 32px;
  background: #edf7f4;
  border: 1px dashed #9ecbc0;
  border-radius: 6px;
}

.study-result-empty span,
.study-result-head span,
.study-immediate span,
.study-recommendation span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.study-result-empty h3 {
  margin: 8px 0;
  font-size: 27px;
}

.study-result-head,
.study-recommendation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.study-result-head h3,
.study-recommendation h4 {
  margin: 3px 0;
}

.study-result-head b {
  padding: 7px 10px;
  background: #e8f6f1;
  color: #12634f;
  border-radius: 5px;
  font-size: 13px;
}

.study-result-head.watch b {
  background: #fff1d6;
  color: #8a5500;
}

.study-result-head.urgent b,
.study-safety-alert {
  background: #fff0ed;
  color: #9d2e25;
}

.study-safety-alert {
  margin: 14px 0;
  padding: 14px;
  border-left: 5px solid #d84a3a;
}

.study-score-result {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.study-score-result > div {
  display: grid;
  grid-template-columns: 82px 1fr 45px;
  gap: 9px;
  align-items: center;
  font-size: 13px;
}

.study-score-result i {
  height: 7px;
  overflow: hidden;
  background: #e3ece9;
  border-radius: 8px;
}

.study-score-result i b {
  display: block;
  height: 100%;
  background: #22a17d;
}

.study-immediate {
  padding: 15px;
  background: #f5faf8;
  border-left: 5px solid var(--orange);
}

.study-immediate p,
.study-support-note {
  margin: 5px 0 0;
}

.study-plan-details {
  margin: 15px 0;
  padding: 13px 15px;
  background: #f7f9fa;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.study-plan-details summary {
  cursor: pointer;
  font-weight: 800;
}

.study-plan-details ol {
  margin: 12px 0 0 22px;
}

.study-plan-details li {
  margin: 6px 0;
}

.study-phase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.study-phase-grid article {
  padding: 13px;
  background: #eef5f8;
  border-top: 4px solid #3f8ead;
}

.study-phase-grid span {
  color: #39738a;
  font-size: 11px;
  font-weight: 800;
}

.study-phase-grid h4 {
  margin: 6px 0;
}

.study-phase-grid p,
.study-recommendation p,
.study-support-note {
  color: var(--muted);
  font-size: 13px;
}

.study-recommendation {
  margin-top: 15px;
  padding: 16px;
  background: #eef8f4;
  border-bottom: 0;
}

.study-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.study-dashboard-panel .study-support-form,
.study-dashboard-panel .study-support-result {
  padding-inline: 0;
}

.study-dashboard-panel .study-support-result {
  min-height: 260px;
}

.study-dashboard-panel .study-result-empty {
  min-height: 230px;
}

.panel-intro {
  margin: -4px 0 16px;
  color: var(--muted);
}

.site-cluster-links {
  max-width: 760px;
  text-align: right;
}

@media (max-width: 900px) {
  .study-support-layout,
  .study-phase-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .study-support-section {
    padding: 48px 14px;
  }

  .study-support-form,
  .study-support-result {
    padding: 17px;
  }

  .study-score-grid {
    grid-template-columns: 1fr;
  }

  .study-result-head,
  .study-recommendation {
    align-items: stretch;
    flex-direction: column;
  }

  .study-recommendation .primary-action,
  .study-result-actions > * {
    width: 100%;
  }

  .site-cluster-links {
    text-align: left;
  }
}
