:root {
  --bg:#f5f3ec;
  --surface:#fbfaf5;
  --surface-alt:#efeee5;
  --ink:#344b40;
  --text:#47544b;
  --muted:#7c8276;
  --faint:#a8ad9e;
  --line:#dce0d3;
  --line-strong:#bfc8b7;
  --gold:#a58043;
  --gold-soft:#eee7d6;
  --sage:#6f8874;
  --olive:#8c9364;
  --clay:#ad816e;
  --blue:#809392;
  --shadow:0 12px 50px rgba(43,57,44,.035);
  --serif:"Iowan Old Style","Songti SC","STSong","Noto Serif CJK SC",Georgia,serif;
  --sans:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  color-scheme:light
}
html[data-theme="dark"] {
  --bg:#161f1b;
  --surface:#1c2822;
  --surface-alt:#233028;
  --ink:#e5e5d7;
  --text:#c1cdbf;
  --muted:#99aa99;
  --faint:#6f8373;
  --line:#34463a;
  --line-strong:#4b6050;
  --gold:#ccad71;
  --gold-soft:#373326;
  --sage:#9bb496;
  --olive:#aab488;
  --clay:#c69c85;
  --blue:#9cb9b5;
  --shadow:0 12px 50px rgba(0,0,0,.08);
  color-scheme:dark
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:24px
}
body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:14px/1.7 var(--sans);
  -webkit-font-smoothing:antialiased
}
button,input,textarea,select {
  font:inherit
}
button,a,input,textarea,select {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer;
  color:inherit;
  border:0;
  background:none
}
button:disabled {
  cursor:default;
  opacity:.45
}
a {
  color:inherit;
  text-decoration:none
}
button,a {
  touch-action:manipulation
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible {
  outline:2px solid var(--gold);
  outline-offset:4px
}
button:hover {
  color:var(--gold)
}
::selection {
  background:var(--gold-soft);
  color:var(--ink)
}
[hidden] {
  display:none!important
}
h1,h2,h3,h4,p {
  margin:0
}
h1,h2,h3,h4 {
  color:var(--ink);
  font-weight:500
}
button, a,input {
  transition:color .2s,background .2s,border-color .2s,box-shadow .2s,opacity .2s
}
button.active {
  color:var(--ink)
}
.skip-link {
  position:fixed;
  z-index:100;
  top:-60px;
  left:20px;
  padding:8px 18px;
  background:var(--ink);
  color:var(--bg)
}
.skip-link:focus {
  top:12px
}
.site-header {
  max-width:1500px;
  margin:auto;
  padding:0 48px;
  height:88px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  gap:28px
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  white-space:nowrap;
  font-family:var(--serif);
  font-size:24px;
  letter-spacing:2px;
  color:var(--ink)
}
.brand-mark {
  font-family:var(--serif);
  font-size:39px;
  line-height:1;
  color:var(--gold);
  transform:rotate(-20deg);
  font-weight:400
}
.brand-dot {
  margin:0 8px;
  color:var(--gold)
}
.brand small {
  font:12px var(--sans);
  letter-spacing:3px
}
.site-header nav {
  align-self:stretch;
  display:flex;
  gap:34px;
  margin-left:auto;
  margin-right:auto
}
.nav-button {
  position:relative;
  padding:4px 1px 0;
  font-size:13px;
  letter-spacing:1px;
  color:var(--muted)
}
.nav-button.active {
  color:var(--ink)
}
.nav-button.active:after {
  content:"";
  height:2px;
  width:24px;
  background:var(--gold);
  position:absolute;
  bottom:0;
  left:50%;
  transform:translateX(-50%)
}
.header-tools {
  display:flex;
  align-items:center;
  gap:22px
}
.text-button {
  font-size:12px;
  letter-spacing:.5px;
  padding:5px 0;
  color:var(--muted)
}
.text-button span {
  margin-left:5px
}
.theme-button {
  padding:8px 13px;
  border:1px solid var(--line);
  border-radius:30px;
  white-space:nowrap;
  font-size:12px;
  color:var(--ink);
  min-width:83px
}
.theme-button:hover {
  border-color:var(--gold);
  background:var(--gold-soft)
}
main {
  max-width:1500px;
  margin:auto;
  padding:0 48px
}
.intro {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:45px 0 38px;
  gap:30px
}
.eyebrow {
  font-size:10px;
  color:var(--gold);
  letter-spacing:3px;
  line-height:1.8;
  font-weight:500
}
.eyebrow>span {
  display:inline-block;
  width:15px;
  height:1px;
  background:var(--gold);
  vertical-align:middle;
  margin-right:5px
}
.intro h1 {
  font:36px/1.55 var(--serif);
  letter-spacing:2px;
  margin:10px 0 11px
}
.intro h1 em {
  font-style:normal;
  color:var(--gold)
}
.intro-desc {
  font-size:12px;
  letter-spacing:.5px;
  color:var(--muted)
}
.intro-note {
  border-left:1px solid var(--line-strong);
  padding:3px 0 3px 24px;
  font:15px/2 var(--serif);
  letter-spacing:2px;
  min-width:221px;
  color:var(--muted)
}
.intro-note span {
  display:block
}
.intro-note small {
  display:block;
  margin-top:8px;
  font:10px var(--sans);
  letter-spacing:1px;
  color:var(--faint)
}
.map-layout {
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(340px,1fr);
  gap:34px;
  align-items:start
}
.atlas {
  min-width:0
}
.atlas-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  height:48px;
  padding-bottom:14px;
  border-bottom:1px solid var(--line)
}
.segmented {
  display:flex;
  align-items:center;
  gap:4px;
  border:1px solid var(--line);
  border-radius:5px;
  padding:3px;
  background:var(--surface-alt)
}
.segmented button {
  font-size:11px;
  padding:5px 11px;
  white-space:nowrap;
  border-radius:3px;
  color:var(--muted)
}
.segmented button.selected {
  background:var(--surface);
  color:var(--ink);
  box-shadow:0 1px 4px #00000008
}
.search-wrap {
  display:flex;
  gap:7px;
  align-items:center;
  color:var(--muted);
  min-width:0
}
.search-wrap>span {
  font-size:22px;
  line-height:1
}
.search-wrap input {
  background:transparent;
  border:0;
  outline:none;
  color:var(--ink);
  font-size:11px;
  max-width:150px;
  width:100%;
  padding:6px 0
}
.search-wrap input::placeholder {
  color:var(--muted)
}
.search-wrap kbd {
  font:10px var(--sans);
  border:1px solid var(--line);
  padding:0 4px;
  border-radius:3px;
  color:var(--faint)
}
.map-area {
  position:relative;
  width:100%;
  max-width:680px;
  aspect-ratio:1;
  margin:0 auto;
  color:var(--ink)
}
.mandala {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  overflow:visible
}
.orbit-lines {
  stroke:var(--line-strong);
  stroke-width:.8;
  opacity:.7
}
.orbit-arcs {
  stroke:var(--sage);
  opacity:.5
}
.orbit-arcs path:nth-child(2) {
  stroke:var(--olive)
}
.orbit-arcs path:nth-child(3) {
  stroke:var(--gold)
}
.orbit-arcs path:nth-child(4) {
  stroke:var(--clay)
}
.orbit-arcs path:nth-child(5) {
  stroke:var(--blue)
}
.map-spokes {
  stroke:var(--line-strong);
  stroke-width:.7;
  stroke-dasharray:3 7;
  opacity:.65
}
.lotus {
  stroke:var(--gold);
  stroke-width:1;
  opacity:.15
}
.map-center {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  text-align:center;
  pointer-events:none;
  width:40%;
  color:var(--ink)
}
.center-overline {
  font-size:9px;
  letter-spacing:5px;
  color:var(--muted)
}
.map-center h2 {
  font:54px/1.5 var(--serif);
  letter-spacing:11px;
  padding-left:11px;
  margin:6px 0 4px
}
.map-center h2 span {
  display:inline-block;
  color:var(--gold)
}
.map-center i {
  display:block;
  height:1px;
  width:26px;
  background:var(--gold);
  margin:7px auto 13px;
  opacity:.6
}
.map-center p {
  font:15px/1.9 var(--serif);
  letter-spacing:5px;
  padding-left:5px;
  color:var(--text)
}
.center-foot {
  display:block;
  font-size:9px;
  letter-spacing:2px;
  color:var(--muted);
  margin-top:20px
}
.map-compass {
  position:absolute;
  inset:14px 7px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  color:var(--faint);
  font:11px var(--serif);
  pointer-events:none
}
.map-compass span:last-child {
  align-self:flex-end
}
.map-node {
  position:absolute;
  transform:translate(-50%,-50%);
  width:112px;
  min-height:80px;
  padding:4px 2px;
  text-align:center;
  z-index:2;
  line-height:1.4;
  color:var(--text);
  display:flex;
  align-items:center;
  flex-direction:column
}
.node-orb {
  display:flex;
  align-items:center;
  justify-content:center;
  width:27px;
  height:27px;
  border:1px solid var(--line-strong);
  border-radius:50%;
  background:var(--bg);
  font:11px/1 var(--serif);
  color:var(--muted);
  margin-bottom:5px;
  box-shadow:0 0 0 5px var(--bg);
  transition:all .2s
}
.node-name {
  font:15px/1.5 var(--serif);
  letter-spacing:1.5px;
  white-space:nowrap;
  color:var(--ink)
}
.node-topic {
  font-size:9px;
  letter-spacing:1.5px;
  color:var(--muted);
  margin-top:2px;
  background:var(--bg);
  padding:1px 4px
}
.map-node:hover .node-orb {
  border-color:var(--gold);
  color:var(--gold);
  box-shadow:0 0 0 5px var(--gold-soft)
}
.map-node:hover .node-name {
  color:var(--gold)
}
.map-node.active .node-orb {
  background:var(--gold);
  color:var(--surface);
  border-color:var(--gold);
  box-shadow:0 0 0 5px var(--gold-soft),0 0 0 6px var(--gold)
}
.map-node.active .node-name {
  color:var(--gold)
}
.map-node.active .node-topic {
  color:var(--gold)
}
.map-node.read:not(.active) .node-orb {
  border-color:var(--sage);
  background:var(--surface-alt);
  color:var(--sage)
}
.map-node.bookmarked .node-name:after {
  content:"·";
  position:absolute;
  margin-left:2px;
  color:var(--gold)
}
.map-node.filtered {
  opacity:.18
}
.map-node.filtered:hover {
  opacity:.65
}
.map-bottom {
  position:absolute;
  bottom:1px;
  left:2px;
  right:2px;
  display:flex;
  align-items:center;
  font-size:10px;
  letter-spacing:1px;
  color:var(--muted);
  gap:7px
}
.tiny-star {
  color:var(--gold);
  font-size:16px
}
.map-count {
  margin-left:auto;
  font:10px var(--serif);
  letter-spacing:2px
}
.stage-legend {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:5px;
  padding-top:18px;
  margin-top:12px;
  border-top:1px solid var(--line)
}
.stage-legend button {
  font-size:10px;
  color:var(--muted);
  padding:5px 8px;
  display:flex;
  align-items:center;
  gap:6px;
  border:1px solid transparent;
  border-radius:4px;
  white-space:nowrap
}
.stage-legend button.active {
  border-color:var(--line-strong);
  background:var(--surface);
  color:var(--ink)
}
.stage-legend small {
  font-size:8px;
  letter-spacing:.5px;
  color:var(--faint)
}
.dot {
  width:5px;
  height:5px;
  display:inline-block;
  border-radius:50%;
  background:var(--sage)
}
.dot.olive {
  background:var(--olive)
}
.dot.gold {
  background:var(--gold)
}
.dot.clay {
  background:var(--clay)
}
.dot.blue {
  background:var(--blue)
}
.map-caption {
  font-size:9px;
  line-height:1.8;
  color:var(--muted);
  text-align:center;
  letter-spacing:.4px;
  padding:12px 0 0
}
.chapter-panel {
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:8px;
  padding:27px 29px 0;
  box-shadow:var(--shadow);
  height:min(790px,calc(52vw + 100px));
  min-height:670px;
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden
}
.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:30px
}
.panel-heading>div {
  display:flex;
  align-items:center;
  gap:13px
}
.chapter-number {
  font:11px var(--sans);
  letter-spacing:1.6px;
  color:var(--gold)
}
.pill {
  font-size:9px;
  padding:2px 7px;
  border:1px solid var(--line);
  border-radius:2px;
  color:var(--sage);
  letter-spacing:1px
}
.icon-button {
  font-size:22px;
  line-height:1;
  width:32px;
  height:32px;
  color:var(--muted);
  border-radius:50%
}
.icon-button:hover {
  background:var(--gold-soft);
  color:var(--gold)
}
.icon-button[aria-pressed="true"] {
  color:var(--gold)
}
.chapter-title {
  padding:21px 0 22px
}
.chapter-title>p {
  font-size:11px;
  letter-spacing:2px;
  color:var(--muted);
  margin-bottom:9px
}
.chapter-title h2 {
  font:26px/1.6 var(--serif);
  letter-spacing:1px;
  max-width:330px
}
.layer-tabs {
  display:flex;
  border-bottom:1px solid var(--line);
  gap:0;
  flex-shrink:0
}
.layer-tabs button {
  position:relative;
  flex:1;
  font-size:12px;
  letter-spacing:2px;
  padding:11px 0 12px;
  color:var(--muted)
}
.layer-tabs button[aria-selected="true"] {
  color:var(--ink)
}
.layer-tabs button[aria-selected="true"]:after {
  content:"";
  height:2px;
  bottom:-1px;
  left:20%;
  right:20%;
  position:absolute;
  background:var(--gold)
}
#layer-content {
  flex:1;
  min-height:0;
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:var(--line-strong) transparent;
  padding:23px 5px 24px 0;
  font-size:12px;
  line-height:1.95
}
#layer-content::-webkit-scrollbar {
  width:3px
}
#layer-content::-webkit-scrollbar-thumb {
  background:var(--line-strong)
}
.layer-kicker {
  font-size:9px;
  letter-spacing:2px;
  color:var(--gold);
  margin-bottom:9px
}
.chapter-question {
  font:16px/1.9 var(--serif);
  color:var(--ink);
  margin-bottom:22px
}
.sutra-quote {
  margin:22px 0;
  padding:19px 19px 17px;
  background:var(--surface-alt);
  border-left:2px solid var(--gold);
  border-radius:0 4px 4px 0
}
.sutra-quote p {
  font:17px/1.9 var(--serif);
  letter-spacing:1px;
  color:var(--ink)
}
.sutra-quote cite {
  display:block;
  font-style:normal;
  font-size:9px;
  letter-spacing:1px;
  color:var(--muted);
  margin-top:10px
}
.summary {
  color:var(--text);
  font-size:12px;
  line-height:2.05
}
.source-inline {
  display:inline-block;
  font-size:10px;
  color:var(--gold);
  margin:17px 0 0;
  letter-spacing:.4px;
  border-bottom:1px solid transparent
}
.source-inline:hover {
  border-color:var(--gold)
}
.detail-block+.detail-block {
  margin-top:24px
}
.detail-block h3 {
  font:17px/1.65 var(--serif);
  letter-spacing:.6px;
  margin-bottom:8px
}
.detail-block p {
  font-size:12px;
  color:var(--text);
  line-height:2
}
.detail-block h3 span {
  color:var(--gold);
  font-size:11px;
  margin-right:8px
}
.practice-note {
  font-size:10px;
  color:var(--muted);
  background:var(--surface-alt);
  padding:12px 14px;
  border-radius:4px;
  line-height:1.9;
  margin-bottom:21px
}
.steps {
  list-style:none;
  margin:20px 0;
  padding:0;
  counter-reset:step
}
.steps li {
  position:relative;
  display:flex;
  gap:12px;
  padding:0 0 20px;
  font-size:12px;
  line-height:1.95
}
.steps li:last-child {
  padding-bottom:0
}
.step-number {
  width:23px;
  height:23px;
  min-width:23px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line-strong);
  border-radius:50%;
  color:var(--gold);
  font:10px var(--serif);
  margin-top:2px
}
.steps li>div {
  flex:1
}
.steps li strong {
  display:block;
  color:var(--ink);
  font-weight:500;
  margin-bottom:4px
}
.reflection {
  border-top:1px solid var(--line);
  padding-top:16px;
  margin-top:22px;
  font:14px/1.9 var(--serif);
  color:var(--ink)
}
.reflection span,.reflection small {
  display:block;
  font:9px var(--sans);
  letter-spacing:2px;
  color:var(--gold);
  margin-bottom:9px
}
.pitfall {
  background:var(--surface-alt);
  border-radius:4px;
  padding:16px;
  margin-top:24px
}
.pitfall h4 {
  font-size:11px;
  letter-spacing:1px;
  color:var(--gold);
  margin-bottom:8px
}
.pitfall p {
  font-size:11px;
  line-height:1.95;
  color:var(--text)
}
.pitfall p+p {
  margin-top:8px
}
.pitfall strong {
  color:var(--ink);
  font-weight:500
}
.bridge {
  font-size:11px;
  color:var(--muted);
  border-top:1px solid var(--line);
  padding-top:15px;
  margin-top:22px
}
.layer-action {
  margin-top:20px
}
.primary-button,.layer-action {
  background:var(--ink);
  color:var(--bg);
  border:1px solid var(--ink);
  border-radius:4px;
  padding:10px 17px;
  font-size:12px;
  letter-spacing:1px
}
.primary-button:hover,.layer-action:hover {
  background:var(--gold);
  border-color:var(--gold);
  color:var(--bg)
}
.primary-button span {
  margin-left:20px
}
.panel-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-top:1px solid var(--line);
  flex-shrink:0;
  height:58px
}
.panel-footer>.text-button {
  font-size:10px;
  color:var(--muted)
}
.panel-footer>div {
  display:flex;
  align-items:center;
  gap:13px
}
.panel-footer>div button {
  font-size:17px;
  width:26px;
  height:32px
}
.panel-footer>div span {
  font-size:9px;
  letter-spacing:1px;
  color:var(--muted)
}
.chapter-list {
  min-height:600px;
  padding:10px 0;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-content:start;
  gap:0 16px
}
.chapter-row {
  display:flex;
  align-items:center;
  text-align:left;
  gap:13px;
  min-height:92px;
  border-bottom:1px solid var(--line);
  padding:15px 8px
}
.chapter-row:hover {
  background:var(--surface)
}
.chapter-row.active {
  background:var(--surface-alt);
  border-radius:4px
}
.row-no {
  color:var(--gold);
  font:15px var(--serif)
}
.row-body {
  min-width:0;
  flex:1
}
.row-body h3 {
  font:17px/1.5 var(--serif);
  letter-spacing:.8px
}
.row-body p {
  font-size:10px;
  color:var(--muted);
  margin-top:4px;
  line-height:1.8
}
.row-arrow {
  font-size:17px;
  color:var(--muted)
}
.empty-state {
  grid-column:1/-1;
  padding:70px 24px;
  text-align:center;
  color:var(--muted)
}
.below-map {
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1fr;
  gap:28px;
  border-top:1px solid var(--line);
  margin-top:43px;
  padding:33px 0 42px
}
.below-map>div h2 {
  font:20px/1.7 var(--serif);
  letter-spacing:.6px;
  margin-top:8px
}
.below-map>div>p:last-child {
  font-size:10px;
  color:var(--muted);
  margin-top:7px
}
.practice-preview {
  text-align:left;
  padding:7px 0 7px 26px;
  border-left:1px solid var(--line)
}
.practice-preview>span {
  font-size:9px;
  letter-spacing:2px;
  color:var(--gold)
}
.practice-preview h3 {
  font:20px/1.8 var(--serif);
  letter-spacing:1px;
  margin:6px 0 5px
}
.practice-preview h3 b {
  float:right;
  font:16px var(--sans);
  color:var(--faint);
  font-weight:400
}
.practice-preview p {
  font-size:10px;
  color:var(--muted);
  letter-spacing:.2px
}
.practice-preview:hover h3,.practice-preview:hover b {
  color:var(--gold)
}
.site-footer {
  max-width:1500px;
  margin:auto;
  padding:23px 48px 28px;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  color:var(--muted);
  font-size:10px;
  letter-spacing:1px
}
.footer-brand {
  font:13px var(--serif);
  letter-spacing:2px;
  color:var(--ink)
}
.site-footer .text-button {
  font-size:10px
}
.view-heading {
  padding:45px 0 33px
}
.view-heading h1 {
  font:34px/1.5 var(--serif);
  letter-spacing:2px;
  margin:8px 0 12px
}
.view-heading>p {
  color:var(--muted);
  font-size:12px;
  max-width:740px
}
.practice-layout {
  display:grid;
  grid-template-columns:300px minmax(0,1fr);
  gap:40px;
  margin-bottom:55px;
  align-items:start
}
.method-list {
  display:flex;
  flex-direction:column;
  gap:12px
}
.method-card {
  position:relative;
  text-align:left;
  border:1px solid var(--line);
  padding:25px;
  border-radius:6px;
  background:var(--surface)
}
.method-card.active {
  border-color:var(--gold);
  background:var(--gold-soft)
}
.method-card>span {
  color:var(--gold);
  font-size:10px;
  letter-spacing:3px
}
.method-card h3 {
  font:25px/1.8 var(--serif);
  letter-spacing:2px;
  margin:5px 0
}
.method-card p {
  font-size:11px;
  color:var(--muted);
  line-height:1.9
}
.practice-detail {
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:8px;
  padding:32px;
  min-width:0;
  box-shadow:var(--shadow)
}
.method-content h2 {
  font:28px/1.6 var(--serif);
  letter-spacing:1px;
  margin:9px 0 15px
}
.method-content>p {
  font-size:13px;
  line-height:2;
  max-width:760px
}
.method-badge {
  font-size:10px;
  color:var(--gold);
  letter-spacing:2px
}
.method-quote {
  font:21px/1.8 var(--serif);
  color:var(--ink);
  border-left:2px solid var(--gold);
  padding:8px 22px;
  margin:22px 0;
  background:var(--surface-alt)
}
.method-content .steps {
  max-width:760px
}
.method-content .detail-block {
  margin-top:25px
}
.timer-card {
  display:flex;
  align-items:center;
  gap:30px;
  margin-top:30px;
  padding:25px;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--bg)
}
.timer-dial {
  width:130px;
  height:130px;
  min-width:130px;
  border:1px solid var(--line-strong);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  box-shadow:inset 0 0 0 7px var(--bg),inset 0 0 0 8px var(--line)
}
.timer-clock {
  font:32px/1.2 var(--serif);
  letter-spacing:2px;
  color:var(--ink);
  font-variant-numeric:tabular-nums
}
.timer-dial small {
  font-size:9px;
  letter-spacing:2px;
  color:var(--muted);
  margin-top:10px
}
.timer-controls {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px
}
.timer-controls button {
  border:1px solid var(--line-strong);
  border-radius:4px;
  padding:7px 15px;
  font-size:11px
}
.timer-controls .primary-button {
  border-color:var(--ink)
}
.duration-options {
  display:flex;
  gap:7px;
  margin-bottom:15px
}
.duration-options button {
  font-size:10px;
  padding:4px 10px;
  border:1px solid var(--line);
  border-radius:3px;
  color:var(--muted)
}
.duration-options button.active,.duration-options button[aria-pressed="true"] {
  background:var(--gold-soft);
  color:var(--gold);
  border-color:var(--gold)
}
.timer-hint {
  font-size:10px;
  line-height:1.8;
  color:var(--muted);
  margin-top:12px
}
.journal-layout {
  display:grid;
  grid-template-columns:300px minmax(0,1fr);
  gap:40px;
  margin-bottom:60px;
  align-items:start
}
.journal-sidebar h2,.journal-sidebar h3 {
  font:20px/1.6 var(--serif);
  margin:25px 0 13px
}
.journal-stats {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px
}
.stat {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:5px;
  padding:22px 15px;
  text-align:center
}
.stat strong {
  display:block;
  color:var(--gold);
  font:33px/1.4 var(--serif)
}
.stat span {
  display:block;
  font-size:10px;
  color:var(--muted);
  letter-spacing:1px;
  margin-top:4px
}
.saved-chapter {
  display:flex;
  align-items:center;
  justify-content:space-between;
  text-align:left;
  width:100%;
  padding:11px 12px;
  border-bottom:1px solid var(--line);
  font-size:12px
}
.saved-chapter span {
  color:var(--gold);
  font-size:10px
}
.journal-editor {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:7px;
  padding:30px;
  box-shadow:var(--shadow)
}
.journal-editor h2 {
  font:25px/1.6 var(--serif);
  margin-bottom:10px
}
.journal-editor>p {
  font-size:11px;
  color:var(--muted);
  margin-bottom:20px
}
.field-label {
  display:block;
  font-size:11px;
  color:var(--muted);
  letter-spacing:1px;
  margin:18px 0 8px
}
.journal-editor select,#journal-chapter {
  width:100%;
  max-width:400px;
  padding:10px 12px;
  border:1px solid var(--line-strong);
  border-radius:4px;
  background:var(--bg);
  color:var(--ink);
  font-size:12px
}
.journal-editor textarea {
  display:block;
  resize:vertical;
  width:100%;
  min-height:220px;
  border:1px solid var(--line);
  border-radius:4px;
  padding:17px;
  background:var(--bg);
  color:var(--ink);
  font-size:13px;
  line-height:2
}
.journal-editor textarea::placeholder {
  color:var(--faint)
}
.journal-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:14px;
  margin-top:18px
}
.journal-toolbar span,.journal-toolbar p {
  font-size:10px;
  color:var(--muted)
}
.journal-toolbar button:not(.primary-button) {
  border:1px solid var(--line-strong);
  padding:9px 14px;
  border-radius:4px;
  font-size:11px
}
.journal-empty {
  font-size:11px;
  line-height:1.9;
  color:var(--muted);
  padding:16px 0
}
.journal-entry {
  padding:20px 0;
  border-bottom:1px solid var(--line)
}
.journal-entry h3 {
  font:19px/1.6 var(--serif);
  margin-bottom:5px
}
.journal-entry time,.journal-entry small {
  font-size:10px;
  color:var(--muted)
}
.journal-entry p {
  font-size:12px;
  line-height:1.9;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  margin-top:12px
}
.journal-entry button {
  font-size:10px;
  color:var(--muted);
  margin-top:10px
}
dialog {
  max-width:630px;
  width:calc(100% - 36px);
  max-height:85vh;
  padding:30px 35px 34px;
  border:1px solid var(--line-strong);
  border-radius:9px;
  background:var(--surface);
  color:var(--text);
  box-shadow:0 20px 100px #0003;
  scrollbar-width:thin;
  scrollbar-color:var(--line-strong) transparent
}
dialog::backdrop {
  background:#10201880;
  backdrop-filter:blur(5px)
}
.dialog-header {
  display:flex;
  justify-content:space-between;
  align-items:center
}
.dialog-header .eyebrow {
  margin:0
}
dialog h2 {
  font:29px/1.6 var(--serif);
  letter-spacing:1px;
  margin:14px 0 20px
}
dialog h3 {
  font:19px/1.6 var(--serif);
  margin:24px 0 11px
}
dialog p {
  font-size:12px;
  line-height:2;
  color:var(--text);
  margin:11px 0
}
.source-link {
  display:block;
  font-size:12px;
  line-height:1.7;
  color:var(--gold);
  margin:10px 0
}
.source-link:hover {
  text-decoration:underline
}
dialog .primary-button {
  margin-top:24px;
  width:100%
}
#toast {
  position:fixed;
  bottom:30px;
  left:50%;
  transform:translate(-50%,15px);
  background:var(--ink);
  color:var(--bg);
  padding:11px 22px;
  border-radius:5px;
  box-shadow:var(--shadow);
  font-size:12px;
  letter-spacing:.5px;
  opacity:0;
  pointer-events:none;
  z-index:200;
  transition:opacity .2s,transform .2s;
  max-width:calc(100% - 36px);
  text-align:center
}
#toast.visible,#toast.show {
  opacity:1;
  transform:translate(-50%,0)
}
@media(min-width:1500px) {
  .map-layout {
    gap:45px
  }
  .chapter-panel {
    padding-left:34px;
    padding-right:34px
  }
}
@media(max-width:1200px) {
  .site-header,main,.site-footer {
    padding-left:32px;
    padding-right:32px
  }
  .site-header nav {
    gap:23px
  }
  .header-tools {
    gap:17px
  }
  .intro h1 {
    font-size:33px
  }
  .intro-note {
    font-size:13px;
    min-width:200px
  }
  .map-layout {
    grid-template-columns:minmax(0,1.35fr) minmax(330px,1fr);
    gap:24px
  }
  .chapter-panel {
    padding:23px 22px 0;
    height:720px
  }
  .node-name {
    font-size:14px;
    letter-spacing:.8px
  }
  .map-node {
    width:105px
  }
  .center-foot {
    letter-spacing:1px;
    font-size:8px
  }
  .map-center h2 {
    font-size:46px
  }
  .map-center p {
    font-size:13px
  }
  .stage-legend {
    gap:0
  }
  .stage-legend button {
    padding:5px 6px;
    gap:4px
  }
  .stage-legend small {
    display:none
  }
  .below-map {
    gap:18px
  }
  .below-map>div h2 {
    font-size:18px
  }
  .practice-preview {
    padding-left:18px
  }
  .practice-preview h3 {
    font-size:18px
  }
  .practice-preview p {
    font-size:9px
  }
  .search-wrap {
    max-width:150px
  }
  .segmented button {
    padding:5px 8px
  }
  .practice-layout,.journal-layout {
    grid-template-columns:250px minmax(0,1fr);
    gap:26px
  }
  .practice-detail {
    padding:26px
  }
}
@media(max-width:1000px) {
  .site-header {
    height:78px;
    gap:15px
  }
  .brand {
    font-size:21px;
    gap:8px
  }
  .brand small {
    font-size:10px;
    letter-spacing:2px
  }
  .brand-mark {
    font-size:33px
  }
  .source-button {
    display:none
  }
  .site-header nav {
    gap:22px
  }
  .nav-button {
    font-size:12px
  }
  .intro-note {
    display:none
  }
  .intro {
    padding:33px 0
  }
  .map-layout {
    grid-template-columns:minmax(0,1.3fr) minmax(300px,1fr);
    gap:20px
  }
  .atlas-top {
    flex-wrap:wrap;
    height:auto;
    gap:12px;
    align-items:center
  }
  .search-wrap {
    width:100%;
    max-width:none;
    border-top:1px solid var(--line);
    padding-top:4px
  }
  .search-wrap input {
    max-width:none
  }
  .map-node {
    width:85px;
    min-height:69px
  }
  .node-name {
    font-size:12px;
    letter-spacing:0
  }
  .node-topic {
    font-size:8px;
    letter-spacing:0
  }
  .node-orb {
    width:22px;
    height:22px;
    font-size:9px;
    margin-bottom:4px;
    box-shadow:0 0 0 3px var(--bg)
  }
  .map-center h2 {
    font-size:36px;
    letter-spacing:7px;
    padding-left:7px
  }
  .center-overline {
    font-size:8px;
    letter-spacing:2px
  }
  .map-center p {
    font-size:11px;
    letter-spacing:3px
  }
  .map-center i {
    margin:4px auto 9px
  }
  .center-foot {
    margin-top:12px;
    font-size:7px;
    letter-spacing:.3px
  }
  .map-bottom {
    font-size:8px;
    letter-spacing:0
  }
  .map-count {
    font-size:8px
  }
  .chapter-panel {
    height:680px;
    min-height:650px;
    padding:19px 19px 0
  }
  .chapter-title {
    padding:16px 0
  }
  .chapter-title h2 {
    font-size:23px
  }
  .chapter-title>p {
    font-size:10px
  }
  .stage-legend {
    padding-top:12px
  }
  .stage-legend button {
    font-size:9px;
    padding:5px
  }
  .map-caption {
    font-size:8px
  }
  .chapter-list {
    grid-template-columns:1fr;
    min-height:500px;
    max-height:510px;
    overflow:auto
  }
  .chapter-row {
    min-height:74px
  }
  .below-map {
    grid-template-columns:1fr 1fr 1fr;
    gap:20px
  }
  .below-map>div {
    grid-column:1/-1
  }
  .below-map>div h2 {
    font-size:21px
  }
  .below-map>div>p:last-child {
    font-size:11px
  }
  .practice-preview:first-of-type {
    padding-left:0;
    border-left:none
  }
  .practice-preview p {
    font-size:10px
  }
  .practice-layout,.journal-layout {
    grid-template-columns:220px minmax(0,1fr);
    gap:22px
  }
  .method-card {
    padding:20px
  }
  .method-card h3 {
    font-size:23px
  }
  .timer-card {
    flex-direction:column;
    text-align:center;
    gap:20px
  }
  .duration-options,.timer-controls {
    justify-content:center
  }
  .journal-editor {
    padding:23px
  }
}
@media(max-width:760px) {
  .site-header {
    padding:0 22px;
    height:auto;
    min-height:110px;
    flex-wrap:wrap;
    gap:0;
    position:relative;
    align-content:center;
    justify-content:space-between
  }
  .brand {
    height:57px;
    font-size:22px;
    order:0
  }
  .brand small {
    font-size:11px
  }
  .header-tools {
    order:1
  }
  .site-header nav {
    order:2;
    flex-basis:100%;
    height:43px;
    justify-content:flex-start;
    gap:33px;
    margin:0
  }
  .nav-button {
    padding-top:0;
    font-size:12px
  }
  .nav-button.active:after {
    left:0;
    transform:none;
    width:24px
  }
  .theme-button {
    font-size:10px;
    min-width:76px;
    padding:6px 10px
  }
  .source-button {
    display:none
  }
  main {
    padding:0 22px
  }
  .intro {
    padding:28px 0 26px
  }
  .intro h1 {
    font-size:29px;
    letter-spacing:1px;
    margin:8px 0 10px
  }
  .eyebrow {
    font-size:9px;
    letter-spacing:2px
  }
  .intro-desc {
    font-size:11px;
    line-height:1.9;
    max-width:420px
  }
  .map-layout {
    display:flex;
    flex-direction:column;
    gap:28px
  }
  .atlas {
    width:100%
  }
  .atlas-top {
    flex-wrap:nowrap;
    height:48px;
    gap:10px
  }
  .search-wrap {
    border:0;
    width:auto;
    max-width:47%;
    padding:0
  }
  .segmented button {
    font-size:10px;
    padding:5px 8px
  }
  .search-wrap input {
    font-size:10px
  }
  .map-area {
    max-width:600px;
    margin-top:7px
  }
  .map-node {
    width:100px;
    min-height:76px
  }
  .node-name {
    font-size:15px;
    letter-spacing:1px
  }
  .node-topic {
    font-size:9px;
    letter-spacing:1px
  }
  .node-orb {
    width:26px;
    height:26px;
    font-size:10px;
    box-shadow:0 0 0 4px var(--bg)
  }
  .map-center h2 {
    font-size:45px;
    letter-spacing:9px;
    padding-left:9px
  }
  .map-center p {
    font-size:13px;
    letter-spacing:4px
  }
  .center-overline {
    font-size:8px;
    letter-spacing:3px
  }
  .center-foot {
    font-size:8px;
    letter-spacing:1px;
    margin-top:15px
  }
  .map-bottom {
    font-size:9px
  }
  .map-count {
    font-size:9px
  }
  .stage-legend {
    padding-top:14px;
    margin-top:13px;
    gap:3px
  }
  .stage-legend button {
    font-size:10px;
    padding:5px 8px
  }
  .map-caption {
    font-size:9px
  }
  .chapter-panel {
    width:100%;
    height:auto;
    min-height:0;
    max-height:none;
    padding:23px 25px 0;
    scroll-margin-top:20px
  }
  .chapter-title {
    padding:16px 0 20px
  }
  .chapter-title h2 {
    font-size:29px;
    max-width:none
  }
  .chapter-title>p {
    font-size:11px
  }
  .chapter-number {
    font-size:11px
  }
  .pill {
    font-size:10px
  }
  .layer-tabs button {
    font-size:12px
  }
  #layer-content {
    max-height:600px;
    min-height:250px;
    padding-top:23px;
    font-size:13px
  }
  .summary,.detail-block p,.steps li {
    font-size:13px
  }
  .chapter-question {
    font-size:18px
  }
  .sutra-quote p {
    font-size:19px
  }
  .panel-footer {
    height:62px
  }
  .panel-footer>.text-button {
    font-size:11px
  }
  .chapter-list {
    grid-template-columns:1fr 1fr;
    min-height:390px;
    max-height:none;
    gap:0 14px
  }
  .chapter-row {
    min-height:85px;
    padding-left:3px;
    padding-right:3px;
    gap:8px
  }
  .row-no {
    font-size:13px
  }
  .row-body h3 {
    font-size:16px
  }
  .row-body p {
    font-size:9px
  }
  .row-arrow {
    font-size:14px
  }
  .below-map {
    margin-top:32px;
    padding:25px 0 32px;
    gap:17px
  }
  .below-map>div h2 {
    font-size:22px
  }
  .practice-preview {
    padding:4px 0 4px 15px
  }
  .practice-preview h3 {
    font-size:18px;
    letter-spacing:0
  }
  .practice-preview h3 b {
    font-size:13px
  }
  .practice-preview p {
    font-size:9px;
    line-height:1.9
  }
  .practice-preview>span {
    font-size:8px
  }
  .site-footer {
    padding:20px 22px;
    flex-wrap:wrap;
    gap:13px;
    font-size:9px
  }
  .site-footer>span:nth-child(2) {
    display:none
  }
  .site-footer .text-button {
    font-size:9px
  }
  .view-heading {
    padding:30px 0 25px
  }
  .view-heading h1 {
    font-size:30px
  }
  .view-heading>p {
    font-size:11px
  }
  .practice-layout,.journal-layout {
    display:flex;
    flex-direction:column;
    gap:22px;
    margin-bottom:35px
  }
  .method-list {
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:8px;
    width:100%
  }
  .method-card {
    padding:16px 10px
  }
  .method-card>span {
    font-size:8px;
    letter-spacing:1px
  }
  .method-card h3 {
    font-size:19px;
    letter-spacing:.4px;
    margin:5px 0
  }
  .method-card p {
    font-size:9px;
    line-height:1.8
  }
  .practice-detail {
    width:100%;
    padding:25px
  }
  .method-content h2 {
    font-size:26px
  }
  .method-content>p {
    font-size:12px
  }
  .method-quote {
    font-size:18px;
    padding-left:16px
  }
  .timer-card {
    flex-direction:row;
    text-align:left;
    padding:20px;
    gap:20px
  }
  .timer-dial {
    width:110px;
    height:110px;
    min-width:110px
  }
  .timer-clock {
    font-size:28px
  }
  .duration-options,.timer-controls {
    justify-content:flex-start
  }
  .journal-sidebar {
    width:100%
  }
  .journal-stats {
    max-width:450px
  }
  .stat {
    padding:15px
  }
  .stat strong {
    font-size:28px
  }
  .journal-sidebar h2,.journal-sidebar h3 {
    font-size:18px;
    margin-top:20px
  }
  .journal-editor {
    width:100%;
    padding:25px
  }
  .journal-toolbar {
    gap:10px
  }
  .journal-toolbar span {
    font-size:9px
  }
  .journal-editor textarea {
    min-height:200px
  }
  dialog {
    padding:23px;
    max-height:88vh
  }
  dialog h2 {
    font-size:25px
  }
  dialog h3 {
    font-size:18px
  }
}
@media(max-width:450px) {
  .site-header,main,.site-footer {
    padding-left:18px;
    padding-right:18px
  }
  .brand {
    font-size:20px
  }
  .brand small {
    font-size:10px;
    letter-spacing:1.7px
  }
  .brand-dot {
    margin:0 5px
  }
  .intro h1 {
    font-size:26px
  }
  .intro-desc {
    font-size:10px;
    line-height:2
  }
  .atlas-top {
    gap:5px
  }
  .segmented {
    padding:2px;
    gap:1px
  }
  .segmented button {
    font-size:9px;
    padding:5px 7px
  }
  .search-wrap {
    max-width:44%;
    gap:4px
  }
  .search-wrap input {
    font-size:9px
  }
  .search-wrap kbd {
    display:none
  }
  .map-area {
    margin-top:10px;
    margin-bottom:2px
  }
  .map-node {
    width:79px;
    min-height:63px;
    padding:3px 0
  }
  .node-name {
    font-size:12px;
    letter-spacing:.4px
  }
  .node-topic {
    font-size:7px;
    letter-spacing:.3px;
    margin-top:0
  }
  .node-orb {
    height:22px;
    width:22px;
    font-size:8px;
    margin-bottom:4px;
    box-shadow:0 0 0 3px var(--bg)
  }
  .map-node.active .node-orb {
    box-shadow:0 0 0 3px var(--gold-soft),0 0 0 4px var(--gold)
  }
  .map-center h2 {
    font-size:34px;
    line-height:1.4;
    letter-spacing:7px;
    padding-left:7px;
    margin:5px 0 3px
  }
  .center-overline {
    font-size:6px;
    letter-spacing:2px
  }
  .map-center i {
    width:20px;
    margin:3px auto 8px
  }
  .map-center p {
    font-size:10px;
    letter-spacing:3px;
    line-height:1.8
  }
  .center-foot {
    font-size:6px;
    letter-spacing:.5px;
    margin-top:9px
  }
  .map-bottom {
    font-size:7px;
    gap:4px;
    bottom:-3px
  }
  .tiny-star {
    font-size:13px
  }
  .map-count {
    font-size:7px;
    letter-spacing:1px
  }
  .map-compass {
    font-size:8px;
    inset:7px 1px
  }
  .stage-legend {
    gap:1px;
    padding-top:12px
  }
  .stage-legend button {
    font-size:9px;
    padding:4px 6px;
    gap:4px
  }
  .dot {
    width:4px;
    height:4px
  }
  .map-caption {
    font-size:8px;
    letter-spacing:0
  }
  .chapter-panel {
    padding:20px 21px 0
  }
  .chapter-title h2 {
    font-size:26px
  }
  .chapter-title>p {
    font-size:10px
  }
  .chapter-question {
    font-size:17px
  }
  .sutra-quote {
    padding:17px
  }
  .sutra-quote p {
    font-size:18px
  }
  .below-map {
    gap:12px
  }
  .below-map>div h2 {
    font-size:20px
  }
  .below-map>div>p:last-child {
    font-size:10px
  }
  .practice-preview {
    padding-left:11px
  }
  .practice-preview h3 {
    font-size:16px
  }
  .practice-preview h3 b {
    display:none
  }
  .practice-preview p {
    font-size:8px
  }
  .practice-preview>span {
    letter-spacing:1px;
    font-size:8px
  }
  .chapter-row {
    gap:7px
  }
  .row-body h3 {
    font-size:15px
  }
  .row-body p {
    font-size:8px
  }
  .row-arrow {
    display:none
  }
  .practice-detail {
    padding:21px
  }
  .method-card {
    padding:12px 9px
  }
  .method-card h3 {
    font-size:17px
  }
  .method-card p {
    font-size:8px
  }
  .method-card>span {
    font-size:7px
  }
  .timer-card {
    padding:18px 12px;
    gap:16px
  }
  .timer-dial {
    width:96px;
    height:96px;
    min-width:96px
  }
  .timer-clock {
    font-size:25px
  }
  .timer-dial small {
    font-size:8px;
    letter-spacing:1px
  }
  .timer-controls {
    gap:5px
  }
  .timer-controls button {
    padding:6px 9px;
    font-size:10px
  }
  .duration-options {
    gap:4px
  }
  .duration-options button {
    padding:4px 7px;
    font-size:9px
  }
  .timer-hint {
    font-size:9px
  }
  .journal-editor {
    padding:21px
  }
  .journal-toolbar .primary-button {
    font-size:11px;
    padding:9px 13px
  }
  .site-footer .footer-brand {
    font-size:11px
  }
  .site-footer .text-button {
    font-size:8px
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*:before,*:after {
    animation-duration:.01ms!important;
    transition-duration:.01ms!important;
    animation-iteration-count:1!important
  }
}
/* Layout details shared by the chapter renderer and reading tools. */
.theme-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px
}
.theme-button>span:first-child {
  font-size:14px
}
.switch-track {
  display:inline-block;
  width:19px;
  height:11px;
  background:var(--line-strong);
  border-radius:10px;
  position:relative;
  margin-left:3px
}
.switch-track i {
  display:block;
  position:absolute;
  left:2px;
  top:2px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--surface)
}
html[data-theme="dark"] .switch-track {
  background:var(--gold)
}
html[data-theme="dark"] .switch-track i {
  left:10px
}
.row-body h3 small {
  font:8px var(--sans);
  color:var(--muted);
  margin-left:8px;
  letter-spacing:.5px
}
.sutra-quote {
  position:relative
}
.sutra-quote>span {
  position:absolute;
  right:11px;
  top:-2px;
  font:56px var(--serif);
  color:var(--gold);
  opacity:.17;
  pointer-events:none
}
.layer-action {
  background:none;
  border:0;
  border-top:1px solid var(--line);
  padding:17px 0 0;
  margin-top:22px;
  display:flex;
  align-items:flex-start;
  flex-direction:column;
  gap:12px;
  color:var(--text);
  border-radius:0
}
.layer-action:hover {
  background:none;
  border-color:var(--line);
  color:var(--text)
}
.layer-action>.text-button {
  color:var(--gold);
  font-size:11px;
  text-align:left
}
.layer-action>.primary-button {
  color:var(--bg);
  font-size:11px
}
.practice-layer-title {
  font:22px/1.7 var(--serif);
  margin-bottom:16px
}
.wrong {
  color:var(--muted)!important
}
.bridge>span {
  display:block;
  font-size:9px;
  letter-spacing:2px;
  color:var(--gold);
  margin-bottom:8px
}
.bridge+.practice-note {
  margin-top:20px
}
.view-heading h1 em {
  font-style:normal;
  color:var(--gold)
}
.practice-layout {
  grid-template-columns:215px minmax(0,1fr) 230px;
  gap:26px
}
.method-list .practice-note {
  background:none;
  margin:8px 0 0;
  padding:10px 1px;
  font-size:10px
}
.method-list>.text-button {
  text-align:left;
  color:var(--gold);
  font-size:10px
}
.method-card {
  padding:22px 20px
}
.method-card h3 {
  font-size:23px
}
.method-card h3 b {
  font:14px var(--sans);
  float:right;
  font-weight:400;
  color:var(--faint);
  margin-top:10px
}
.method-card.active h3 b {
  color:var(--gold)
}
.method-content {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:7px;
  padding:29px;
  min-width:0;
  box-shadow:var(--shadow)
}
.method-content>.method-badge {
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border:1px solid var(--gold);
  border-radius:50%;
  font:22px var(--serif);
  margin-bottom:19px
}
.method-content>.layer-kicker {
  font-size:10px;
  color:var(--muted);
  margin:0
}
.method-content h2 {
  margin-top:7px
}
.method-content>h3 {
  font:21px/1.6 var(--serif);
  margin:28px 0 13px
}
.method-content>.practice-note {
  font-size:10px;
  padding:8px 12px;
  line-height:1.7;
  margin-bottom:19px
}
.method-content>.text-button {
  margin-top:17px;
  color:var(--gold);
  font-size:10px
}
.method-quote {
  padding:14px 17px;
  font-size:19px
}
.method-quote cite {
  display:block;
  font:9px var(--sans);
  letter-spacing:.5px;
  color:var(--muted);
  margin-top:9px
}
.timer-card {
  position:sticky;
  top:25px;
  display:flex;
  flex-direction:column;
  gap:0;
  padding:23px 17px;
  margin:0;
  text-align:center;
  background:var(--surface);
  box-shadow:var(--shadow)
}
.timer-card>.eyebrow {
  font-size:9px;
  letter-spacing:1.5px;
  margin-bottom:25px
}
.timer-dial {
  width:160px;
  height:160px;
  min-width:160px;
  margin-bottom:21px;
  position:relative
}
.timer-symbol {
  font:16px/1 var(--serif);
  color:var(--gold);
  margin-bottom:10px
}
.timer-clock {
  font-size:35px
}
.timer-dial #timer-status {
  font-size:8px;
  color:var(--muted);
  letter-spacing:0;
  margin-top:10px;
  max-width:130px;
  line-height:1.7
}
.duration-options {
  margin-bottom:18px;
  justify-content:center
}
.duration-options button.selected {
  background:var(--gold-soft);
  color:var(--gold);
  border-color:var(--gold)
}
.timer-controls {
  justify-content:center;
  flex-direction:column;
  width:100%
}
.timer-controls>.primary-button {
  width:100%;
  padding:10px 8px
}
.timer-controls>.text-button {
  border:0;
  padding:5px 8px;
  font-size:10px
}
.timer-hint {
  font-size:9px;
  margin-top:15px
}
.timer-card>.text-button {
  font-size:10px;
  color:var(--gold);
  margin-top:18px;
  padding-top:15px;
  border-top:1px solid var(--line);
  width:100%
}
.journal-stats {
  grid-template-columns:repeat(3,1fr);
  gap:8px
}
.stat {
  padding:18px 8px
}
.stat strong {
  font-size:29px
}
.stat strong small {
  font:12px var(--serif);
  color:var(--muted);
  margin-left:2px
}
.stat span {
  font-size:9px;
  letter-spacing:.5px
}
.saved-chapter {
  gap:12px
}
.saved-chapter>div {
  flex:1
}
.saved-chapter small {
  display:block;
  font-size:9px;
  line-height:1.8;
  color:var(--muted);
  margin-top:3px
}
.saved-chapter>b {
  font-size:13px;
  font-weight:400;
  color:var(--faint)
}
.journal-editor-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-bottom:1px solid var(--line);
  padding-bottom:15px;
  margin-bottom:25px
}
.journal-editor-top>.eyebrow {
  font-size:9px;
  letter-spacing:1.3px
}
.journal-editor-top>.text-button {
  font-size:10px;
  color:var(--gold)
}
.journal-editor select {
  max-width:none
}
.journal-editor .reflection {
  border:0;
  padding:18px;
  background:var(--surface-alt);
  border-radius:4px;
  font-size:17px;
  margin:24px 0
}
.journal-editor>.practice-note {
  margin:23px 0 0;
  font-size:10px;
  background:none;
  padding:15px 0 0;
  border-top:1px solid var(--line)
}
#note-index>.journal-entry {
  display:flex;
  justify-content:space-between;
  align-items:center;
  width:100%;
  font-size:11px;
  text-align:left;
  padding:12px;
  border-radius:3px;
  color:var(--muted)
}
#note-index>.journal-entry.active {
  color:var(--ink);
  background:var(--surface-alt)
}
#note-index>.journal-entry>span {
  color:var(--gold);
  font-size:14px
}
.journal-toolbar .primary-button {
  color:var(--bg)
}
@media(max-width:1200px) {
  .practice-layout {
    grid-template-columns:180px minmax(0,1fr) 200px;
    gap:20px
  }
  .method-card {
    padding:18px 15px
  }
  .method-card h3 {
    font-size:21px
  }
  .method-content {
    padding:24px
  }
  .timer-card {
    padding:23px 13px
  }
  .timer-dial {
    width:148px;
    height:148px;
    min-width:148px
  }
  .method-quote {
    font-size:18px
  }
}
@media(max-width:1000px) {
  .practice-layout {
    grid-template-columns:200px minmax(0,1fr);
    gap:22px
  }
  .practice-layout>.method-list {
    grid-row:1/3
  }
  .method-content {
    grid-column:2
  }
  .timer-card {
    grid-column:2;
    position:static;
    display:grid;
    grid-template-columns:160px 1fr;
    column-gap:20px;
    padding:22px;
    text-align:left
  }
  .timer-card>.eyebrow {
    grid-column:1/-1;
    margin:0 0 18px
  }
  .timer-dial {
    grid-column:1;
    grid-row:2/5;
    margin:0
  }
  .duration-options {
    justify-content:flex-start;
    margin:0 0 12px
  }
  .timer-controls {
    justify-content:flex-start;
    align-items:flex-start;
    width:100%
  }
  .timer-controls>.primary-button {
    max-width:180px
  }
  .timer-controls>.text-button {
    padding-left:0
  }
  .timer-hint {
    grid-column:2;
    margin-top:8px
  }
  .timer-card>.text-button {
    grid-column:1/-1;
    text-align:left;
    margin-top:18px;
    padding-top:13px
  }
  .journal-stats {
    gap:5px
  }
  .stat {
    padding:16px 4px
  }
  .stat strong {
    font-size:25px
  }
  .stat span {
    font-size:8px
  }
  .journal-editor-top {
    flex-wrap:wrap
  }
}
@media(max-width:760px) {
  .theme-button {
    min-width:96px;
    gap:4px
  }
  .switch-track {
    width:17px;
    margin-left:2px
  }
  html[data-theme="dark"] .switch-track i {
    left:8px
  }
  .practice-layout {
    display:flex;
    gap:22px
  }
  .method-list {
    grid-template-columns:repeat(3,1fr)
  }
  .method-list>.practice-note {
    grid-column:1/-1;
    font-size:10px;
    line-height:1.9;
    margin:2px 0 0;
    padding:8px 0 0
  }
  .method-list>.text-button {
    grid-column:1/-1;
    font-size:10px;
    padding:0
  }
  .method-card {
    padding:16px 12px
  }
  .method-card h3 {
    font-size:21px
  }
  .method-card h3 b {
    display:none
  }
  .method-content {
    padding:25px;
    width:100%
  }
  .method-content h2 {
    font-size:29px
  }
  .method-content>.method-badge {
    width:38px;
    height:38px;
    font-size:20px
  }
  .method-content>h3 {
    font-size:21px
  }
  .timer-card {
    width:100%;
    padding:25px;
    grid-template-columns:160px 1fr;
    column-gap:25px
  }
  .timer-dial {
    width:155px;
    height:155px;
    min-width:155px
  }
  .timer-clock {
    font-size:34px
  }
  .timer-dial #timer-status {
    font-size:9px
  }
  .timer-controls>.primary-button {
    max-width:none
  }
  .timer-hint {
    font-size:10px
  }
  .duration-options {
    gap:8px
  }
  .duration-options button {
    font-size:10px;
    padding:5px 10px
  }
  .journal-stats {
    max-width:none;
    gap:10px
  }
  .stat {
    padding:16px 12px
  }
  .stat strong {
    font-size:30px
  }
  .stat span {
    font-size:10px
  }
  .journal-editor-top {
    flex-wrap:nowrap
  }
  .journal-editor .reflection {
    font-size:17px
  }
  .row-body h3 small {
    font-size:7px;
    margin-left:6px
  }
  .layer-action {
    gap:12px
  }
}
@media(max-width:450px) {
  .theme-button {
    min-width:88px;
    gap:4px
  }
  .theme-button>span:first-child {
    font-size:12px
  }
  .switch-track {
    width:16px;
    height:10px
  }
  .switch-track i {
    width:6px;
    height:6px
  }
  .method-card {
    padding:13px 10px
  }
  .method-card h3 {
    font-size:18px
  }
  .method-content {
    padding:21px
  }
  .method-content h2 {
    font-size:26px
  }
  .method-content>h3 {
    font-size:20px
  }
  .method-content>.method-badge {
    width:35px;
    height:35px;
    font-size:18px
  }
  .method-content>.layer-kicker {
    font-size:9px
  }
  .timer-card {
    padding:21px 17px;
    grid-template-columns:130px 1fr;
    column-gap:18px
  }
  .timer-dial {
    width:130px;
    height:130px;
    min-width:130px
  }
  .timer-clock {
    font-size:30px
  }
  .timer-dial #timer-status {
    font-size:8px;
    max-width:110px
  }
  .timer-symbol {
    font-size:14px
  }
  .duration-options {
    gap:5px
  }
  .duration-options button {
    font-size:9px;
    padding:4px 7px
  }
  .timer-controls>.primary-button {
    font-size:11px;
    padding:9px 6px
  }
  .timer-hint {
    font-size:8px;
    line-height:1.9
  }
  .journal-stats {
    gap:8px
  }
  .stat strong {
    font-size:27px
  }
  .stat span {
    font-size:9px
  }
  .journal-editor-top>.eyebrow {
    font-size:8px;
    letter-spacing:1px
  }
  .journal-editor-top>.text-button {
    font-size:9px
  }
  .journal-editor .reflection {
    font-size:15px;
    padding:15px
  }
  .row-body h3 small {
    font-size:7px;
    margin-left:4px
  }
  .practice-layer-title {
    font-size:21px
  }
}
@media(max-width:450px) {
  .map-area {
    margin-top:23px;
    margin-bottom:31px
  }
  .map-node {
    width:58px;
    min-height:50px;
    height:50px;
    padding:2px 0
  }
  .node-orb {
    width:18px;
    height:18px;
    min-height:18px;
    font-size:8px;
    margin-bottom:3px
  }
  .node-name {
    font-size:11px;
    line-height:1.4;
    letter-spacing:.3px
  }
  .node-topic {
    font-size:7px;
    line-height:1.2;
    letter-spacing:.2px;
    padding:0 2px
  }
  .map-bottom {
    bottom:-26px;
    left:2px;
    right:2px
  }
  .map-compass {
    inset:8px 1px
  }
  #map-nodes>.map-node:nth-child(1) {
    left:50%!important;
    top:6%!important
  }
  #map-nodes>.map-node:nth-child(2) {
    left:72%!important;
    top:11.895%!important
  }
  #map-nodes>.map-node:nth-child(3) {
    left:88.105%!important;
    top:28%!important
  }
  #map-nodes>.map-node:nth-child(4) {
    left:94%!important;
    top:50%!important
  }
  #map-nodes>.map-node:nth-child(5) {
    left:88.105%!important;
    top:72%!important
  }
  #map-nodes>.map-node:nth-child(6) {
    left:72%!important;
    top:88.105%!important
  }
  #map-nodes>.map-node:nth-child(7) {
    left:50%!important;
    top:94%!important
  }
  #map-nodes>.map-node:nth-child(8) {
    left:28%!important;
    top:88.105%!important
  }
  #map-nodes>.map-node:nth-child(9) {
    left:11.895%!important;
    top:72%!important
  }
  #map-nodes>.map-node:nth-child(10) {
    left:6%!important;
    top:50%!important
  }
  #map-nodes>.map-node:nth-child(11) {
    left:11.895%!important;
    top:28%!important
  }
  #map-nodes>.map-node:nth-child(12) {
    left:28%!important;
    top:11.895%!important
  }
}
@media(max-width:340px) {
  .map-node {
    width:52px;
    min-height:44px;
    height:44px
  }
  .node-orb {
    width:16px;
    height:16px;
    min-height:16px;
    margin-bottom:2px;
    font-size:7px
  }
  .node-name {
    font-size:10px;
    line-height:1.3
  }
  .node-topic {
    font-size:6px;
    line-height:1.2
  }
}

/* Keep sustained Chinese reading comfortable on every viewport. */
#layer-content, .summary, .detail-block p, .steps li,
.pitfall p, .bridge p, .method-content > p, #source-dialog > p {
  font-size: 14px;
  line-height: 1.95;
}
.intro-desc, .view-heading > p:last-child {
  font-size: 13px;
}
@media (max-width: 760px) {
  #layer-content {
    max-height: none;
    overflow: visible;
    flex: none;
  }
  .chapter-panel {
    scroll-margin-top: 16px;
  }
}
