/* One small-lotus visual language for writing, recognition and topic practice.
   Decoration uses CSS and existing local art; teaching colours and layout stay intact. */
:root{--lotus-ink:#294b36;--lotus-muted:#647a68;--lotus-green:#39764c;--lotus-green-dark:#2d623d;--lotus-line:#dbe8d5;--lotus-soft:#eef6e6;--lotus-pale:#f7fbf3;--lotus-shadow:0 3px 0 #e0ead9}
html{background:var(--lotus-pale);color:var(--lotus-ink)}body[data-learning-area]{background:linear-gradient(180deg,#f6faef 0,#fff 38%,#fbfdf8 100%);color:var(--lotus-ink)}
.practice-shell-header .brand{gap:9px;color:var(--lotus-ink)}.practice-shell-header .brand>img{border-radius:14px;object-fit:contain;filter:drop-shadow(0 2px 1px #dce8d1)}.practice-shell-header .brand strong{color:var(--lotus-ink)}.practice-shell-header .brand small,.practice-shell-header>#schoolLink{color:var(--lotus-muted)}
.practice-shell-header>#topicSettingsOpen,.practice-shell-header>#openPreferences,#globalPinyin,.settings-button{border-color:var(--lotus-line)!important;background:#fff!important;border-radius:14px 14px 7px 14px!important;box-shadow:0 2px 0 #e7eedf!important}
body[data-view=home] .home-heading,body[data-learning-area=topics] .home-title{position:relative;isolation:isolate;overflow:hidden;border:1px solid #dfeacc!important;border-radius:25px 25px 25px 8px!important;background:#edf5df!important;box-shadow:none!important;color:var(--lotus-ink)}
body[data-view=home] .home-heading:before,body[data-learning-area=topics] .home-title:before{content:"";position:absolute;z-index:-1;pointer-events:none;right:13%;bottom:-45px;width:160px;height:110px;border-radius:80% 8% 75% 15%;transform:rotate(-18deg);background:linear-gradient(145deg,transparent 48%,#c4d9aa66 49%,#c4d9aa66 50%,transparent 51%),linear-gradient(25deg,#dae9c6,#e7f0d7)}
body[data-track=recognize][data-view=home] .home-heading:before{right:7%;transform:rotate(22deg);border-radius:8% 80% 15% 75%;background:linear-gradient(35deg,transparent 48%,#b4d2ad66 49%,#b4d2ad66 50%,transparent 51%),#dcebd4}
body[data-learning-area=topics] .home-title:before{right:20%;transform:rotate(-32deg);background:linear-gradient(145deg,transparent 48%,#bfd5aa88 49%,#bfd5aa88 50%,transparent 51%),#dce9cd}
body[data-view=home] .home-heading h1,body[data-learning-area=topics] .home-title h1{color:var(--lotus-ink)!important;font-weight:800}body[data-view=home] .home-heading p,body[data-learning-area=topics] .home-title p{color:#5d7558!important}.home-star,.game-hero{display:none!important}
.track-tabs>button,.track-tabs>.track-topic,.practice-switcher>a{border:1.5px solid var(--lotus-line)!important;border-bottom-width:3px!important;border-radius:15px 15px 6px 15px!important;background:#fff!important;color:#657b67!important;box-shadow:none!important;transition:background .12s,border-color .12s}
.track-tabs>button[aria-pressed=true],.track-tabs>.track-topic[aria-current=page],.practice-switcher>a[aria-current=page]{background:#e8f2da!important;border-color:#96b77b!important;color:#355c35!important;font-weight:800}
body[data-view=home] .mode-card,body[data-learning-area=topics] .category-card{border:1px solid var(--lotus-line)!important;border-bottom:3px solid #d5e3cb!important;border-radius:23px 23px 9px 23px!important;background:#fff!important;box-shadow:none!important;transition:background .12s,border-color .12s}
body[data-view=home] .mode-card:nth-child(3n+2),body[data-learning-area=topics] .category-card:nth-child(3n+2){border-radius:23px 9px 23px 23px!important}
body[data-view=home] .mode-card:nth-child(3n),body[data-learning-area=topics] .category-card:nth-child(3n){border-radius:9px 23px 23px 23px!important}
body[data-view=home] .mode-card:hover,body[data-learning-area=topics] .category-card:hover{background:#f3f8eb!important;border-color:#a4bf8f!important}
body[data-view=home] .mode-card[aria-pressed=true]{background:#eff6e5!important;border-color:#b3ca9d!important}body[data-view=home] .mode-card[aria-pressed=true] .level-art{background:transparent!important}
body[data-view=home] .mode-card strong,body[data-learning-area=topics] .category-card strong{color:#3f6146!important;font-weight:750!important}.level-number,body[data-learning-area=topics] .category-card .level-number{color:#758a6d!important;background:#f0f5e9!important;border-color:#e1ead7!important}
body[data-learning-area=topics] #topics[data-layout=categories]{gap:12px!important;padding:5px 1px 9px!important}.category-card small{color:var(--lotus-muted)!important}
.topic-card,.catalogue-card,.word-card,.sentence-card,.expression,.flashcard,.timeline-focus{border-color:var(--lotus-line)!important;background:#fff!important;border-radius:19px 19px 7px 19px!important;box-shadow:0 2px 0 #eaf0e4!important}
.topic-card:hover,.catalogue-card:hover{background:#f6faef!important;border-color:#acc598!important}.flashcard{border-width:2px!important;box-shadow:0 5px 0 #dce9d0!important}.flash-art,.word-photo,.sentence-picture{background:transparent!important}.flash-tools .icon-button,.word-full-audio,.sentence-top .icon-button{background:#f1f7e9!important;border-color:transparent!important;border-radius:50%!important}
.mode-tabs button,.group-choice,.range-choice,.number-ranges button,.content-groups button,.page-arrow,.date-stop .date-number{border-color:var(--lotus-line)!important;background:#fff;color:var(--lotus-muted);border-radius:13px 13px 5px 13px}.mode-tabs button[aria-pressed=true],.group-choice[aria-pressed=true],.range-choice[aria-pressed=true],.number-ranges button[aria-pressed=true],.content-groups button[aria-pressed=true]{background:#eaf3de!important;border-color:#a6c38b!important;color:#345a36!important}.lesson-heading h1,#modeName{color:var(--lotus-ink)}
.practice-dice,.random-topic-button{background:#edf5e0!important;border:1px solid #dbe8cd!important;border-radius:14px 14px 6px 14px!important;color:var(--lotus-green)!important;box-shadow:0 2px 0 #dce9d0!important}.lp-badge{background:#f4f6df!important;color:#6b6d38!important;border:1px solid #e8ebcd}.practice-top{color:var(--lotus-muted)}progress,#batchProgress{accent-color:#7caa58;background:#eaf1e3}#batchProgress::-webkit-progress-bar{background:#e8efdf;border-radius:10px}#batchProgress::-webkit-progress-value{background:#84ad63;border-radius:10px}
.listen-button,.big-sound,.question-sound{background:#f0f6e8!important;border:2px solid #9dbb84!important;border-radius:23px 23px 7px 23px!important;color:var(--lotus-green)!important;box-shadow:0 3px 0 #dde8d1!important}
#answerList .answer-button:not(.correct):not(.wrong),.answers .word-answer:not(.right):not(.wrong),.answers .picture-answer:not(.right):not(.wrong){border-color:var(--lotus-line)!important;border-bottom-color:#cfdfc3!important;border-radius:18px 18px 6px 18px!important;background:#fff!important;box-shadow:none!important}
.primary,#next:not(:disabled),#flashKnown,.lesson-footer #next:not(:disabled){background:var(--lotus-green)!important;border-color:var(--lotus-green-dark)!important;color:#fff!important;border-radius:17px 17px 6px 17px!important;box-shadow:0 3px 0 #285b38!important}.primary:hover,#next:not(:disabled):hover,#flashKnown:hover{background:var(--lotus-green-dark)!important}#flashAgain{border-color:#d6b7a4!important;background:#fffaf6!important;color:#96654e!important;border-radius:17px 17px 17px 6px!important}.flash-flip{background:#f0f6e7!important;border:1px solid #d1e1c2!important;color:#456647!important;border-radius:15px!important}
dialog{border:1px solid var(--lotus-line)!important;border-radius:24px 24px 8px 24px!important;box-shadow:0 18px 65px #2c4b3633!important;background:#fff!important}dialog::backdrop{background:#263f334a!important;backdrop-filter:none}.helper-choice,[data-helper],.settings-page-tabs button,[data-qcount],[data-limit]{border-color:var(--lotus-line)!important}.helper-choice[aria-pressed=true],[data-helper][aria-pressed=true],.settings-page-tabs button[aria-pressed=true],[data-qcount][aria-pressed=true],[data-limit][aria-pressed=true]{background:#eaf3de!important;border-color:#96b97d!important;color:#365e38!important}.lp-panel,.timer-bar{background:#f3f7ed!important;border-color:var(--lotus-line)!important}
button:focus-visible,a:focus-visible{outline:3px solid #668f3f!important;outline-offset:3px}.text-button,.detail-top button{color:#61785f!important}
@media(max-width:800px){body[data-view=home] .home-heading,body[data-learning-area=topics] .home-title{border-radius:20px 20px 20px 7px!important}body[data-view=home] .mode-card,body[data-learning-area=topics] .category-card{border-radius:18px 18px 6px 18px!important}body[data-view=home] .mode-card strong{font-size:13px!important}html:not(:lang(zh-CN)) body[data-view=home] .mode-card strong{font-size:11px!important;line-height:1.2}body[data-learning-area=topics] .category-card strong{font-size:12px!important}body[data-learning-area=topics] #topics[data-layout=categories]{gap:8px!important}.category-card small{font-size:11px!important}}
@media(max-height:500px) and (min-width:500px){body[data-view=home] .mode-card strong,html:not(:lang(zh-CN)) body[data-view=home] .mode-card strong,body[data-learning-area=topics] .category-card strong{font-size:11px!important}body[data-learning-area=topics] #topics[data-layout=categories]{gap:5px 8px!important}body[data-view=home] .home-heading:before,body[data-learning-area=topics] .home-title:before{height:80px;width:120px;bottom:-45px}}
@media(prefers-reduced-motion:reduce){.track-tabs>button,.practice-switcher>a,body[data-view=home] .mode-card,body[data-learning-area=topics] .category-card{transition:none!important}}

body[data-learning-area=characters][data-view=home] .track-tabs>button[aria-pressed=true]{background:#e8f2da!important;border-color:#96b77b!important;color:#355c35!important;box-shadow:none!important}body[data-learning-area=characters][data-view=home] .track-tabs>button{border-color:var(--lotus-line)!important;box-shadow:none!important}

body[data-view=home] .track-tabs{flex-wrap:nowrap!important}body[data-view=home] .track-tabs>button,body[data-view=home] .track-tabs>.track-topic{min-width:0!important;flex:1 1 0!important;white-space:normal;line-height:1.2}

@media(max-width:800px){body[data-view=home] .track-tabs{align-items:stretch!important}body[data-view=home] .track-tabs>button,body[data-view=home] .track-tabs>.track-topic{display:flex!important;align-items:center;justify-content:center;align-self:stretch!important;min-height:35px;height:auto!important;font-size:11px!important;padding:6px 3px!important}}
