.shared-practice-gear {
    flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 10px;
    border: 0; border-radius: 12px; background: transparent; color: #365c39;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: none !important;
}
.shared-practice-gear svg {width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round;}
.shared-practice-settings {
    position: fixed; inset: auto 0 0; width: min(100%, 560px); max-width: 100%;
    max-height: calc(100dvh - 16px); margin: auto auto 0; padding: 0; border: 1px solid #c6b68b;
    border-bottom: 0; border-radius: 24px 24px 0 0; background: #fff9eb; color: #365c39; overflow: auto;
}
.shared-practice-settings::backdrop {background: rgb(15 23 42 / 55%);}
.shared-practice-sheet header {position: static; display: block; padding: 12px 20px 16px; background: transparent; border: 0; box-shadow: none; text-align: center;}
.shared-practice-sheet h2 {margin: 0; font-size: 24px;}
.shared-practice-sheet .practice-sheet-handle {width: 42px; height: 5px; margin: 0 auto 16px; border-radius: 99px; background: #c6b68b;}
.shared-practice-options {margin: 0 20px; border: 1px solid #c6b68b; border-radius: 16px;}
.shared-practice-options label {display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 8px 16px; font-size: 17px; font-weight: 700; cursor: pointer;}
.shared-practice-options label + label {border-top: 1px solid #c6b68b;}
.shared-practice-options input {appearance: none; -webkit-appearance: none; position: relative; flex: 0 0 48px; width: 48px; height: 28px; margin: 0; border: 2px solid #c6b68b; border-radius: 99px; background: #d4d4ca; cursor: pointer;}
.shared-practice-options input::after {content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 160ms ease-out;}
.shared-practice-options input:checked {background: #c6a04a; border-color: #c6a04a;}
.shared-practice-options input:checked::after {transform: translateX(20px);}
.shared-practice-sheet footer {display: grid; gap: 8px; padding: 20px 20px max(12px, env(safe-area-inset-bottom)); margin: 0; border: 0; background: transparent;}
.shared-practice-sheet button {min-height: 48px; padding: 12px; border: 0; border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer;}
#practiceEndSession {background: transparent; color: #a43e34;}
.practice-hide-pinyin :is([data-practice-pinyin],.practice-choice-pinyin,.hsk-flashcard-pinyin) {display: none !important;}
.practice-hide-english :is([data-practice-english],.practice-choice small,.hsk-flashcard-meaning) {display: none !important;}
.shared-practice-gear:focus-visible,.shared-practice-settings :is(button,input):focus-visible {outline: 3px solid #795515 !important; outline-offset: 3px;}
@media (prefers-reduced-motion: reduce) {.shared-practice-options input::after {transition: none;}}

.practice-session-top,.write-drill-header,.letters-drill-header,.hsk-flashcard-session-top {display: flex !important; align-items: center; gap: 12px;}
:is(.practice-session-top,.write-drill-header,.letters-drill-header,.hsk-flashcard-session-top) > :is(.practice-lesson-progress,.write-exercise-progress,.letters-lesson-progress,.hsk-flashcard-progress) {flex: 1; min-width: 0;}
.practice-completion {text-align: center; padding: 32px 16px; color: #365c39;}
.practice-completion button {min-height: 48px; padding: 12px 32px; border: 0; border-radius: 12px; background: #365c39; color: #fff9eb; font: inherit; font-weight: 700;}

body[data-learning-page="write"] .write-prompt-sub {position: static; width: 100%; height: auto; overflow: visible; clip-path: none; white-space: normal; display: flex; gap: 8px; font-size: 12px; line-height: 1.3;}
.practice-hide-pinyin.practice-hide-english body[data-learning-page="write"] .write-prompt-sub {display: none;}

#practiceSaveItem {background: #365c39; color: #fff9eb;}
#practiceSaveStatus {margin: 0; color: #365c39; font-size: 14px; line-height: 1.4; text-align: center;}
#practiceSaveStatus:empty {display: none;}
#lessonProgressBar {grid-template-columns: auto minmax(0, 1fr) auto auto;}
.practice-hide-pinyin #promptSub,
.practice-hide-english .exercise-example-translation {display: none !important;}


.shared-practice-sheet header {position: relative !important; padding-inline: 64px;}
.shared-practice-settings .shared-practice-sheet .practice-settings-close {position: absolute !important; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 10px; background: transparent; color: #365c39;}

.practice-save-action {display:grid;gap:0;}
#practiceSaveItem {display:flex;align-items:center;justify-content:center;gap:8px;}
#practiceSaveItem img {width:24px;height:24px;object-fit:contain;}
.practice-save-note {margin:0;font-size:12px;line-height:1.3;text-align:center;}
.practice-shape-prompt {font-size:88px;line-height:1.2;color:#365c39;}
.practice-traditional-hint {display: block; max-width: 100%; margin: 4px 0; color: #795515; font-size: 20px; line-height: 1.35; text-align: center; overflow-wrap: anywhere;}
.practice-traditional-hint::before {content: 'Traditional: '; font-size: 12px; font-weight: 600;}
.practice-traditional-hint[hidden] {display: none !important;}
.practice-hide-english #promptSentenceTranslation {display: none !important;}
[data-answer-mode="shape"] .practice-audio-wave {display:none;}
