body{background:#f4f0e8}header{height:66px;padding:12px 26px;background:#fffdf9;border-color:#e4d8c6}main{max-width:none;padding:0;display:grid;grid-template-columns:252px minmax(0,1fr);align-items:start}.study-rail{position:sticky;top:0;max-height:100dvh;overflow-y:auto;padding:22px 16px;background:#f4f0e8;border-right:1px solid #e4d8c6;scrollbar-width:thin}.rail-title{font-size:12px;letter-spacing:.13em;color:#947238;font-weight:750;margin:0 8px 14px}.study-rail #nav{display:flex;flex-direction:column;gap:7px;margin:0;padding:0;position:static}.study-rail button{border-radius:10px;background:#fffdf9;border:1px solid #e1d3bd;color:#3d413c}.study-rail #nav button{text-align:left;width:100%;white-space:normal;padding:12px 13px;font-size:14px;font-weight:600}.study-rail button.active{background:#1b6c63;color:white;border-color:#1b6c63}.study-rail button:hover{background:#e4eee5}.study-rail button.active:hover{background:#15564f}.study-rail h3{font-size:12px;letter-spacing:.03em;color:#83755e;margin:20px 4px 10px}.study-rail .exercise-groups,.study-rail .translation-subtabs{display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:0;background:none;margin:0}.study-rail .exercise-groups strong{display:none}.study-rail .exercise-groups button,.study-rail .translation-subtabs button{text-align:left;font-size:13px;padding:9px 11px}.study-rail .rail-numbers{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:0!important}.study-rail .rail-numbers button{padding:0;min-width:0;height:34px;border-radius:50%;font-size:12px}.study-content{min-width:0;padding:28px 30px;max-width:1500px;width:100%;margin:0 auto}.study-heading{border-bottom:1px solid #e4d8c6;margin-bottom:25px;padding-bottom:18px}.study-heading h1{font-size:30px!important;margin:6px 0 8px}.study-heading p{margin:0;font-size:14px}#app{background:#fffdf9;border:1px solid #e6d9c5;border-radius:16px;padding:26px;min-height:65vh}#app>.badge:empty{display:none}.card,.panel{background:#fff;border-color:#e4dfd3}#app details{scroll-margin-top:20px}.study-content .footer{padding-bottom:12px}.sentence-home{font-size:12px}.study-rail button:focus-visible{outline:3px solid #87b7aa;outline-offset:2px}@media(min-width:1700px){main{grid-template-columns:270px minmax(0,1fr)}}@media(max-width:900px){main{grid-template-columns:205px minmax(0,1fr)}.study-rail{padding:18px 12px}.study-content{padding:22px 18px}#app{padding:20px}.study-rail .rail-numbers{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:600px){header{height:auto;padding:12px 14px}.brand{font-size:12px}.sentence-home{font-size:9px;padding:6px!important}main{display:block}.study-rail{position:relative;max-height:none;border-right:0;border-bottom:1px solid #e4d8c6;padding:14px}.rail-title{margin-bottom:9px}.study-rail #nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.study-rail #nav button{font-size:12px;padding:9px}.study-rail .exercise-groups,.study-rail .translation-subtabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.study-rail .rail-numbers{grid-template-columns:repeat(8,minmax(0,1fr))}.study-content{padding:18px 12px}.study-heading h1{font-size:26px!important}#app{padding:16px}.study-rail h3{margin-top:14px}.study-rail .rail-numbers button{height:32px}}
main.has-right{grid-template-columns:230px minmax(0,1fr) 250px}.study-right{position:sticky;top:16px;max-height:calc(100dvh - 32px);overflow-y:auto;padding:18px 15px;margin:22px 18px 22px 0;background:#fffdf9;border:1px solid #e4d8c6;border-radius:14px;scrollbar-width:thin}.study-right[hidden]{display:none}.study-right h3{font-size:12px;color:#947238;letter-spacing:.06em;margin:0 0 15px}.rail-group{border-bottom:1px solid #e4d8c6;padding:0 0 12px;margin:0 0 12px}.rail-group:last-child{border:0;margin-bottom:0;padding-bottom:0}.rail-group>summary{cursor:pointer;font-size:14px;font-weight:650;padding:10px 2px;color:#3d413c}.rail-group[open]>summary{color:#1b6c63}.rail-caption{font-size:12px;color:#83755e;margin:4px 0 10px}.study-right .rail-numbers{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:0!important}.study-right .rail-numbers button{height:33px;padding:0;min-width:0;font-size:12px;border-radius:50%;border-color:#dac9ae;background:#fffdf9;color:#625944}.study-right .rail-numbers button.active{background:#1b6c63;color:#fff;border-color:#1b6c63}.study-right .rail-numbers button:hover{background:#e4eee5;color:#163c40}.study-right summary:focus-visible{outline:3px solid #87b7aa;outline-offset:2px}.has-right .study-content{padding:28px 22px}@media(max-width:1100px) and (min-width:761px){main.has-right{grid-template-columns:185px minmax(0,1fr) 200px}.study-right{padding:14px 10px;margin-right:12px}.study-right .rail-numbers{grid-template-columns:repeat(4,minmax(0,1fr))}.has-right .study-content{padding:22px 14px}}@media(max-width:760px){main.has-right{display:grid;grid-template-columns:1fr}.study-rail{position:relative;max-height:none;border-right:0;border-bottom:1px solid #e4d8c6;grid-row:1}.study-rail #nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.study-right{position:relative;top:auto;max-height:none;margin:14px 12px 0;grid-row:2}.has-right .study-content{grid-row:3;padding:18px 12px}.study-right .rail-numbers{grid-template-columns:repeat(8,minmax(0,1fr))}}
.study-right .rail-numbers button.completed{background:#f8df9b;border-color:#c3912e;color:#624307;font-weight:750}.study-right .rail-numbers button.completed.active{background:#f8df9b;color:#624307;border:2px solid #1b6c63;box-shadow:0 0 0 2px #1b6c6324}.study-right .rail-numbers button.completed:hover{background:#f2d17c;color:#624307}.rail-legend{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:11px;color:#75664e;margin:16px 0 7px}.done-dot,.current-dot{display:inline-block;width:11px;height:11px;border-radius:50%;background:#f8df9b;border:1px solid #c3912e}.current-dot{background:#1b6c63;border-color:#1b6c63;margin-left:5px}.rail-save-status{font-size:11px;color:#83755e;line-height:1.6;margin:8px 0 0}
.practice-mode-tabs{display:flex;gap:8px;margin:0 0 24px;padding-bottom:15px;border-bottom:1px solid #e4d8c6;flex-wrap:wrap}.practice-mode-tabs button{flex:1;min-width:190px;font-weight:650}.component-method{margin-left:12px;border-left:3px solid #aa8ab9!important;background:#f5eff9!important}@media(max-width:600px){.practice-mode-tabs button{min-width:0;font-size:13px;padding:10px 7px}.component-method{margin-left:3px}}

/* Cac buoc luon mo, chi dap an dong mo. */
.expansion-step>.expansion-step-title{cursor:default;border-bottom:1px solid #cfdaea;margin-bottom:10px;color:#294c77}
.expansion-step textarea:focus{outline:3px solid #82a9c1;outline-offset:2px;background:#fff}
.step-keys-hint{font-size:13px;color:#6c7f7b;margin:6px 0 0}.step-keys-hint kbd{font:12px system-ui;border:1px solid #c9d3cc;border-bottom-width:2px;border-radius:5px;padding:1px 6px;background:#fff}
@media(hover:none){.step-keys-hint{display:none}}
