:root{
  --paper:#f8f3ea;
  --paper-deep:#eee4d4;
  --cream:#fffdf8;
  --ink:#3a2d48;
  --muted:#8a7a90;
  --plum:#4a306d;
  --plum-soft:#8d6aa6;
  --gold:#c29656;
  --rose:#a66b7a;
  --line:#e4d5be;
  --ok:#34785c;
  --danger:#9b4352;
  --shadow:0 10px 28px rgba(74,48,96,.08);
  --radius:8px;
  --tab-height:72px;
}
*{box-sizing:border-box}
html{
  width:100%;
  max-width:100%;
  min-height:100%;
  overflow-x:hidden;
  background:var(--paper);
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
body{margin:0;width:100%;max-width:100%;min-width:0;min-height:100%;overflow-x:hidden;background:var(--paper);color:var(--ink)}
body{
  font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;
  font-size:15px;
  background:
    radial-gradient(circle at 86% 0%, rgba(194,150,86,.12), transparent 28%),
    radial-gradient(circle at 0% 18%, rgba(90,57,116,.07), transparent 30%),
    var(--paper);
  letter-spacing:0;
}
img,video,audio{max-width:100%}
button,input,textarea{font:inherit}
button{cursor:pointer}
.visually-hidden{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
}
.app-shell,.main-view,.page{width:100%;max-width:100%;min-width:0;overflow-x:hidden}
.app-shell [hidden]{display:none!important}
.hidden{display:none!important}
.kicker{
  margin:0 0 8px;
  color:var(--gold);
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.muted{color:var(--muted);line-height:1.8}
.login-view{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:28px;
}
.login-card{
  width:min(430px,100%);
  padding:30px;
  border:1px solid rgba(216,197,167,.88);
  background:rgba(255,250,240,.82);
  box-shadow:var(--shadow);
  border-radius:18px;
  backdrop-filter:blur(18px);
}
.login-mark{
  width:88px;
  height:88px;
  object-fit:contain;
  opacity:.86;
  margin-bottom:16px;
}
.login-card h1{
  margin:0 0 14px;
  font-family:"Songti SC","STSong",serif;
  font-size:42px;
  line-height:1.14;
  font-weight:500;
  color:var(--plum);
}
.login-copy{color:var(--muted);line-height:1.8;margin:0 0 24px}
label{display:block;margin:14px 0}
label span{display:block;font-size:13px;color:var(--muted);margin:0 0 7px}
input,textarea{
  width:100%;
  max-width:100%;
  min-width:0;
  font-size:16px;
  border:1px solid var(--line);
  background:#fffaf4;
  color:var(--ink);
  border-radius:var(--radius);
  outline:none;
}
input{height:48px;padding:0 14px}
textarea{min-height:120px;padding:14px;resize:vertical;line-height:1.7}
input:focus,textarea:focus{border-color:var(--plum-soft);box-shadow:0 0 0 4px rgba(141,106,166,.14)}
.login-tip{font-size:13px;color:var(--muted);margin:14px 0 0}
.primary-btn,.ghost-btn,.danger-btn,.text-btn,.outline-link{
  border:0;
  border-radius:var(--radius);
  text-decoration:none;
}
.primary-btn{
  width:100%;
  min-height:48px;
  padding:0 18px;
  color:white;
  background:linear-gradient(135deg,#4b3269,#7b558f);
  box-shadow:0 12px 26px rgba(75,50,105,.2);
}
.primary-btn.compact{width:auto;min-height:40px}
.ghost-btn{
  padding:10px 12px;
  color:var(--plum);
  background:rgba(255,250,240,.72);
  border:1px solid var(--line);
}
.danger-btn{
  width:100%;
  min-height:44px;
  margin-top:14px;
  color:white;
  background:var(--danger);
}
.text-btn{background:transparent;color:var(--plum);padding:8px}
.outline-link{
  display:block;
  text-align:center;
  padding:13px;
  color:var(--plum);
  border:1px solid var(--line);
  background:#fffaf4;
}
.main-view{min-height:100vh;padding-bottom:calc(var(--tab-height) + env(safe-area-inset-bottom,0px))}
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  width:100%;
  max-width:100%;
  min-width:0;
  padding:9px max(16px,env(safe-area-inset-left)) 7px max(16px,env(safe-area-inset-right));
  background:rgba(248,243,234,.92);
  backdrop-filter:blur(18px);
  border-bottom:0;
}
.topbar h2{margin:0;font-size:22px;color:var(--plum)}
.brand-lockup{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}
.brand-lockup .brand-mark{
  width:34px;
  height:34px;
  object-fit:cover;
  border-radius:50%;
  box-shadow:0 6px 14px rgba(74,48,96,.12);
}
.brand-lockup h2{
  margin:0;
  font-family:"Songti SC","STSong","Noto Serif SC",serif;
  font-weight:500;
  font-size:19px;
  line-height:1.1;
  color:var(--plum);
}
.brand-lockup p{
  margin:3px 0 0;
  color:var(--gold);
  font-size:9px;
  letter-spacing:.28em;
}
.page-title-visually{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
}
.bell-btn{
  position:relative;
  width:42px;
  height:42px;
  margin-left:auto;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  color:var(--ink);
  background:transparent;
}
.bell-btn svg{width:22px;height:22px}
.bell-btn::after{
  content:"";
  position:absolute;
  top:10px;
  right:10px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#c45b5b;
}
.cart-btn,.settings-btn{
  position:relative;
  width:42px;
  height:42px;
  color:var(--plum);
}
.cart-btn em{
  position:absolute;
  top:6px;
  right:4px;
  min-width:16px;
  height:16px;
  padding:0 4px;
  border-radius:999px;
  background:var(--plum);
  color:white;
  font-size:10px;
  line-height:16px;
  text-align:center;
  font-style:normal;
}
.main-view.on-products .cart-btn,
.main-view.on-me .settings-btn{margin-left:auto}
.main-view.on-products .bell-btn,
.main-view.on-me .bell-btn{margin-left:0}
main{width:min(1080px,100%);margin:0 auto;padding:18px;overflow-x:hidden;min-width:0}
.page{display:none}
.page.active{display:block}
.hero-card,.section-block,.player-card,.quick-card,.lesson-item,.audio-card,.product-card,.news-card{
  border:1px solid rgba(216,197,167,.55);
  background:rgba(255,253,248,.88);
  box-shadow:var(--shadow);
  border-radius:20px;
}
.hero-card{
  display:grid;
  grid-template-columns:1fr 112px;
  gap:18px;
  align-items:center;
  padding:22px;
  overflow:hidden;
}
.hero-card h1{font-family:"Songti SC","STSong","Noto Serif SC",serif;font-size:34px;line-height:1.16;margin:0 0 10px;color:var(--plum)}
.hero-card p{margin:0;color:var(--muted);line-height:1.8}
.hero-card img:not(.hero-photo){width:112px;height:112px;object-fit:contain;opacity:.84}
.home-hero{
  position:relative;
  display:grid;
  grid-template-columns:1.28fr .72fr;
  min-height:168px;
  height:auto;
  max-height:none;
  margin:0 2px;
  padding:0;
  overflow:hidden;
  border:0;
  border-radius:22px;
  background:
    linear-gradient(105deg, #fbf6ee 0 42%, rgba(247,236,220,.4) 58%, transparent 78%);
  box-shadow:0 12px 32px rgba(74,48,96,.07);
}
.home-hero::after{
  content:"";
  position:absolute;
  right:-18px;
  top:-22px;
  width:110px;
  height:110px;
  z-index:1;
  background:url("brand/flower-of-life.svg") center/contain no-repeat;
  opacity:.28;
  pointer-events:none;
}
.hero-copy{
  position:relative;
  z-index:2;
  align-self:center;
  padding:18px 10px 24px 18px;
}
.home-welcome{
  margin:0 0 6px!important;
  color:var(--plum)!important;
  font-weight:600;
  font-size:13px;
}
.home-welcome span{margin-left:2px}
.home-hero h1{
  position:relative;
  display:block;
  max-width:11em;
  margin:0 0 8px;
  font-size:28px;
  font-weight:700;
  letter-spacing:0;
  line-height:1.18;
  white-space:normal;
  color:var(--plum);
}
.sparkle{
  position:relative;
  display:inline-block;
  width:12px;
  height:12px;
  margin:0 0 10px 6px;
  vertical-align:super;
  background:
    linear-gradient(45deg, transparent 46%, var(--gold) 46% 54%, transparent 54%),
    linear-gradient(135deg, transparent 46%, var(--gold) 46% 54%, transparent 54%);
  filter:drop-shadow(10px 14px 0 var(--gold));
  opacity:.85;
}
.hero-copy p:last-child{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  max-width:none;
  font-size:13px;
  line-height:1.55;
}
.hero-photo{
  position:absolute;
  right:0;
  top:0;
  bottom:0;
  z-index:0;
  width:44%;
  height:100%;
  object-fit:cover;
  object-position:32% 48%;
  mask-image:linear-gradient(90deg, transparent 0, #000 22%);
  -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 22%);
  opacity:1;
}
.hero-dots{
  position:absolute;
  left:50%;
  bottom:8px;
  z-index:3;
  transform:translateX(-50%);
  display:flex;
  gap:6px;
}
.hero-dots span{
  width:7px;
  height:7px;
  border-radius:50%;
  background:rgba(196,176,150,.7);
}
.hero-dots span:first-child{
  width:16px;
  border-radius:999px;
  background:var(--plum);
}
.quick-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin:16px 0;
}
.quick-card{
  text-align:left;
  min-height:110px;
  padding:16px;
  color:var(--ink);
  min-width:0;
}
.quick-card strong{display:block;margin-bottom:8px;color:var(--plum);font-size:15px}
.quick-card span{color:var(--muted);font-size:12px;line-height:1.6}
.home-entry-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  width:100%;
  max-width:100%;
  overflow:hidden;
  align-items:start;
  gap:0;
  margin:18px 0 8px;
  padding:4px 0 2px;
  border:0;
  background:transparent;
  box-shadow:none;
}
.home-entry{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  width:auto;
  max-width:none;
  min-width:0;
  min-height:auto;
  padding:4px 0;
  border:0;
  box-shadow:none;
  background:transparent;
  color:var(--ink);
  text-align:center;
}
.home-entry strong{
  margin:0;
  color:#4a3b57;
  font-size:13px;
  font-weight:600;
}
.entry-icon{
  display:grid;
  place-items:center;
  width:56px;
  height:56px;
  border-radius:50%;
  color:#fffaf4;
  background:var(--plum);
  box-shadow:0 6px 14px rgba(74,48,109,.18);
}
.entry-icon svg,.entry-icon img{
  width:38px;
  height:38px;
  display:block;
}
.quick-card strong,.quick-card span,.muted,.news-card p,.knowledge-card p,.product-card p,.record-item p,.lesson-item span,.song-meta span{
  overflow-wrap:anywhere;
}
.section-block{padding:18px;margin:16px 0}
.home-section{margin:22px 0 10px;min-width:0;max-width:100%}
.home-section .text-btn{
  color:var(--plum-soft);
  font-size:13px;
  padding:6px 0;
}
.home-section .section-head h3{
  margin:0;
  font-family:"Songti SC","STSong","Noto Serif SC",serif;
  font-weight:600;
  color:var(--plum);
  font-size:22px;
}
.continue-rail{
  display:flex;
  gap:14px;
  margin-top:14px;
  overflow-x:auto;
  max-width:100%;
  min-width:0;
  padding:0 2px 8px;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
}
.continue-rail::-webkit-scrollbar{display:none}
.continue-card{
  position:relative;
  flex:0 0 calc(52% - 8px);
  overflow:hidden;
  min-height:auto;
  padding:0 0 12px;
  border:0;
  border-radius:16px;
  background:#fff;
  color:var(--ink);
  text-align:left;
  box-shadow:0 8px 20px rgba(74,48,96,.07);
  scroll-snap-align:start;
}
.continue-card strong{
  display:block;
  padding:10px 12px 8px;
  color:var(--plum);
  font-size:14px;
  font-weight:700;
  line-height:1.35;
}
.progress-row{
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 12px 2px;
}
.continue-card small{
  position:static;
  color:var(--muted);
  font-size:12px;
  flex:0 0 auto;
}
.last-label{
  position:absolute;
  z-index:2;
  top:0;
  left:0;
  padding:5px 10px;
  border-radius:0 0 10px 0;
  color:white;
  background:var(--plum);
  font-size:11px;
}
.course-art{
  display:block;
  width:100%;
  height:108px;
  object-fit:cover;
  background:linear-gradient(135deg,rgba(216,197,167,.65),rgba(255,250,240,.92));
}
.progress-line{
  display:block;
  flex:1;
  width:auto;
  height:4px;
  margin:0;
  overflow:hidden;
  border-radius:999px;
  background:rgba(141,106,166,.18);
}
.progress-line i{
  display:block;
  height:100%;
  border-radius:inherit;
  background:var(--plum);
}
.intro-block{box-shadow:none}
.section-block h3{margin:0 0 12px;color:var(--plum);font-size:18px}
.meditation-promo{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) 150px;
  align-items:center;
  gap:8px;
  min-height:168px;
  margin:18px 0;
  padding:22px 18px;
  overflow:hidden;
  border:0;
  border-radius:22px;
  background:
    linear-gradient(100deg, rgba(247,240,248,.96) 0 48%, rgba(232,216,238,.72) 100%);
  box-shadow:0 10px 26px rgba(74,48,96,.07);
}
.meditation-promo .promo-copy{position:relative;z-index:1;max-width:58%}
.meditation-promo h3{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 8px;
  font-size:18px;
  font-weight:700;
}
.meditation-promo h3 svg{
  width:18px;
  height:18px;
  color:var(--plum);
  flex:0 0 auto;
}
.meditation-promo .muted{margin:0;font-size:13px}
.meditation-promo .primary-btn{
  margin-top:16px;
  min-width:118px;
  min-height:38px;
  padding:0 18px;
  border-radius:999px;
  font-size:14px;
  background:var(--plum);
  box-shadow:0 8px 18px rgba(75,50,105,.18);
}
.streak-pill{
  position:absolute;
  top:16px;
  right:16px;
  z-index:2;
  padding:5px 10px;
  border-radius:999px;
  color:var(--plum);
  background:rgba(255,253,248,.72);
  font-size:12px;
}
.promo-photo{
  position:absolute;
  right:-18px;
  bottom:-8px;
  width:210px;
  height:176px;
  object-fit:cover;
  object-position:62% 42%;
  pointer-events:none;
  mask-image:linear-gradient(90deg, transparent 0, #000 18%);
  -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 18%);
}
.quote-card{
  position:relative;
  margin:22px 0 8px;
  padding:28px 24px 26px;
  overflow:hidden;
  border:1px solid rgba(194,150,86,.38);
  border-radius:18px;
  background:rgba(255,253,248,.7);
  box-shadow:none;
}
.quote-card::before{
  content:"“";
  position:absolute;
  left:16px;
  top:6px;
  color:rgba(138,122,144,.38);
  font-size:52px;
  line-height:1;
  font-family:Georgia,"Songti SC",serif;
}
.quote-mark{
  position:absolute;
  right:10px;
  bottom:-8px;
  width:78px;
  height:78px;
  opacity:.22;
  pointer-events:none;
}
.quote-card p{
  position:relative;
  z-index:1;
  margin:0;
  color:#7d6e84;
  font-family:"Songti SC","STSong","Noto Serif SC",serif;
  font-size:18px;
  line-height:1.9;
  text-align:center;
}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.section-head > *{min-width:0}
.path-steps{display:flex;flex-wrap:wrap;gap:10px}
.path-steps span,.pill{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fffaf4;
  color:var(--plum);
  font-size:13px;
}
.course-category-bar{
  display:flex;
  gap:10px;
  overflow:auto;
  padding:4px 2px 14px;
  margin-bottom:2px;
  scrollbar-width:none;
}
.course-category-bar::-webkit-scrollbar{display:none}
.knowledge-panel{display:grid;gap:12px}
.view-switch{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0;
  margin:0 0 18px;
  padding:4px;
  border:0;
  border-radius:999px;
  background:rgba(255,250,240,.92);
  box-shadow:0 6px 18px rgba(74,48,96,.06);
}
.view-switch button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:42px;
  padding:0 10px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:var(--muted);
  font-size:14px;
  font-weight:600;
}
.view-switch button svg{width:18px;height:18px;flex:0 0 auto}
.view-switch button.active{
  color:white;
  background:var(--plum) url("brand/flower-of-life.svg") right -6px center / 46px no-repeat;
  box-shadow:0 8px 16px rgba(74,48,109,.18);
}
.knowledge-filter-bar{
  display:flex;
  gap:10px;
  overflow:auto;
  scrollbar-width:none;
}
.knowledge-filter-bar::-webkit-scrollbar{display:none}
.course-category-btn{
  flex:0 0 auto;
  min-height:38px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,250,244,.86);
  color:var(--plum);
  font-size:13px;
}
.course-category-btn.active{
  color:white;
  background:var(--plum);
  border-color:var(--plum);
}
.page-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  max-width:100%;
  min-width:0;
  flex:1;
}
.page-head h2{
  position:absolute;
  left:50%;
  top:50%;
  margin:0;
  font-size:18px;
  font-weight:700;
  color:var(--plum);
  transform:translate(-50%,-50%);
  pointer-events:none;
}
.icon-btn{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  color:var(--plum);
  background:transparent;
  flex:0 0 auto;
}
.icon-btn svg{width:22px;height:22px}
.records-link{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-left:auto;
  padding:6px 0 6px 8px;
  border:0;
  background:transparent;
  color:var(--plum);
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
  flex:0 0 auto;
  position:relative;
  z-index:1;
}
.records-link svg{width:20px;height:20px}
.main-view.on-courses .topbar{justify-content:flex-start}
.main-view.on-courses .brand-lockup,
.main-view.on-courses .bell-btn,
.main-view.on-courses .ghost-btn{display:none!important}
.series-list{
  display:grid;
  gap:12px;
}
.series-toolbar{margin-bottom:8px}
.series-card{
  display:grid;
  grid-template-columns:38% minmax(0,1fr);
  gap:0;
  width:100%;
  min-height:154px;
  overflow:hidden;
  padding:0;
  border:1px solid rgba(216,197,167,.72);
  border-radius:22px;
  background:#fffdf8;
  box-shadow:0 10px 26px rgba(74,48,96,.07);
  color:var(--ink);
  text-align:left;
  -webkit-appearance:none;
  appearance:none;
}
.series-cover{
  position:relative;
  display:block;
  overflow:hidden;
  min-height:154px;
  background:#efe4d2;
}
.series-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.series-cover em{
  position:absolute;
  left:0;
  top:0;
  padding:6px 10px;
  border-radius:0 0 12px 0;
  background:var(--plum);
  color:#fff;
  font-size:11px;
  font-style:normal;
  font-weight:700;
}
.series-copy{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
  padding:16px 16px 14px;
}
.series-copy small{
  color:var(--gold);
  font-size:12px;
  font-weight:700;
}
.series-copy strong{
  color:var(--plum);
  font-family:"Songti SC","STSong",serif;
  font-size:25px;
  font-weight:600;
  line-height:1.2;
}
.series-copy span{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}
.series-copy b{
  display:block;
  overflow:hidden;
  margin-top:auto;
  color:var(--plum);
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.series-copy i{
  display:block;
  overflow:hidden;
  width:100%;
  height:4px;
  border-radius:999px;
  background:rgba(141,106,166,.14);
}
.series-copy u{
  display:block;
  height:100%;
  border-radius:inherit;
  background:var(--plum);
  text-decoration:none;
}
.series-detail-head{
  display:grid;
  gap:10px;
  margin-bottom:14px;
  padding:14px;
  border:1px solid rgba(216,197,167,.66);
  border-radius:18px;
  background:rgba(255,253,248,.78);
}
.series-hero-img{
  width:100%;
  aspect-ratio:16/7;
  object-fit:cover;
  border-radius:14px;
  background:#efe4d2;
}
.series-detail-head h3{
  margin:0 0 4px;
  color:var(--plum);
  font-family:"Songti SC","STSong",serif;
  font-size:24px;
  font-weight:600;
}
.series-detail-head p:last-child{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.65;
}
.series-back{
  justify-self:start;
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:0;
}
.series-back svg{width:17px;height:17px}
.course-toolbar{
  display:flex;
  gap:10px;
  align-items:center;
  width:100%;
  max-width:100%;
  min-width:0;
  margin-bottom:10px;
}
.course-search{
  display:flex;
  align-items:center;
  flex:1 1 0;
  width:0;
  gap:8px;
  min-width:0;
  height:42px;
  padding:0 14px;
  border:1px solid rgba(216,197,167,.55);
  border-radius:999px;
  background:#fffdf8;
  margin:0;
}
.course-search svg{width:18px;height:18px;color:var(--muted);flex:0 0 auto}
.course-search input{
  height:42px;
  width:0;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
  font-size:14px;
  min-width:0;
  flex:1 1 auto;
  -webkit-appearance:none;
  appearance:none;
}
.course-search input:focus{box-shadow:none}
.course-search input::placeholder{color:#b5a4b8}
.sort-wrap{
  position:relative;
  display:flex;
  align-items:center;
  flex:0 0 auto;
  gap:5px;
  height:42px;
  padding:0 10px 0 12px;
  border:1px solid rgba(216,197,167,.55);
  border-radius:14px;
  background:#fffdf8;
  color:var(--plum);
  white-space:nowrap;
}
.sort-wrap svg{width:16px;height:16px;flex:0 0 auto}
.sort-wrap .sort-caret{width:12px;height:12px}
.sort-wrap span{
  font-size:13px;
  font-weight:600;
  color:var(--plum);
}
.sort-wrap select{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  opacity:0;
  cursor:pointer;
  -webkit-appearance:none;
  appearance:none;
}
.course-count{
  margin:0 0 12px;
  color:var(--muted);
  font-size:13px;
}
.course-card-list{display:grid;gap:12px}
.course-row{
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  align-items:center;
  column-gap:12px;
  width:100%;
  padding:11px 14px;
  overflow:hidden;
  border:1px solid rgba(216,197,167,.48);
  border-radius:16px;
  background:rgba(255,253,248,.92);
  box-shadow:0 6px 16px rgba(74,48,96,.045);
  color:var(--ink);
  text-align:left;
  -webkit-appearance:none;
  appearance:none;
}
.course-row.is-last{
  border-color:rgba(74,48,109,.24);
  background:#fffaf3;
}
.course-thumb{
  position:relative;
  display:block;
  overflow:hidden;
  width:100%;
  min-height:132px;
  height:100%;
  border-radius:0;
  background:#efe4d2;
}
.course-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.last-tag{
  position:absolute;
  z-index:1;
  top:0;
  left:0;
  padding:5px 9px;
  border-radius:0 0 10px 0;
  color:white;
  background:var(--plum);
  font-size:11px;
  font-style:normal;
  font-weight:600;
  letter-spacing:.02em;
}
.last-tag.inline{
  position:static;
  display:inline-flex;
  align-self:flex-start;
  width:max-content;
  margin:0;
  padding:4px 8px;
  border-radius:999px;
  font-size:10px;
  flex:0 0 auto;
}
.lesson-play-dot{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--plum);
  color:#fff;
  box-shadow:0 8px 18px rgba(74,48,109,.22);
}
.lesson-play-dot svg{
  width:24px;
  height:24px;
}
.lesson-play-dot .pause-shape{display:none}
.course-row.is-last .lesson-play-dot .play-shape{display:none}
.course-row.is-last .lesson-play-dot .pause-shape{display:block}
.play-fab{
  position:absolute;
  left:8px;
  bottom:8px;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:white;
  background:rgba(74,48,109,.82);
}
.play-fab svg{width:12px;height:12px}
.course-info{
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:0;
}
.lesson-title-row{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  width:100%;
}
.course-info strong{
  display:block;
  overflow:hidden;
  margin-bottom:0;
  color:var(--plum);
  font-size:16px;
  font-weight:700;
  line-height:1.3;
  white-space:nowrap;
  text-overflow:ellipsis;
  flex:1 1 auto;
  min-width:0;
}
.course-desc{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  color:var(--muted);
  font-size:12px;
  line-height:1.55;
}
.course-meta{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:0;
  color:var(--muted);
  font-size:12px;
  white-space:nowrap;
  flex:0 0 auto;
}
.course-meta span{display:inline-flex;align-items:center;gap:5px}
.course-meta svg{width:14px;height:14px}
.course-progress{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:8px;
  padding-top:0;
}
.course-progress i{
  display:block;
  flex:1;
  height:4px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(141,106,166,.16);
}
.course-progress b{
  display:block;
  height:100%;
  border-radius:inherit;
  background:var(--plum);
}
.course-progress small{color:var(--muted);font-size:12px;flex:0 0 auto}
.player-sheet{
  position:fixed;
  inset:0;
  z-index:15;
  display:grid;
  align-items:end;
  padding:12px 12px calc(12px + var(--tab-height) + env(safe-area-inset-bottom,0px));
  background:rgba(48,36,68,.28);
}
.player-sheet-card{
  overflow:auto;
  max-height:calc(100vh - 90px);
  border-radius:22px;
  background:var(--paper);
}
.player-sheet-card .player-card{
  border:0;
  box-shadow:none;
  border-radius:0 0 22px 22px;
}
.player-back{margin:8px 8px 0}
.course-layout{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);
  gap:16px;
  min-width:0;
}
.player-card{overflow:hidden}
.player-card video{width:100%;aspect-ratio:16/9;background:#21172e;display:block}
.player-meta{padding:18px}
.player-meta h3{margin:0 0 8px;color:var(--plum);font-size:24px}
.player-meta p{color:var(--muted);line-height:1.8}
.lesson-list{display:flex;flex-direction:column;gap:10px;max-height:calc(100vh - 130px);overflow:auto;padding-right:4px}
.lesson-item{
  display:grid;
  grid-template-columns:46px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  width:100%;
  padding:12px;
  text-align:left;
  color:var(--ink);
}
.lesson-item > span:nth-child(2),.song-meta,.current-track > div,.player-meta{min-width:0}
.lesson-item.active{outline:2px solid rgba(141,106,166,.34);background:#fff9f1}
.lesson-no{
  width:36px;height:36px;border-radius:50%;
  display:grid;place-items:center;
  color:white;background:var(--plum);
  font-size:13px;
}
.lesson-item.done .lesson-no{background:var(--ok)}
.lesson-item strong{display:block;color:var(--plum);font-size:14px;margin-bottom:4px}
.lesson-item span{color:var(--muted);font-size:12px}
.duration-row{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.pill{border-radius:999px}
.pill.active{background:var(--plum);color:white;border-color:var(--plum)}
.record-list,.audio-list,.product-grid,.news-list,.knowledge-list,.bookshelf{display:grid;gap:12px}
.record-item{
  padding:14px;
  background:#fffaf4;
  border:1px solid var(--line);
  border-radius:var(--radius);
}
.record-meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
  color:var(--muted);
  font-size:12px;
}
.record-item strong{display:block;color:var(--plum);margin-bottom:4px}
.record-item p{margin:0;color:var(--muted);line-height:1.7;white-space:pre-wrap}
.saved-hint{
  margin:10px 0 0;
  color:var(--ok);
  font-size:13px;
  line-height:1.6;
}
.record-toggle{
  width:100%;
  margin-top:12px;
}
.collapsible-records{
  margin-top:12px;
}
.heart-space-block textarea{
  margin-bottom:12px;
}
.space-note-list{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.space-note-item{
  padding:14px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fffaf4;
}
.space-note-item p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
  white-space:pre-wrap;
}
.audio-card{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  padding:16px;
}
.audio-actions{
  display:flex;
  justify-content:flex-end;
}
.audio-card h3,.product-card h3,.news-card h3,.knowledge-card h3{margin:0;color:var(--plum)}
.audio-card p,.product-card p,.news-card p,.knowledge-card p{margin:0;color:var(--muted);line-height:1.7}
audio{width:100%}
.meditation-player-block{position:relative}
.song-player{
  display:grid;
  gap:14px;
}
.current-track{
  display:grid;
  grid-template-columns:54px 1fr;
  gap:12px;
  align-items:center;
}
.track-icon,.song-icon{
  position:relative;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.92) 0 7%, transparent 8%),
    radial-gradient(circle at 50% 50%, rgba(141,106,166,.34) 0 28%, transparent 29%),
    radial-gradient(circle at 50% 50%, rgba(90,57,116,.18) 0 48%, transparent 49%),
    var(--plum);
}
.track-icon::before,.song-icon::before{
  content:"";
  width:56%;
  height:56%;
  border:1px solid rgba(255,250,240,.7);
  border-radius:50%;
}
.track-icon{
  width:54px;
  height:54px;
}
.song-icon{
  width:38px;
  height:38px;
}
.current-track h3{margin:0 0 6px}
.current-track p{margin:0;color:var(--muted);line-height:1.6}
.inline-checkin{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(216,197,167,.72);
}
.song-list{
  display:grid;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fffaf4;
}
.song-row{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:66px;
  padding:10px 12px;
  border:0;
  border-bottom:1px solid rgba(216,197,167,.72);
  background:transparent;
  text-align:left;
  color:var(--ink);
}
.song-row:last-child{border-bottom:0}
.song-row.active{background:rgba(141,106,166,.12)}
.song-meta strong{
  display:block;
  margin-bottom:4px;
  color:var(--plum);
  font-size:14px;
}
.song-meta span{
  display:block;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}
