.letter-trace-page{color:#273c39;background:#f5f7f4;flex-direction:column;justify-content:space-between;width:100%;height:100dvh;max-height:100dvh;padding:0;display:flex;overflow:hidden}.letter-trace-page button{cursor:pointer;transition:background .15s,border-color .15s}.letter-trace-page button:focus-visible,.letter-trace-page a:focus-visible{outline-offset:3px;outline:3px solid #69a995}.trace-header{justify-content:space-between;align-items:center;gap:16px;max-width:1120px;min-height:56px;margin:auto;display:flex}.trace-heading,.trace-utilities{align-items:center;gap:14px;display:flex}.trace-heading h1{letter-spacing:-.03em;font-size:18px;font-weight:800}.trace-heading p,.trace-practice-heading p,.trace-modal-heading p{color:#7b8984;margin-top:2px;font-size:11px}.trace-word-link{cursor:pointer;transition:color .15s,background-color .15s;color:#567068!important;box-shadow:none!important;background:0 0!important;border:none!important;border-radius:8px!important;align-items:center!important;gap:5px!important;margin-right:4px!important;padding:4px 8px!important;font-size:12px!important;font-weight:700!important;text-decoration:none!important;display:inline-flex!important}.trace-word-link:hover{color:#1e293b!important;background-color:#0000000d!important}.letter-trace-page .trace-icon{color:#567068;background:#fff;border:1px solid #dde5df;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;display:inline-flex}.letter-trace-page .trace-icon:hover{background:#edf4ee}.trace-workspace{flex-direction:column;flex:1;justify-content:space-between;width:100%;max-width:1140px;min-height:0;margin:0 auto;padding:0 16px 10px;display:flex}.trace-controls{flex-shrink:0;align-items:center;gap:14px;margin-bottom:6px;display:flex}.trace-letter-picker{text-align:left;cursor:pointer;background:#fff;border:1px solid #dce5dc;border-radius:11px;align-items:center;gap:8px;height:38px;min-height:38px;margin-right:auto;padding:3px 12px 3px 4px;transition:background .15s,border-color .15s;display:inline-flex;box-shadow:0 1px 2px #24402b0d}.trace-letter-picker:hover{background:#f3f7f1}.trace-letter-symbol{color:#347b64;background:#e4efe5;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;gap:3px;height:30px;min-height:30px;padding:0 8px;font-size:20px;font-weight:800;display:inline-flex}.trace-letter-symbol small{font-size:14px;font-weight:700}.trace-letter-picker strong{font-size:11px;font-weight:700;line-height:1.1;display:block}.trace-letter-picker>span>small{color:#7b8984;margin-top:1px;font-size:10px;line-height:1.1;display:block}.trace-segment{background:#e9eee9;border-radius:11px;gap:4px;padding:3px;display:flex}.trace-segment button{color:#74827b;border:1px solid #0000;border-radius:8px;padding:6px 12px;font-size:11px;font-weight:700}.trace-segment button small{margin-top:1px;font-size:9px;font-weight:500;display:block}.trace-segment button[aria-pressed=true]{color:#27664f;background:#fff;border-color:#dce5dc;box-shadow:0 1px 2px #24402b0d}.trace-speed-selector{background:#e9eee9;border-radius:9px;gap:2px;padding:2px;display:flex}.trace-speed-selector button{color:#74827b;border:1px solid #0000;border-radius:7px;padding:3px 8px;font-size:10px;font-weight:700}.trace-speed-selector button[aria-pressed=true]{color:#27664f;background:#fff;border-color:#dce5dc;box-shadow:0 1px 2px #24402b0d}.trace-practice{background:#fff;border:1px solid #e1e8e0;border-radius:20px;flex-direction:column;flex:1;justify-content:space-between;min-height:0;padding:12px 18px;display:flex;box-shadow:0 4px 20px #304d3508}.trace-practice-heading{flex-shrink:0;justify-content:space-between;align-items:center;gap:10px;display:flex}.trace-practice-tools{flex-direction:column;flex-shrink:0;align-items:flex-end;gap:6px;display:flex}.trace-practice-heading h2{font-size:15px;font-weight:750}.trace-progress{color:#42815f;background:#edf5ed;border-radius:16px;flex-shrink:0;padding:5px 10px;font-size:11px;font-weight:700}.trace-board-layout{flex:1;justify-content:center;align-items:center;gap:20px;min-height:0;padding-block:6px;display:flex}.trace-guide{background:#f8faf7;border-radius:16px;flex-shrink:0;width:310px;padding:10px 14px}.trace-guide h3{color:#7b8984;text-align:center;margin-bottom:6px;font-size:12px;font-weight:700}.letter-trace-page .trace-guide>div{max-width:none;box-shadow:none;background:0 0;border:0;padding:0}.letter-trace-page .trace-guide-preview{height:120px}.letter-trace-page .trace-stroke-card{width:62px;height:62px}.letter-trace-page .trace-guide .overflow-hidden{box-shadow:none;border:1px solid #dce5dc;border-radius:12px}.trace-canvas{flex:1;justify-content:center;align-items:center;min-width:0;max-width:660px;height:100%;max-height:100%;display:flex}.trace-canvas>div{flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;display:flex}.trace-canvas>div>div.touch-none{box-shadow:none;width:auto;max-width:100%;height:auto;max-height:min(58vh,480px);aspect-ratio:inherit;border:1px solid #e0e7df;border-radius:18px}.trace-actions{border-top:1px solid #edf0eb;flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;padding-top:8px;display:flex}.trace-nav{border:1px solid #dce5dc;border-radius:10px;justify-content:center;align-items:center;gap:8px;min-width:110px;min-height:38px;padding:8px 14px;font-size:12px;font-weight:700;display:inline-flex}.trace-nav:hover{background:#f3f7f1}.trace-nav.trace-next{color:#fff;background:#377a61;border-color:#377a61}.trace-nav.trace-next:hover{background:#28654e}.trace-quick-actions{gap:8px;display:flex}.word-trace-page .trace-actions{flex-wrap:wrap}.word-trace-page .trace-word-form,.word-trace-page .trace-word-form input{min-width:0}.word-trace-page .trace-word-form button{flex-shrink:0}.word-trace-page .trace-board-layout>div{min-width:0}@media (max-width:600px){.word-trace-page .trace-word-form{flex-basis:100%}}.trace-modal-backdrop{z-index:100;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#152f284d;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.trace-modal{background:#fff;border-radius:24px;width:100%;max-width:520px;max-height:90dvh;padding:24px;overflow-y:auto;box-shadow:0 24px 80px #152f2826}.trace-modal-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px;display:flex}.trace-modal-heading h2{font-size:18px;font-weight:800}.trace-alphabet{grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;display:grid}.trace-alphabet button{background:#f6f8f4;border:1px solid #e1e8df;border-radius:12px;justify-content:center;align-items:baseline;gap:3px;padding-block:10px;display:flex}.trace-alphabet strong{font-size:20px}.trace-alphabet small{color:#7b8984;font-size:12px}.trace-alphabet button[aria-pressed=true]{color:#27664f;background:#e0efdf;border-color:#70a681}@media (min-width:1024px){.trace-canvas{max-width:min(560px,max(280px,135dvh - 459px))}}@media (max-width:1023px){.letter-trace-page{height:auto;min-height:100dvh;max-height:none;overflow-y:auto}.trace-controls{flex-wrap:wrap;gap:10px}.trace-modes,.trace-modes button{flex:1}.trace-board-layout{flex-direction:column;gap:14px}.trace-guide{width:100%;max-width:560px;padding:10px}.trace-guide h3{margin-bottom:6px}.trace-guide>div{max-width:none}.trace-canvas{width:100%;max-width:560px}}@media (max-width:600px){.letter-trace-page{padding:0}.trace-workspace{padding:0 10px 10px}.trace-header{gap:8px;min-height:50px}.trace-heading{gap:8px}.trace-heading h1{font-size:15px}.trace-heading p,.trace-fullscreen,.trace-word-link{display:none!important}.trace-utilities{gap:6px}.trace-controls{gap:10px;margin-bottom:8px}.trace-letter-picker{gap:8px}.trace-letter-symbol{padding:4px 8px;font-size:22px}.trace-letter-picker>svg{display:none}.trace-segment button{padding:6px 8px;font-size:11px}.trace-practice-tools,.trace-modes{width:100%}.trace-practice{border-radius:16px;padding:10px}.trace-practice-heading{flex-wrap:wrap;gap:8px}.trace-practice-heading h2{font-size:14px}.trace-practice-heading p{font-size:11px}.trace-board-layout{padding-block:8px}.trace-guide{padding:8px}.trace-guide h3{margin-bottom:6px;font-size:11px}.letter-trace-page .trace-guide-content{flex-direction:row;gap:8px}.letter-trace-page .trace-guide-preview{height:70px}.letter-trace-page .trace-guide-divider{width:1px;height:70px}.letter-trace-page .trace-stroke-card{border-radius:8px;width:38px;height:38px;padding:2px}.trace-actions{gap:8px;padding-top:8px}.trace-nav{gap:6px;min-width:0;min-height:34px;padding:8px;font-size:11px}.trace-quick-actions{gap:6px}.letter-trace-page .trace-quick-actions .trace-icon{width:34px;height:34px}.trace-alphabet{grid-template-columns:repeat(5,minmax(0,1fr))}.trace-modal{padding:16px}}.trace-modal-save-btn{color:#fff;text-align:center;cursor:pointer;background:#377a61;border:none;border-radius:12px;width:100%;margin-top:16px;padding:10px 16px;font-size:13px;font-weight:700;transition:background .15s;display:block}.trace-modal-save-btn:hover{background:#28654e}