.song-duration{
  color:var(--muted);
  font-size:12px;
}
.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.product-card{
  overflow:hidden;
  min-width:0;
  border:0;
  border-radius:18px;
  background:#fffdf8;
  box-shadow:0 8px 22px rgba(74,48,96,.07);
}
.product-card img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.product-card div{padding:12px}
.product-card h3{margin:0 0 4px;font-size:14px;color:var(--plum);font-weight:700;line-height:1.35}
.product-card p{margin:0;font-size:11px;color:var(--muted);line-height:1.5}
.product-shot{position:relative}
.heart-btn{
  position:absolute;
  top:8px;
  right:8px;
  width:30px;
  height:30px;
  border:0;
  border-radius:50%;
  background:rgba(255,253,248,.88);
  color:var(--plum);
  font-size:14px;
}
.heart-btn.on{color:#c45b5b}
.product-buy{display:flex;align-items:center;justify-content:space-between;margin-top:10px}
.product-buy strong{color:var(--plum);font-size:17px}
.cart-add{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:rgba(141,106,166,.12);
  color:var(--plum);
}
.cart-add svg{width:16px;height:16px}
.product-cats{
  display:flex;
  gap:8px;
  overflow:auto;
  margin:0 0 14px;
  scrollbar-width:none;
}
.product-cats::-webkit-scrollbar{display:none}
.product-hero{
  position:relative;
  overflow:hidden;
  min-height:128px;
  margin:0 0 14px;
  border-radius:18px;
}
.product-hero img{width:100%;height:128px;object-fit:cover;display:block;filter:saturate(.95)}
.product-hero-copy{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  padding:18px 16px 28px;
  background:linear-gradient(90deg, rgba(248,243,234,.9) 0 52%, transparent 84%);
}
.product-hero-copy p{max-width:240px;margin:0;color:var(--plum);font-size:18px;font-weight:800;line-height:1.45}
.product-hero .hero-dots{bottom:8px}
.product-sort{
  display:flex;
  gap:16px;
  align-items:center;
  margin:0 0 14px;
  color:var(--muted);
  font-size:13px;
}
.product-sort button{border:0;background:transparent;color:var(--muted);padding:0 0 4px}
.product-sort button.active{
  color:var(--plum);
  font-weight:700;
  box-shadow:inset 0 -2px 0 var(--plum);
}
.sort-grid-ico{
  margin-left:auto;
  width:18px;
  height:18px;
  color:var(--plum);
}
.sort-grid-ico svg{display:block;width:100%;height:100%}
.filter-chip-btn{
  display:inline-flex;
  align-items:center;
  gap:4px;
  height:42px;
  padding:0 12px;
  border:1px solid rgba(216,197,167,.55);
  border-radius:14px;
  background:#fffdf8;
  color:var(--plum);
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
}
.filter-chip-btn svg{width:16px;height:16px}
.filter-row{display:flex;align-items:center;gap:8px;margin:0 0 14px}
.filter-row .knowledge-filter-bar{flex:1;min-width:0}
.filter-icon-btn{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:50%;
  background:#fffdf8;
  color:var(--plum);
}
.filter-icon-btn svg{width:18px;height:18px}
.knowledge-search{
  display:flex;
  width:100%;
  max-width:100%;
  flex:none;
  margin-bottom:12px;
}
.filter-row .knowledge-filter-bar .course-category-btn{
  background:#fff;
  border-color:rgba(74,48,109,.28);
}
.filter-row .knowledge-filter-bar .course-category-btn.active{
  color:white;
  background:var(--plum);
  border-color:var(--plum);
}
.product-cats .course-category-btn{
  background:rgba(238,228,212,.72);
  border-color:transparent;
}
.product-cats .course-category-btn.active{
  color:white;
  background:var(--plum);
  border-color:var(--plum);
}
.news-card{padding:16px}
.news-card time{display:block;color:var(--gold);font-size:12px;margin-bottom:8px}
.knowledge-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) 86px;
  gap:12px;
  padding:18px 16px;
  border:0;
  border-radius:20px;
  background:#fff;
  box-shadow:0 8px 22px rgba(74,48,96,.07);
  color:inherit;
  text-align:left;
}
.knowledge-card span{
  display:inline-flex;
  margin-bottom:8px;
  padding:3px 8px;
  border-radius:999px;
  background:rgba(166,107,122,.14);
  color:var(--rose);
  font-size:11px;
}
.knowledge-card.tag-practice span{background:rgba(141,106,166,.14);color:var(--plum)}
.knowledge-card.tag-qa span,.knowledge-card.tag-course span{background:rgba(194,150,86,.16);color:#8a6232}
.knowledge-card h3{margin:0 0 8px;color:var(--plum);font-size:18px;font-weight:700;line-height:1.3}
.knowledge-card p{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.65;
  white-space:pre-line;
}
.knowledge-card.expanded{grid-template-columns:minmax(0,1fr) 54px}
.knowledge-card.expanded p{
  display:block;
  overflow:visible;
  -webkit-line-clamp:unset;
}
.knowledge-card.expanded .know-orb{width:54px;height:54px}
.knowledge-card.expanded .know-foot svg{transform:rotate(90deg)}
.know-foot{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:12px;
  color:var(--muted);
  font-size:12px;
}
.know-foot svg{width:16px;height:16px;margin-left:auto;color:var(--plum-soft)}
.avatars{display:flex}
.avatars i{
  width:18px;
  height:18px;
  border:2px solid #fffdf8;
  border-radius:50%;
  background:linear-gradient(135deg,#c29656,#8d6aa6);
  margin-left:-6px;
}
.avatars i:first-child{margin-left:0}
.know-copy{min-width:0}
.know-orb{
  width:86px;
  height:86px;
  align-self:center;
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(194,150,86,.18), transparent 62%),
    url("brand/flower-of-life.svg") center/78% no-repeat,
    #f4ead8;
}
.know-orb.wave{box-shadow:inset 0 0 0 0 #000}
.know-orb::after{
  content:"";
  display:block;
  width:100%;
  height:100%;
  background:center/34% no-repeat;
}
.know-orb.wave::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c29656' stroke-width='1.8'%3E%3Cpath d='M3 12c2-3 4-3 6 0s4 3 6 0 4-3 6 0'/%3E%3C/svg%3E")}
.know-orb.eye::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c29656' stroke-width='1.8'%3E%3Cpath d='M2.8 12s3.6-6 9.2-6 9.2 6 9.2 6-3.6 6-9.2 6-9.2-6-9.2-6Z'/%3E%3Ccircle cx='12' cy='12' r='2.2'/%3E%3C/svg%3E")}
.know-orb.sun::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c29656' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3Cpath d='M12 3.5v2M12 18.5v2M4.8 4.8l1.5 1.5M17.7 17.7l1.5 1.5M3.5 12h2M18.5 12h2M4.8 19.2l1.5-1.5M17.7 6.3l1.5-1.5'/%3E%3C/svg%3E")}
.know-orb.question::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c29656' stroke-width='1.8'%3E%3Cpath d='M9 9a3 3 0 1 1 3.8 2.9c-.9.3-1.3.8-1.3 1.7V15'/%3E%3Ccircle cx='11.5' cy='18' r='.8' fill='%23c29656'/%3E%3C/svg%3E")}
.bookshelf{
  display:grid;
  gap:14px;
  grid-template-columns:1fr;
}
.shelf-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin:4px 0 16px;
}
.shelf-head h3{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin:0 0 6px;
  color:var(--plum);
  font-size:24px;
  font-weight:700;
  line-height:1.2;
}
.shelf-star{
  width:16px;
  height:16px;
  color:var(--gold);
}
.shelf-head p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}
.shelf-count{
  flex:0 0 auto;
  margin-top:4px;
  padding:5px 12px;
  border-radius:999px;
  background:rgba(166,107,122,.16);
  color:var(--rose);
  font-size:12px;
  font-weight:600;
}
.book-card{
  display:grid;
  grid-template-columns:116px minmax(0,1fr);
  gap:13px;
  align-items:stretch;
  padding:14px;
  border:0;
  border-radius:20px;
  background:#fff;
  box-shadow:0 8px 22px rgba(74,48,96,.07);
  cursor:pointer;
}
.book-cover{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  width:116px;
  min-height:86px;
  padding:12px 10px 10px;
  overflow:hidden;
  border-radius:12px;
  color:#fff8d8;
  box-shadow:inset 7px 0 0 rgba(255,255,255,.18), 4px 8px 16px rgba(74,48,96,.14);
}
.book-cover::after{
  content:"";
  position:absolute;
  inset:8px;
  border:1px solid rgba(255,248,216,.42);
  border-radius:4px;
  pointer-events:none;
}
.book-cover.photo-cover{
  padding:0;
  background:#111827;
  color:transparent;
  border-radius:12px;
}
.book-cover.photo-cover::after{
  inset:0;
  border:0;
  border-radius:inherit;
  box-shadow:inset 8px 0 10px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.12);
}
.book-cover.photo-cover .book-photo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 36%;
  transform:none;
  opacity:1;
  z-index:0;
}
.book-cover img,.book-cover .cover-lotus{
  position:absolute;
  left:50%;
  top:18px;
  width:48px;
  height:48px;
  object-fit:contain;
  transform:translateX(-50%);
  opacity:.88;
  z-index:1;
}
.book-cover .cover-lotus{color:rgba(255,248,216,.92)}
.book-cover span,.book-cover strong{position:relative;z-index:1}
.book-cover span{font-size:10px;opacity:.78}
.book-cover strong{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:12px;
  line-height:1.35;
  text-align:center;
}
.book-cover.gold{
  background:
    radial-gradient(circle at 50% 28%, rgba(255,248,216,.28), transparent 46%),
    linear-gradient(160deg,#efe0c4,#c29656 72%,#8a6232);
}
.book-cover.plum{
  background:
    radial-gradient(circle at 50% 24%, rgba(255,255,255,.22), transparent 42%),
    linear-gradient(160deg,#d9c4e6,#8d6aa6 58%,#4a306d);
}
.book-cover.rose{
  background:
    radial-gradient(circle at 50% 24%, rgba(255,248,216,.18), transparent 44%),
    linear-gradient(160deg,#6a4478,#4a306d 55%,#2e1c44);
}
.book-cover.mini{
  width:72px;
  min-height:104px;
}
.book-cover.mini.photo-cover{
  width:72px;
  min-height:104px;
  background:#111827;
}
.book-cover.mini img,.book-cover.mini .cover-lotus{width:32px;height:32px;top:12px}
.book-cover.mini.photo-cover .book-photo{
  width:100%;
  height:100%;
  top:0;
  left:0;
  transform:none;
  object-fit:cover;
  object-position:center 36%;
}
.book-cover.mini strong{font-size:11px}
.book-info{
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:2px 0;
}
.book-info h3{
  display:flex;
  align-items:center;
  gap:6px;
  margin:0 0 6px;
  color:var(--plum);
  font-size:17px;
  font-weight:700;
  line-height:1.3;
}
.book-info h3 svg{width:14px;height:14px;flex:0 0 auto;color:var(--gold)}
.book-info p{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin:0 0 10px;
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
}
.book-progress{margin-top:auto}
.book-progress > span{
  display:block;
  margin-bottom:6px;
  color:var(--muted);
  font-size:11px;
}
.book-progress div{
  display:flex;
  align-items:center;
  gap:8px;
}
.book-progress i{
  display:block;
  flex:1;
  height:5px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(141,106,166,.16);
}
.book-progress b{
  display:block;
  height:100%;
  border-radius:inherit;
  background:var(--plum);
}
.book-progress small{
  color:var(--plum);
  font-size:12px;
  font-weight:600;
  flex:0 0 auto;
}
.book-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:10px;
}
.read-btn{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 14px;
  border:1px solid rgba(141,106,166,.28);
  border-radius:999px;
  background:rgba(255,253,248,.9);
  color:var(--plum);
  font-size:12px;
  font-weight:600;
}
.book-chevron{
  width:18px;
  height:18px;
  color:var(--plum-soft);
}
.back-to-shelf{padding-left:0;margin-bottom:10px}
.book-reader-panel{
  box-shadow:none;
  background:rgba(255,250,240,.62);
}
.reader-head{
  display:grid;
  grid-template-columns:72px minmax(0,1fr);
  gap:12px;
  align-items:center;
  margin-bottom:14px;
}
.reader-head h3{margin:0 0 8px;color:var(--plum)}
.reader-head p{margin:0}
.chapter-directory-toggle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  min-height:46px;
  margin:2px 0 10px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fffaf4;
  color:var(--plum);
  font-size:14px;
  font-weight:800;
  text-align:left;
}
.chapter-directory-action{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--plum-soft);
  font-size:12px;
  font-weight:600;
}
.chapter-directory-chevron{
  display:inline-grid;
  place-items:center;
  width:18px;
  height:18px;
  color:var(--plum);
  font-size:16px;
  line-height:1;
}
.chapter-tabs{
  display:grid;
  gap:8px;
  margin:2px 0 14px;
}
.chapter-tabs[hidden]{display:none}
.chapter-tabs button{
  width:100%;
  min-height:54px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fffaf4;
  color:var(--plum);
  text-align:left;
}
.chapter-tabs button span{
  display:block;
  margin-bottom:3px;
  color:var(--gold);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
}
.chapter-tabs button strong{
  display:block;
  color:inherit;
  font-size:14px;
  line-height:1.45;
}
.chapter-tabs button.active{
  color:white;
  background:var(--plum);
  border-color:var(--plum);
}
.chapter-tabs button.active span{color:rgba(255,248,216,.82)}
.chapter-content{
  padding:22px 18px;
  border:0;
  border-radius:var(--radius);
  background:#fffaf4;
  box-shadow:0 10px 28px rgba(74,48,96,.08);
}
.chapter-content h3{font-size:20px;margin:0 0 16px;color:var(--plum)}
.chapter-content h4{font-size:17px;line-height:1.55;margin:26px 0 12px;color:var(--plum);font-weight:800}
.chapter-content h4:first-child{margin-top:0}
.chapter-content p{margin:0 0 16px;color:var(--ink);font-size:16px;line-height:2}
.chapter-content p:last-child{margin-bottom:0}
.chapter-content blockquote{
  margin:18px 0;
  padding:12px 14px;
  border-left:3px solid var(--gold);
  border-radius:0 10px 10px 0;
  background:rgba(239,224,196,.35);
  color:var(--plum-soft);
  font-size:15px;
  line-height:1.85;
}
.chapter-content em{color:var(--plum-soft)}
.chapter-content strong{color:var(--plum);font-weight:800}
.chapter-content .book-list-item{
  position:relative;
  margin-bottom:10px;
  padding-left:18px;
}
.chapter-content .book-list-item::before{
  content:"";
  position:absolute;
  left:2px;
  top:.85em;
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--gold);
}
.book-insight-list{
  display:grid;
  gap:8px;
  margin:14px 0 22px;
}
.book-insight-list p{
  display:grid;
  grid-template-columns:76px minmax(0,1fr);
  gap:10px;
  margin:0;
  padding:10px 12px;
  border:1px solid rgba(194,150,86,.22);
  border-radius:10px;
  background:rgba(255,255,255,.5);
  font-size:14px;
  line-height:1.65;
}
.book-insight-list span{color:var(--muted)}
.book-figure{
  margin:20px 0 24px;
  padding:12px;
  border:1px solid rgba(211,185,146,.72);
  border-radius:18px;
  background:rgba(248,243,234,.74);
}
.book-figure-slot{
  display:flex;
  min-height:132px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:8px;
  border-radius:14px;
  background:
    radial-gradient(circle at 50% 45%, rgba(213,159,78,.18), transparent 34%),
    linear-gradient(135deg, rgba(255,250,244,.94), rgba(238,226,211,.72));
  color:var(--muted);
  font-size:15px;
}
.book-figure-slot small{
  color:var(--gold);
  font-weight:800;
  letter-spacing:.08em;
}
.book-figure figcaption{
  margin-top:10px;
  color:var(--ink);
  font-size:14px;
  line-height:1.75;
}
.compact-news{grid-template-columns:repeat(3,1fr)}
.compact-news .news-card{box-shadow:none}
.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.stats-grid div{
  padding:14px;
  background:#fffaf4;
  border:1px solid var(--line);
  border-radius:var(--radius);
}
.stats-grid strong{display:block;color:var(--plum);font-size:26px}
.stats-grid span{font-size:12px;color:var(--muted)}
.checkin-stats strong{font-size:24px}
.install-steps{
  display:grid;
  gap:10px;
}
.install-steps div{
  display:grid;
  grid-template-columns:32px 1fr;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fffaf4;
}
.install-steps strong{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:white;
  background:var(--plum);
  font-size:13px;
}
.install-steps span{color:var(--muted);font-size:13px}
.install-note{margin:10px 0 0;font-size:13px}
.tabbar{
  position:fixed;
  left:0;right:0;bottom:0;
  width:100vw;
  max-width:100vw;
  z-index:20;
  height:calc(var(--tab-height) + env(safe-area-inset-bottom,0px));
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  align-items:stretch;
  padding:6px 2px calc(8px + env(safe-area-inset-bottom,0px));
  background:rgba(255,253,248,.96);
  border-top:1px solid rgba(228,213,190,.7);
  box-shadow:0 -8px 24px rgba(74,48,96,.05);
  backdrop-filter:blur(18px);
}
.tab{
  display:grid;
  width:auto;
  max-width:none;
  min-width:0;
  justify-items:center;
  align-content:center;
  gap:3px;
  border:0;
  background:transparent;
  color:#b5a4b8;
  border-radius:0;
  font-size:10px;
  padding:4px 1px 0;
}
.tab svg{
  width:20px;
  height:20px;
}
.tab.active{
  color:var(--plum);
  background:transparent;
  font-weight:600;
}
.tab.active span{
  position:relative;
}
.tab.active span::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-6px;
  width:16px;
  height:3px;
  border-radius:999px;
  background:var(--plum);
  transform:translateX(-50%);
}
.ask-fab{
  position:fixed;
  right:max(16px,env(safe-area-inset-right));
  bottom:calc(var(--tab-height) + env(safe-area-inset-bottom,0px) + 14px);
  z-index:19;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:88px;
  height:46px;
  padding:0 17px;
  border:0;
  border-radius:999px;
  color:white;
  background:linear-gradient(135deg,#4a306d,#79538e);
  box-shadow:0 10px 24px rgba(74,48,109,.28);
  font-size:14px;
  font-weight:700;
}
.ask-fab svg{width:20px;height:20px}
.ask-sheet{
  position:fixed;
  inset:0;
  z-index:40;
  display:grid;
  align-items:end;
}
.ask-backdrop{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  background:rgba(35,24,45,.38);
  backdrop-filter:blur(3px);
}
.ask-panel{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-rows:auto minmax(130px,1fr) auto auto;
  width:min(760px,100%);
  max-height:min(76vh,680px);
  margin:0 auto;
  overflow:hidden;
  border-radius:20px 20px 0 0;
  background:var(--paper);
  box-shadow:0 -18px 50px rgba(35,24,45,.24);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
.ask-head{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) 36px;
  align-items:center;
  gap:10px;
  min-height:68px;
  padding:10px 14px;
  border-bottom:1px solid rgba(228,213,190,.75);
  background:rgba(255,253,248,.92);
}
.ask-avatar{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border-radius:50%;
  color:white;
  background:var(--plum);
}
.ask-avatar svg{width:23px;height:23px}
.ask-head h2{margin:0;color:var(--plum);font-size:18px}
.ask-head p{margin:3px 0 0;color:var(--muted);font-size:11px}
.ask-close{
  width:34px;
  height:34px;
  border:0;
  border-radius:50%;
  background:rgba(141,106,166,.1);
  color:var(--plum);
  font-size:25px;
  line-height:1;
}
.ask-messages{
  display:flex;
  flex-direction:column;
  gap:12px;
  min-height:180px;
  overflow:auto;
  padding:18px 14px 8px;
  overscroll-behavior:contain;
}
.ask-message{
  width:fit-content;
  max-width:88%;
  padding:11px 13px;
  border-radius:15px;
  box-shadow:0 6px 16px rgba(74,48,96,.06);
}
.ask-message p{margin:0;font-size:14px;line-height:1.75;white-space:pre-wrap}
.ask-message.assistant{
  align-self:flex-start;
  border:1px solid rgba(194,150,86,.2);
  border-bottom-left-radius:4px;
  background:#fffaf4;
  color:var(--ink);
}
.ask-message.user{
  align-self:flex-end;
  border-bottom-right-radius:4px;
  background:var(--plum);
  color:white;
}
.ask-sources{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:10px;
  padding-top:9px;
  border-top:1px solid rgba(194,150,86,.2);
}
.ask-sources span{width:100%;color:var(--muted);font-size:10px}
.ask-sources b{
  padding:4px 8px;
  border-radius:999px;
  background:rgba(141,106,166,.11);
  color:var(--plum);
  font-size:10px;
  font-weight:600;
}
.ask-suggestions{
  display:flex;
  gap:8px;
  overflow:auto;
  padding:8px 14px 10px;
  scrollbar-width:none;
}
.ask-suggestions::-webkit-scrollbar{display:none}
.ask-suggestions button{
  flex:0 0 auto;
  min-height:34px;
  padding:0 11px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fffaf4;
  color:var(--plum);
  font-size:12px;
}
.ask-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) 42px;
  gap:8px;
  padding:10px 14px 12px;
  border-top:1px solid rgba(228,213,190,.72);
  background:rgba(255,253,248,.96);
}
.ask-form input{height:42px;border-radius:999px;padding:0 16px;background:white}
.ask-form button{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  color:white;
  background:var(--plum);
}
.ask-form button svg{width:19px;height:19px}
body.ask-open{overflow:hidden}
.section-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 12px;
}
.section-bar h3{
  margin:0;
  padding-left:8px;
  border-left:3px solid var(--plum);
  color:var(--plum);
  font-size:16px;
}
.med-tabs{
  display:flex;
  justify-content:center;
  gap:32px;
  margin:4px 0 18px;
}
.med-tabs button{
  border:0;
  background:transparent;
  color:var(--muted);
  font-size:16px;
  padding:6px 0 10px;
}
.med-tabs button.active{
  color:var(--plum);
  font-weight:700;
  box-shadow:inset 0 -3px 0 var(--plum);
}
.med-hero{
  position:relative;
  overflow:hidden;
  min-height:148px;
  margin:0 0 16px;
  border-radius:20px;
}
.med-hero img{width:100%;height:148px;object-fit:cover;object-position:50% 42%;display:block}
.med-hero-copy{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  padding:18px 16px;
  background:linear-gradient(90deg, rgba(248,243,234,.9) 0 46%, transparent 82%);
  color:var(--plum);
}
.med-hero-copy h3{margin:0 0 8px;font-size:21px;font-weight:700;color:var(--plum)}
.med-hero-copy p{margin:0;opacity:.78;font-size:13px;color:var(--plum)}
.med-rail{
  display:flex;
  gap:12px;
  overflow:auto;
  padding-bottom:6px;
  scrollbar-width:none;
}
.med-rail::-webkit-scrollbar{display:none}
.med-card{
  flex:0 0 224px;
  display:grid;
  grid-template-columns:54px minmax(0,1fr);
  grid-template-areas:
    "art title"
    "art desc"
    "art time";
  align-items:center;
  column-gap:10px;
  padding:9px 10px;
  border:1px solid rgba(216,197,167,.46);
  border-radius:16px;
  background:rgba(255,253,248,.82);
  color:var(--ink);
  text-align:left;
}
.med-card-art{
  position:relative;
  display:block!important;
  grid-area:art;
  overflow:hidden;
  width:54px;
  height:54px;
  margin:0;
  border-radius:14px;
}
.med-card-art img{width:100%;height:100%;object-fit:cover}
.med-card-art em{
  position:absolute;
  top:4px;
  left:4px;
  padding:1px 5px;
  border-radius:999px;
  background:rgba(74,48,109,.82);
  color:white;
  font-size:9px;
  font-style:normal;
}
.med-card-art .play-fab{left:50%;bottom:50%;transform:translate(-50%,50%);background:rgba(255,253,248,.92);color:var(--plum);width:24px;height:24px}
.med-card-art .play-fab svg{width:10px;height:10px}
.med-card-art small{
  display:none;
}
.med-card strong{
  grid-area:title;
  display:block;
  overflow:hidden;
  color:var(--plum);
  font-size:13px;
  line-height:1.3;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.med-card > span:not(.med-card-art){
  grid-area:desc;
  display:block;
  overflow:hidden;
  color:var(--muted);
  font-size:11px;
  line-height:1.35;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.med-card b{
  grid-area:time;
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:400;
}
.med-detail-back{
  margin:0 0 8px;
  padding:0;
  color:var(--plum);
  font-weight:700;
}
.now-playing-card{
  margin:8px 0 16px;
  padding:14px;
  border-radius:18px;
  background:#fffdf8;
  box-shadow:0 8px 22px rgba(74,48,96,.07);
}
.now-playing-card h3{margin:0 0 4px;color:var(--plum)}
.now-playing-card p{margin:0 0 10px;color:var(--muted);font-size:13px}
.now-playing-card audio{width:100%}
.checkin-today-card{
  position:relative;
  margin:0 0 16px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(216,197,167,.48);
  background:linear-gradient(108deg,#fffdf8 0%,#fffaf3 100%);
  box-shadow:0 8px 20px rgba(74,48,96,.055);
}
.checkin-today-card .section-bar{margin-bottom:10px}
.checkin-rules{font-size:12px;padding:0}
.checkin-today-body{display:grid;grid-template-columns:72px minmax(0,1fr);gap:14px;align-items:center}
.checkin-today-card.is-done .checkin-today-body{grid-template-columns:72px minmax(0,1fr) 44px}
.checkin-ring{
  width:72px;
  height:72px;
  display:grid;
  place-items:center;
  border:5px solid rgba(141,106,166,.2);
  border-top-color:var(--plum);
  border-radius:50%;
  text-align:center;
}
.checkin-ring.done{border-color:var(--plum)}
.checkin-ring strong{display:block;color:var(--plum);font-size:15px;line-height:1}
.checkin-ring span{color:var(--muted);font-size:9px}
.checkin-today-copy h3{margin:0 0 4px;color:var(--plum);font-size:15px}
.checkin-today-copy p{margin:0 0 8px;color:var(--muted);font-size:12px}
.checkin-today-copy .duration-row{
  flex-wrap:nowrap;
  gap:7px;
  overflow:auto;
  margin-bottom:8px;
  scrollbar-width:none;
}
.checkin-today-copy .duration-row::-webkit-scrollbar{display:none}
.checkin-today-copy .pill{
  flex:0 0 auto;
  min-height:30px;
  padding:0 10px;
  font-size:12px;
}
.checkin-today-copy textarea{min-height:48px;margin-bottom:8px;font-size:14px;line-height:1.55}
#saveCheckinBtn{min-height:36px;padding:0 16px;font-size:13px}
.checkin-today-card.is-done #checkinFormFields,
.checkin-today-card.is-done #checkinNote,
.checkin-today-card.is-done #saveCheckinBtn{display:none}
.checkin-done-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:32px;
  padding:0 14px;
  border:1px solid var(--plum);
  border-radius:999px;
  background:transparent;
  color:var(--plum);
  font-size:13px;
  font-weight:600;
}
.checkin-incense{
  display:none;
  width:44px;
  height:66px;
  justify-self:end;
  background:
    radial-gradient(circle at 50% 18%, rgba(141,106,166,.35) 0 6px, transparent 7px),
    linear-gradient(180deg, transparent 22%, rgba(141,106,166,.5) 22% 24%, transparent 25%),
    radial-gradient(ellipse at 50% 78%, #8d6aa6 0 18px, transparent 19px);
  opacity:.9;
}
.checkin-today-card.is-done .checkin-incense{display:block}
.med-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  padding:12px 6px 10px;
  border:1px solid rgba(216,197,167,.48);
  border-radius:16px;
  background:#fffdf8;
  box-shadow:0 8px 20px rgba(74,48,96,.045);
  text-align:center;
}
.med-stats div{padding:6px 2px}
.med-stats span{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  margin:0 auto 6px;
  border-radius:10px;
  background:rgba(141,106,166,.1);
  color:var(--plum);
}
.med-stats span svg{width:17px;height:17px}
.med-stats strong{display:block;color:var(--plum);font-size:15px}
.med-stats small{color:var(--muted);font-size:10px}
.month-cal-card{
  margin:12px 0 8px;
  padding:14px;
  border:1px solid rgba(216,197,167,.48);
  border-radius:18px;
  background:#fffdf8;
  box-shadow:0 8px 20px rgba(74,48,96,.045);
}
.week-cal{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center}
.calendar-label{padding:2px 0 4px;color:var(--muted);font-size:11px}
.week-day{min-height:33px;padding:2px 0;color:var(--muted);font-size:11px}
.week-day b{display:block;margin:0 auto;color:var(--ink);font-size:13px;width:24px;height:24px;line-height:24px;border-radius:50%}
.week-day i{display:block;height:9px;font-style:normal;font-size:10px;line-height:9px;color:var(--gold)}
.week-day.is-empty{visibility:hidden}
.week-day.is-done b{
  background:rgba(194,150,86,.16);
}
.week-day.is-today b{
  background:var(--plum);
  color:white;
}
.me-profile{
  display:grid;
  grid-template-columns:80px minmax(0,1fr);
  gap:14px;
  align-items:center;
  margin:4px 0 18px;
}
.me-avatar{
  width:80px;
  height:80px;
  border-radius:50%;
  background:url("brand/flower-of-life.svg") center/70% no-repeat, linear-gradient(150deg,#efe0c4,#8d6aa6);
  box-shadow:0 8px 18px rgba(74,48,96,.12);
}
.me-profile h3{margin:0 0 6px;color:var(--plum);font-size:20px}
.me-quote{padding:0;text-align:left;color:var(--muted);font-size:13px}
.me-stat-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  margin:0 0 22px;
  overflow:hidden;
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 22px rgba(74,48,96,.07);
}
.me-stat{
  padding:16px 10px 14px;
  border:0;
  border-right:1px solid rgba(228,213,190,.7);
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:var(--ink);
  text-align:left;
}
.me-stat:last-child{border-right:0}
.me-stat-icon{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  margin-bottom:10px;
  border-radius:10px;
  font-size:16px;
}
.me-stat-icon svg{width:16px;height:16px}
.me-stat-icon.plum{color:var(--plum);background:rgba(141,106,166,.16)}
.me-stat-icon.gold{color:#b4843c;background:rgba(194,150,86,.18)}
.me-stat-icon.rose{color:var(--plum);background:rgba(166,107,122,.16)}
.me-stat strong{display:block;color:var(--plum);font-size:12px;line-height:1.35}
.me-stat p{margin:6px 0 12px;color:var(--muted);font-size:10px;line-height:1.4}
.me-stat b{color:var(--plum);font-size:20px;font-weight:700}
.heart-space-block{margin:0 0 18px}
.heart-space-block .section-bar h3{
  display:flex;
  align-items:center;
  gap:6px;
  padding-left:0;
  border-left:0;
  font-size:18px;
}
.heart-title-ico{width:18px;height:18px;color:var(--plum);flex:0 0 auto}
.heart-space-block .muted{margin:4px 0 0;font-size:12px;line-height:1.55}
.space-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.space-form{margin-bottom:12px}
.space-rail{
  display:flex;
  gap:12px;
  overflow:auto;
  scrollbar-width:none;
}
.space-rail::-webkit-scrollbar{display:none}
.space-card{
  flex:0 0 176px;
  overflow:hidden;
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 18px rgba(74,48,96,.07);
}
.space-card img{width:100%;height:110px;object-fit:cover;display:block}
.space-card strong,.space-card p,.space-card small{display:block;padding:0 10px}
.space-card strong{margin:8px 0 4px;color:var(--plum);font-size:13px}
.space-card p{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
}
.space-card small{padding:8px 10px 10px;color:var(--muted);font-size:11px}
.heart-space-block.is-open .space-rail{
  display:grid;
  grid-template-columns:1fr;
  overflow:visible;
}
.heart-space-block.is-open .space-card{
  display:grid;
  grid-template-columns:74px minmax(0,1fr);
  grid-template-rows:auto auto auto;
  column-gap:12px;
  align-items:center;
  flex:none;
  padding:10px;
}
.heart-space-block.is-open .space-card img{
  grid-row:1 / 4;
  width:74px;
  height:74px;
  border-radius:12px;
}
.heart-space-block.is-open .space-card strong,
.heart-space-block.is-open .space-card p,
.heart-space-block.is-open .space-card small{
  padding:0;
}
.heart-space-block.is-open .space-card strong{margin:0 0 4px;font-size:14px}
.heart-space-block.is-open .space-card p{
  -webkit-line-clamp:3;
  margin:0;
  font-size:12px;
}
.heart-space-block.is-open .space-card small{margin-top:6px}
.heart-space-block.is-open .space-dots{display:none}
.space-dots{position:static;margin:10px auto 0}
.me-menu{
  overflow:hidden;
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 22px rgba(74,48,96,.07);
}
.me-menu button,.me-menu .outline-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  min-height:52px;
  padding:0 16px;
  border:0;
  border-bottom:1px solid rgba(228,213,190,.7);
  background:transparent;
  color:var(--plum);
  text-align:left;
}
.me-row-label{
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.row-ico{
  display:grid;
  place-items:center;
  width:20px;
  height:20px;
  color:var(--muted);
}
.row-ico svg{width:18px;height:18px}
.me-menu small{color:var(--muted)}
.me-menu .switch{
  width:36px;
  height:20px;
  border-radius:999px;
  background:rgba(141,106,166,.2);
  position:relative;
}
.me-menu .switch::after{
  content:"";
  position:absolute;
  top:2px;
  left:2px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:white;
}
.me-menu #darkModeBtn.on .switch{background:var(--plum)}
.me-menu #darkModeBtn.on .switch::after{left:18px}
.me-menu .outline-link,.me-menu .danger-btn{border-radius:0;margin:0}
.me-menu .danger-btn{
  background:transparent;
  color:var(--danger);
  justify-content:center;
  font-weight:600;
}
.me-note{padding:12px 4px 0;font-size:12px}
body.dark-mode{filter:none}
body.dark-mode .app-shell{background:#2a2033;color:#f3e9de}
@media (max-width:820px){
  .topbar{align-items:center}
  .ghost-btn{font-size:12px;padding:8px 10px}
  main{padding:14px}
  .hero-card{grid-template-columns:1fr 68px;padding:16px}
  .hero-card h1{font-size:28px}
  .hero-card p{font-size:13px;line-height:1.7}
  .hero-card img:not(.hero-photo){width:68px;height:68px}
  .home-hero h1{font-size:26px}
  .home-hero{
    grid-template-columns:1.28fr .72fr;
    min-height:160px;
    height:auto;
    max-height:none;
    margin:0 2px;
    padding:0;
  }
  .home-hero .hero-photo{
    width:44%;
    height:100%;
    object-fit:cover;
    opacity:1;
  }
  .home-entry-grid{gap:0;padding:2px 0}
  .entry-icon{width:54px;height:54px}
  .meditation-promo{grid-template-columns:1fr 140px;padding:20px 16px}
  .quick-grid{grid-template-columns:repeat(2,1fr)}
  .course-layout{grid-template-columns:1fr}
  .lesson-list{max-height:none}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bookshelf{grid-template-columns:1fr}
  .compact-news{grid-template-columns:1fr}
}
@media (max-width:520px){
  body{font-size:14px}
  .login-view{padding:18px}
  .login-card{padding:22px 18px}
  .login-card h1{font-size:30px}
  .login-copy{font-size:13px}
  .topbar{padding:8px max(14px,env(safe-area-inset-left)) 6px max(14px,env(safe-area-inset-right))}
  .topbar h2{font-size:18px}
  .brand-lockup .brand-mark{width:32px;height:32px}
  .brand-lockup p{font-size:8px}
  main{padding:14px 16px}
  .home-hero{min-height:112px;height:auto;max-height:none;margin:0}
  .hero-copy{padding:14px 8px 20px 16px}
  .home-welcome{font-size:13px;margin-bottom:5px!important}
  .home-hero .hero-photo{width:44%;height:100%;object-fit:cover;opacity:1}
  .hero-dots{bottom:10px}
  .quick-grid{grid-template-columns:1fr 1fr}
  .home-entry-grid{gap:0;margin:16px 0 6px;padding:0}
  .home-entry{min-height:auto;gap:8px}
  .home-entry strong{font-size:12px}
  .entry-icon{width:54px;height:54px}
  .entry-icon svg,.entry-icon img{width:34px;height:34px}
  .ask-fab{right:14px;min-width:82px;height:43px;padding:0 14px}
  .ask-panel{max-height:82vh}
  .quick-card{min-height:92px;padding:13px}
  .home-section{margin-top:20px}
  .home-section .section-head h3{font-size:20px}
  .continue-card{flex-basis:calc(52% - 8px)}
  .course-art{height:102px}
  .meditation-promo{grid-template-columns:1fr;min-height:168px;padding:20px 16px 18px}
  .meditation-promo .promo-copy{max-width:58%}
  .promo-photo{width:200px;height:160px;right:-22px;bottom:-8px;object-fit:cover}
  .meditation-promo .primary-btn{width:118px}
  .quote-card{padding:22px 18px}
  .quote-card p{font-size:17px}
  .series-list{gap:12px}
  .series-toolbar{margin-bottom:8px}
  .series-card{
    grid-template-columns:36% minmax(0,1fr);
    min-height:136px;
    border-radius:18px;
  }
  .series-cover{min-height:136px}
  .series-cover em{padding:5px 8px;font-size:10px}
  .series-copy{padding:13px 13px 12px;gap:5px}
  .series-copy strong{font-size:21px}
  .series-copy span{font-size:12px;line-height:1.5}
  .series-detail-head{padding:12px;border-radius:16px}
  .series-detail-head h3{font-size:21px}
  input,textarea{font-size:16px}
  .stats-grid div{padding:10px 8px}
  .stats-grid strong{font-size:21px}
  .stats-grid span{font-size:10px}
  .section-block{padding:14px;margin:12px 0}
  .section-block h3{font-size:16px}
  .section-block.meditation-promo{padding:20px 16px 18px;margin:18px 0}
  .meditation-promo h3{font-size:18px}
  .current-track{grid-template-columns:46px 1fr}
  .track-icon{width:46px;height:46px}
  .song-icon{width:34px;height:34px}
  .med-card{flex-basis:218px;grid-template-columns:52px minmax(0,1fr);padding:8px 9px}
  .med-card-art{width:52px;height:52px}
  .song-row{grid-template-columns:38px 1fr auto;min-height:60px;padding:9px 10px}
  .song-duration{font-size:10px}
  .player-meta{padding:14px}
  .player-meta h3{font-size:18px}
  .lesson-no{width:32px;height:32px}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .product-card div{padding:10px}
  .product-card h3{font-size:13px}
  .product-card p{font-size:11px;line-height:1.55}
  .book-card{grid-template-columns:108px minmax(0,1fr);padding:12px;gap:12px}
  .book-cover{width:108px;min-height:78px;padding:9px 8px;border-radius:12px}
  .book-cover.photo-cover{width:108px;min-height:78px;padding:0}
  .book-cover img,.book-cover .cover-lotus{width:40px;height:40px;top:14px}
  .book-cover strong{font-size:11px}
  .book-info h3{font-size:16px}
  .book-info p{font-size:12px;line-height:1.55}
  .reader-head{grid-template-columns:64px minmax(0,1fr)}
  .book-cover.mini{width:64px;min-height:94px}
  .chapter-content{padding:18px 14px}
  .chapter-content h3{font-size:18px}
  .chapter-content h4{font-size:16px}
  .chapter-content p{font-size:15px;line-height:1.95}
  .lesson-item{grid-template-columns:42px 1fr}
  .lesson-item .lesson-minutes{display:none}
  .tabbar{padding-left:2px;padding-right:2px}
  .tab{font-size:10px}
  .tab svg{width:20px;height:20px}
}
