/* Scoped Learning Hub styles. Palette matches VNJP Minna Course SRS. */
.lh-play, .lh-pause { width: 18px; height: 18px; flex: 0 0 18px; vertical-align: middle; }
button .lh-pause, button.is-playing .lh-play { display: none; }
button.is-playing .lh-pause { display: inline-block; }
button.is-playing:has(.lh-pause) { color: #087f8c; }
/* Use a Vietnamese-capable font before platform-dependent UI fonts, including dialogs. */
.lh-app{--lh-font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;--lh-ink:#1f2937;--lh-muted:#6b7280;--lh-primary:#e11d48;--lh-primary-hover:#be123c;--lh-primary-soft:#fff1f2;--lh-border:#e5e7eb;--lh-bg:#f3f4f6;--lh-surface-muted:#f9fafb;--lh-purple:#7c3aed;--lh-green:#16a34a;--lh-amber:#d97706;--lh-blue:#2563eb;--lh-focus:#3b82f6;--lh-danger:#dc2626;--lh-white:#fff;min-height:100vh;background:var(--lh-bg);color:var(--lh-ink);font:15px/1.6 var(--lh-font-family);isolation:isolate;text-align:left}
.lh-app *,.lh-app *::before,.lh-app *::after{box-sizing:border-box}.lh-app [hidden]{display:none!important}.lh-app h1,.lh-app h2,.lh-app h3,.lh-app p{margin:0}.lh-app a{color:inherit;text-decoration:none}.lh-app button,.lh-app input,.lh-app textarea,.lh-app select{font:inherit}.lh-app button{cursor:pointer}.lh-app button:disabled{cursor:not-allowed;opacity:.55}.lh-app button,.lh-app input,.lh-app select,.lh-app textarea{box-shadow:none}.lh-app button:focus-visible,.lh-app a:focus-visible,.lh-app input:focus-visible,.lh-app textarea:focus-visible,.lh-app select:focus-visible,.lh-app summary:focus-visible{outline:3px solid var(--lh-primary);outline-offset:3px}.lh-app input:focus-visible,.lh-app textarea:focus-visible,.lh-app select:focus-visible{outline-color:var(--lh-focus)}.lh-app button{letter-spacing:normal;text-transform:none}.lh-app h1{font-size:clamp(26px,2.4vw,36px);font-weight:730;letter-spacing:-1px;line-height:1.3}.lh-app h2{font-size:22px;font-weight:700;letter-spacing:-.4px;line-height:1.4}.lh-app h3{font-size:18px;line-height:1.5;font-weight:650}.lh-layout{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh}.lh-sidebar{background:var(--lh-white);border-right:1px solid var(--lh-border);padding:34px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;min-height:550px}.lh-brand{display:flex;align-items:center;gap:12px;font-size:17px;font-weight:800;letter-spacing:.5px}.lh-brand-mark{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex-shrink:0;border-radius:14px;background:var(--lh-primary);color:white;font-size:24px;letter-spacing:-5px;padding-right:4px}.lh-brand-mark span{transform:translateY(3px);color:#ffe4e6}.lh-brand-logo{display:block;width:44px;height:44px;flex-shrink:0;border-radius:50%;object-fit:contain}.lh-brand small{display:block;font-size:11px;color:var(--lh-muted);font-weight:500;letter-spacing:0;margin-top:1px}.lh-sidebar-label{margin:47px 12px 14px;font-size:10px;letter-spacing:1.4px;color:var(--lh-muted);font-weight:750}.lh-nav{display:flex;flex-direction:column;gap:7px}.lh-nav-item{display:flex;align-items:center;gap:13px;padding:13px 14px;width:100%;border:0;background:transparent;color:var(--lh-muted);border-radius:11px;font-size:14px;font-weight:550;text-align:left;white-space:nowrap}.lh-nav-item>span{font-size:23px;line-height:1;width:22px;color:var(--lh-muted)}.lh-nav-item:hover{background:var(--lh-primary-soft);color:var(--lh-primary)}.lh-nav-item[aria-current=page]{font-weight:750;background:var(--lh-primary-soft);color:var(--lh-primary)}.lh-nav-item[aria-current=page]>span{color:var(--lh-primary)}.lh-nav-item b{font-size:11px;padding:1px 7px;border-radius:9px;color:var(--lh-white);margin-left:auto;background:var(--lh-primary)}.lh-nav-item>.lh-nav-label{width:auto;font-size:inherit;line-height:inherit;color:inherit}.lh-sidebar-bottom{margin-top:auto;padding:40px 12px 4px}.lh-sidebar-bottom p{font-size:12px;line-height:1.8;color:var(--lh-muted)}.lh-sidebar-bottom strong{font-weight:550;color:var(--lh-muted)}.lh-small-art{height:64px;display:flex;align-items:center;margin-bottom:14px}.lh-small-art span{display:flex;align-items:center;justify-content:center;width:42px;height:48px;border:1px solid var(--lh-border);transform:rotate(-14deg);border-radius:8px;font-size:23px;background:#f3e8ff;color:var(--lh-purple);border-color:#e9d5ff}.lh-small-art span:nth-child(2){transform:rotate(8deg);margin-left:-5px;z-index:1;background:#dcfce7;color:#15803d;border-color:#bbf7d0}.lh-small-art span:nth-child(3){transform:rotate(23deg);margin-left:-5px;background:#dbeafe;color:var(--lh-blue);border-color:#bfdbfe}.lh-back{display:inline-block;color:var(--lh-muted)!important;font-size:12px;margin-top:24px}.lh-back-button{border:0;background:transparent;padding:0;margin:0 0 16px!important}.lh-workspace{min-width:0}.lh-topbar{display:flex;justify-content:space-between;align-items:center;height:85px;border-bottom:1px solid var(--lh-border);padding:0 46px;gap:15px;background:var(--lh-white)}.lh-topbar-label{font-size:10px;letter-spacing:1.6px;font-weight:700;color:var(--lh-muted)}.lh-topbar-label>span:first-child{padding:0 14px;color:var(--lh-muted)}.lh-topbar-label>span:last-child{letter-spacing:0;font-size:12px;color:var(--lh-muted);font-weight:500}.lh-account{display:flex;align-items:center;gap:10px}.lh-avatar{display:flex;align-items:center;justify-content:center;width:33px;height:33px;border-radius:50%;font-weight:700;font-size:13px;background:var(--lh-primary-soft);color:var(--lh-primary)}.lh-account-name{font-size:12px;font-weight:600;max-width:150px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.lh-main{padding:39px 46px 48px;max-width:1450px;margin:auto;outline:none;min-height:calc(100vh - 140px)}.lh-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:29px}.lh-eyebrow{font-size:10px;font-weight:750;letter-spacing:1.8px;color:var(--lh-muted);margin-bottom:9px!important}.lh-subtitle{color:var(--lh-muted);font-size:13px;line-height:1.8;margin-top:10px!important}.lh-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.lh-btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:10px 17px;border-radius:9px;border:1px solid transparent;font-weight:650;font-size:12px;line-height:1.5;text-decoration:none!important;transition:background .15s,transform .15s;white-space:normal}.lh-btn:hover{transform:translateY(-1px)}.lh-btn-primary{background:var(--lh-primary);color:var(--lh-white)!important;border-color:var(--lh-primary)}.lh-btn-primary:hover{background:var(--lh-primary-hover)}.lh-btn-secondary{background:var(--lh-white);border-color:var(--lh-border);color:var(--lh-ink)!important}.lh-btn-secondary:hover{background:var(--lh-surface-muted)}.lh-btn-plain{background:transparent;border-color:transparent;padding:8px 10px;min-height:36px;color:var(--lh-primary)!important}.lh-btn-plain:hover{background:var(--lh-primary-soft)}.lh-btn-danger{background:#fef2f2;color:#b91c1c!important;border-color:#fecaca}.lh-btn-light{background:var(--lh-primary);color:var(--lh-white)!important;border-color:var(--lh-primary)}.lh-btn-hero{background:var(--lh-white);color:var(--lh-ink)!important;border-color:var(--lh-border)}.lh-btn-hero:hover{background:var(--lh-primary-soft);color:var(--lh-primary)!important}.lh-hero{border-radius:18px;display:flex;align-items:center;justify-content:space-between;padding:36px 42px;gap:24px;margin-bottom:23px;overflow:hidden;position:relative;background:linear-gradient(108deg,#fff 58%,#fff1f2);color:var(--lh-ink);border:1px solid var(--lh-border)}.lh-hero::after{content:"";position:absolute;right:-65px;bottom:-125px;border:1px solid var(--lh-border);width:440px;height:440px;border-radius:50%;pointer-events:none;border-color:rgba(225,29,72,.06)}.lh-hero-copy{max-width:580px;z-index:1}.lh-hero-tag{display:inline-block;font-size:9px;letter-spacing:1.7px;font-weight:750;margin-bottom:14px;color:var(--lh-primary)}.lh-hero h2{font-size:clamp(24px,2.2vw,31px);font-weight:600;letter-spacing:-.65px;margin-bottom:11px;color:var(--lh-ink)}.lh-hero p{color:var(--lh-muted);font-size:13px;max-width:430px;line-height:1.9;margin-bottom:22px}.lh-daily-goal{flex:0 0 168px;position:relative;z-index:1;text-align:center}.lh-goal-ring{width:146px;height:146px;padding:6px;border-radius:50%;margin:auto;background:conic-gradient(var(--lh-primary) var(--progress),#ffe4e6 0)}.lh-goal-ring>div{border-radius:50%;width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;background:var(--lh-white)}.lh-goal-ring strong{font-size:32px;line-height:1.4;letter-spacing:-1px;color:var(--lh-ink)}.lh-goal-ring small{font-size:16px;font-weight:400;color:var(--lh-muted)}.lh-goal-ring span{font-size:10px;color:var(--lh-muted)}.lh-goal-link{background:none;border:0;font-size:10px;padding:10px 0 0;color:var(--lh-primary)}.lh-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:35px}.lh-metric{display:flex;align-items:center;gap:13px;padding:21px 18px;border:1px solid var(--lh-border);border-radius:13px;background:var(--lh-white)}.lh-metric-icon{display:flex;width:40px;height:40px;align-items:center;justify-content:center;border-radius:10px;font-size:24px;flex-shrink:0;background:#f3e8ff;color:var(--lh-purple)}.lh-metric:nth-child(2) .lh-metric-icon{background:#dcfce7;color:var(--lh-green)}.lh-metric:nth-child(3) .lh-metric-icon{background:#fef3c7;color:var(--lh-amber)}.lh-metric:nth-child(4) .lh-metric-icon{background:#dbeafe;color:var(--lh-blue)}.lh-metric strong{display:block;font-size:25px;line-height:1.3;letter-spacing:-.5px}.lh-metric div>span{font-size:11px;color:var(--lh-muted)}.lh-section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 0 18px}.lh-section-heading .lh-eyebrow{margin-bottom:5px!important;font-size:9px}.lh-section-heading h2{font-size:22px}.lh-notebook-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.lh-notebook{position:relative;display:flex;flex-direction:column;background:white;border:1px solid var(--lh-border);border-radius:13px;padding:22px 21px 12px;min-width:0;overflow:hidden;transition:box-shadow .2s,transform .2s}.lh-notebook::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:var(--notebook-color)}.lh-notebook:hover{box-shadow:0 8px 24px rgba(31,41,55,.12);transform:translateY(-2px)}.lh-notebook-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:8px}.lh-book-symbol{font-size:26px;line-height:1;color:var(--notebook-color);background:var(--lh-surface-muted);padding:10px 12px;border-radius:11px}.lh-badge{display:inline-block;font-size:9px;line-height:1.5;color:var(--lh-muted);background:var(--lh-surface-muted);border:1px solid var(--lh-border);border-radius:5px;padding:3px 7px;white-space:nowrap}.lh-title-button{border:0;background:transparent;color:inherit;font:inherit!important;text-align:left;padding:0;overflow-wrap:anywhere}.lh-title-button:hover{color:var(--lh-primary)}.lh-folder{color:var(--lh-muted);font-size:10px;letter-spacing:.3px;margin:0 0 4px!important}.lh-card-description{color:var(--lh-muted);font-size:11px;line-height:1.8;margin-top:7px!important;margin-bottom:20px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:38px}.lh-notebook-meta{display:flex;align-items:center;gap:12px;font-size:10px;color:var(--lh-muted);margin-top:auto;flex-wrap:wrap}.lh-due{color:#b45309!important}.lh-card-bottom{margin-top:14px;padding-top:9px;border-top:1px solid var(--lh-border);display:flex;justify-content:space-between;align-items:center}.lh-card-bottom .lh-btn{padding-left:0;font-size:10px}.lh-card-bottom .lh-btn:last-child{padding-right:0}.lh-footer{text-align:center;font-size:10px;color:var(--lh-muted);padding:15px 20px 26px;letter-spacing:.25px}.lh-toolbar{display:flex;gap:12px;align-items:flex-end;margin-bottom:23px;flex-wrap:wrap}.lh-search{display:flex;align-items:center;gap:10px;background:var(--lh-white);border:1px solid var(--lh-border);padding:0 14px;border-radius:9px;min-height:44px;flex:1 1 220px}.lh-search>span{font-size:25px;color:var(--lh-muted)}.lh-search input{border:0!important;outline:none;min-width:0;width:100%;background:transparent!important;padding:9px 0;color:var(--lh-ink);font-size:13px}.lh-search:focus-within{outline:2px solid var(--lh-focus);outline-offset:2px}.lh-search input:focus-visible{outline:0}.lh-filter{display:flex;flex-direction:column;gap:4px;min-width:115px}.lh-filter>span{font-size:10px;color:var(--lh-muted)}.lh-filter select{min-height:44px;border:1px solid var(--lh-border);border-radius:9px;background:white;padding:8px 11px;color:var(--lh-ink);font-size:12px}.lh-pagination{display:flex;justify-content:center;align-items:center;gap:20px;margin-top:28px}.lh-pagination>span{font-size:12px;color:var(--lh-muted)}.lh-notebook-controls{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;padding:20px 0;margin:-5px 0 16px;border-top:1px solid var(--lh-border)}.lh-item-list{background:white;border:1px solid var(--lh-border);border-radius:13px;overflow:hidden}.lh-item{display:grid;grid-template-columns:minmax(140px,1fr) minmax(160px,2fr) auto;gap:22px;padding:23px 25px;align-items:start;border-bottom:1px solid var(--lh-border)}.lh-item:last-child{border:0}.lh-item-word h3{font-size:23px;font-weight:600;overflow-wrap:anywhere;white-space:pre-wrap}.lh-reading{display:block;color:var(--lh-muted);font-size:12px;margin-top:3px}.lh-type{margin-top:10px}.lh-item-meaning{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.lh-item-meaning>p{margin:1px 0 8px}.lh-example{font-size:12px;line-height:1.8;color:var(--lh-muted);border-left:2px solid var(--lh-border);padding-left:10px;margin:10px 0}.lh-example small{display:block;font-size:11px;color:var(--lh-muted);margin-top:3px}.lh-note{border-radius:7px;padding:10px 12px;font-size:11px;margin:10px 0!important;background:#eff6ff;color:#1e40af}.lh-item-actions{display:flex;gap:3px;align-items:center;justify-content:flex-end;flex-wrap:wrap;max-width:170px}.lh-item-actions .lh-btn{font-size:10px;padding:6px 9px;min-height:33px}.lh-icon-link{font-size:17px;padding:4px 8px}.lh-result-count{font-size:11px;color:var(--lh-muted);margin:-8px 0 15px}.lh-empty{text-align:center;background:var(--lh-white);border:1px dashed var(--lh-border);border-radius:15px;padding:48px 25px;max-width:900px;margin:20px auto}.lh-empty-icon{display:flex;align-items:center;justify-content:center;margin:0 auto 18px;width:62px;height:62px;font-size:32px;border-radius:18px;background:var(--lh-primary-soft);color:var(--lh-primary)}.lh-empty h3{font-size:20px;margin:0 0 8px}.lh-empty p{font-size:13px;line-height:1.8;color:var(--lh-muted);max-width:520px;margin:0 auto 22px}.lh-empty>.lh-btn{margin:4px}.lh-muted{color:var(--lh-muted);font-size:12px;line-height:1.8}.lh-panel{padding:27px 30px;margin-bottom:24px;background:var(--lh-white);border:1px solid var(--lh-border);border-radius:14px}.lh-panel>h2{margin-bottom:10px}.lh-activity{margin-top:20px}.lh-chart{display:flex;gap:5px;height:185px;align-items:flex-end;overflow:hidden;padding-top:10px}.lh-chart-day{flex:1;min-width:5px;text-align:center;display:flex;flex-direction:column;height:100%;justify-content:flex-end;align-items:center}.lh-chart-track{height:120px;max-width:34px;width:75%;display:flex;align-items:flex-end;border-bottom:1px solid var(--lh-border)}.lh-chart-track>span{display:block;width:100%;border-radius:4px 4px 0 0;background:var(--lh-primary)}.lh-chart-day:nth-child(2n) .lh-chart-track>span{background:#fb7185}.lh-chart-day small{font-size:8px;color:var(--lh-muted);margin-top:6px}.lh-chart-number{font-size:8px;color:var(--lh-muted);min-height:13px}.lh-activity>p{margin-top:14px}.lh-details{border-top:1px solid var(--lh-border);margin-top:19px;padding-top:15px;font-size:12px}.lh-details summary{cursor:pointer;color:var(--lh-muted)}.lh-table-wrap{overflow:auto}.lh-app table{border-collapse:collapse;width:100%;font-size:12px;margin-top:16px}.lh-app th,.lh-app td{text-align:left;padding:10px 13px;border-bottom:1px solid var(--lh-border)}.lh-app th{color:var(--lh-muted);background:var(--lh-surface-muted)}.lh-weak-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 30px;margin-top:13px}.lh-weak-list>div{display:flex;justify-content:space-between;gap:15px;padding:15px 0;border-bottom:1px solid var(--lh-border)}.lh-weak-list strong{font-size:17px;font-weight:500;overflow-wrap:anywhere}.lh-weak-list span{font-size:11px;white-space:nowrap;color:#b45309}.lh-report{display:flex;justify-content:space-between;gap:20px;padding:22px 0;border-bottom:1px solid var(--lh-border);align-items:center}.lh-report:last-child{border:0}.lh-report>div:first-child{min-width:0}.lh-report h3{font-size:16px;overflow-wrap:anywhere}.lh-report p{font-size:12px;color:var(--lh-muted);margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}.lh-report small{font-size:10px;color:var(--lh-muted)}.lh-report .lh-actions{flex-shrink:0}.lh-dialog{max-width:600px;width:calc(100% - 32px);max-height:90vh;padding:0;border:1px solid var(--lh-border);border-radius:16px;box-shadow:0 25px 80px rgba(31,41,55,.12);color:var(--lh-ink);font:14px/1.6 var(--lh-font-family);background:var(--lh-white)}.lh-dialog::backdrop{backdrop-filter:blur(3px);background:rgba(31,41,55,.45)}.lh-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:21px 25px;border-bottom:1px solid var(--lh-border);position:sticky;top:0;z-index:2;background:var(--lh-white)}.lh-dialog-header h2{font-size:20px}.lh-dialog-header button{font-size:24px;line-height:1;padding:0 9px;min-height:30px}.lh-dialog-content{padding:24px 26px 27px}.lh-dialog-content>p{margin-bottom:20px;font-size:13px;color:var(--lh-muted)}.lh-field{display:flex;flex-direction:column;gap:7px;margin-bottom:18px}.lh-field>span{font-size:12px;font-weight:650;color:var(--lh-ink)}.lh-field input,.lh-field textarea,.lh-field select{padding:11px 12px;border:1px solid var(--lh-border);background:var(--lh-white)!important;border-radius:8px;color:var(--lh-ink);width:100%;font-size:14px;line-height:1.6;margin:0}.lh-field textarea{resize:vertical;min-height:70px}.lh-field input[type=color]{padding:4px;height:44px;max-width:100px}.lh-field input[readonly]{background:var(--lh-surface-muted)!important;color:var(--lh-muted);font-size:12px}.lh-form-columns{display:grid;grid-template-columns:2fr 1fr;gap:18px}.lh-hint{font-size:11px;line-height:1.8;color:var(--lh-muted);margin:8px 0 18px!important}.lh-dialog-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.lh-form-error,.lh-review-error{font-size:12px;white-space:pre-wrap;line-height:1.7;color:var(--lh-danger)}.lh-form-error:empty,.lh-review-error:empty{display:none}.lh-review-error{max-width:560px;margin:20px auto!important}.lh-danger-zone{border-top:1px solid var(--lh-border);margin-top:25px;padding-top:20px}.lh-check{display:flex;align-items:flex-start;gap:9px;font-size:12px;margin:15px 0}.lh-check input{margin-top:4px;width:16px;height:16px}.lh-save-preview{padding:15px 18px;border-radius:9px;background:var(--lh-primary-soft)}.lh-save-preview strong{display:block;font-size:24px;font-weight:500}.lh-save-preview span{display:block;font-size:12px;margin-top:5px}.lh-toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,15px);border-radius:11px;color:var(--lh-white);box-shadow:0 6px 28px rgba(31,41,55,.12);padding:13px 22px;font-size:12px;z-index:99999;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:min(560px,calc(100% - 30px));width:max-content;background:var(--lh-ink)}.lh-toast.is-visible{opacity:1;transform:translate(-50%,0)}.lh-toast.is-error{background:#b91c1c}.lh-loading,.lh-initial{display:flex;justify-content:center;align-items:center;gap:12px;min-height:280px;color:var(--lh-muted);font-size:13px}.lh-loader{display:inline-block;width:24px;height:24px;border:2px solid var(--lh-border);border-radius:50%;animation:lh-spin .8s linear infinite;border-top-color:var(--lh-primary)}@keyframes lh-spin{to{transform:rotate(360deg)}}.lh-skip{position:fixed;left:20px;top:-70px;background:var(--lh-white);padding:10px 20px;border:2px solid var(--lh-border);z-index:99999;border-radius:8px}.lh-skip:focus{top:15px}.lh-review-header{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;color:var(--lh-muted);letter-spacing:1px}.lh-review-progress{height:4px;background:var(--lh-surface-muted);max-width:760px;margin:22px auto 35px;border-radius:5px;overflow:hidden}.lh-review-progress>span{height:100%;display:block;transition:width .2s;background:var(--lh-primary)}.lh-study-card{background:white;border:1px solid var(--lh-border);border-radius:20px;max-width:760px;margin:0 auto;padding:38px 42px;text-align:center;min-height:330px;box-shadow:0 8px 30px rgba(31,41,55,.12)}.lh-study-card>.lh-eyebrow{font-size:9px}.lh-app .lh-study-front{font-size:clamp(27px,4vw,50px);font-weight:550;margin:25px 0 4px;letter-spacing:1px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.lh-study-reading{font-size:16px;color:var(--lh-muted);margin:5px 0 15px!important}.lh-recall-hint{margin:35px auto 8px!important;font-size:11px}.lh-study-back{border-top:1px solid var(--lh-border);margin-top:24px;padding-top:24px;white-space:pre-wrap;overflow-wrap:anywhere}.lh-study-back h2{font-size:24px;line-height:1.8;font-weight:550;color:var(--lh-ink)}.lh-study-back>p{margin:13px 0;font-size:14px}.lh-study-back .lh-muted{font-size:12px}.lh-review-actions{text-align:center;margin:28px auto;max-width:760px}.lh-review-actions>p:first-child{font-size:12px;color:var(--lh-muted);margin-bottom:17px}.lh-keyboard-hint{display:block;color:var(--lh-muted);font-size:10px;margin:12px 0}.lh-ratings{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.lh-rating{padding:14px 12px;background:var(--lh-white);border:1px solid var(--lh-border);border-radius:11px;position:relative;color:#15803d}.lh-rating strong{display:block;font-size:15px}.lh-rating span{display:block;font-size:10px;margin-top:4px;color:var(--lh-muted)}.lh-rating kbd{display:block;margin:6px auto 0;width:18px;border-radius:4px;font-size:9px;background:var(--lh-surface-muted);color:var(--lh-muted);font-family:inherit}.lh-rating-1{border-color:#fecaca;color:#b91c1c}.lh-rating-2{border-color:#fde68a;color:#b45309}.lh-rating-4{border-color:#bfdbfe;color:#1d4ed8}.lh-rating:hover{background:var(--lh-surface-muted)}.lh-quiz-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:30px;text-align:left}.lh-quiz-option{display:flex;align-items:center;gap:11px;background:var(--lh-white);border:1px solid var(--lh-border);border-radius:10px;padding:14px 17px;font-size:14px;text-align:left;overflow-wrap:anywhere;color:var(--lh-ink)}.lh-quiz-option>span{width:24px;height:24px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:var(--lh-surface-muted);border-radius:6px;font-size:10px;color:var(--lh-muted)}.lh-quiz-option:hover{background:#f5f3ff;border-color:#8b5cf6}.lh-app .lh-quiz-option:disabled{opacity:1}.lh-quiz-option.is-correct{border-color:#22c55e;background:#f0fdf4;color:#15803d}.lh-quiz-option.is-wrong{border-color:#ef4444;background:#fef2f2;color:#b91c1c}.lh-answer-feedback{font-size:12px!important}.lh-answer-feedback.is-correct{color:#15803d}.lh-answer-feedback.is-wrong{color:#b91c1c}.lh-session-finish{max-width:650px;margin:70px auto;text-align:center}.lh-finish-icon{display:flex;width:88px;height:88px;align-items:center;justify-content:center;font-size:45px;border:1px solid var(--lh-border);border-radius:50%;margin:0 auto 28px;color:#15803d;background:#f0fdf4;border-color:#bbf7d0}.lh-session-finish>p{margin:15px auto 18px;font-size:14px;color:var(--lh-muted)}.lh-session-finish .lh-actions{justify-content:center;margin-top:28px}
@media(min-width:1600px){.lh-layout{grid-template-columns:260px minmax(0,1fr)}.lh-sidebar{padding:38px 28px}.lh-main{padding-top:48px}.lh-hero{padding:42px 48px}}
@media(max-width:1180px){.lh-layout{grid-template-columns:205px minmax(0,1fr)}.lh-sidebar{padding:27px 14px}.lh-brand{font-size:14px;gap:9px}.lh-brand-mark,.lh-brand-logo{width:39px;height:39px}.lh-main{padding:30px 26px}.lh-topbar{padding:0 26px}.lh-hero{padding:29px}.lh-notebook-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lh-metric-grid{gap:10px}.lh-metric{padding:16px 13px;gap:9px}.lh-metric-icon{width:31px;height:34px;font-size:20px}.lh-metric strong{font-size:23px}.lh-metric div>span{font-size:10px}.lh-item{grid-template-columns:1fr 1.7fr;gap:15px}.lh-item-actions{grid-column:1/-1;max-width:none;justify-content:flex-end}.lh-report{align-items:flex-start;flex-direction:column}.lh-heading{align-items:flex-start;flex-wrap:wrap}.lh-hero h2{font-size:26px}.lh-daily-goal{flex-basis:145px}.lh-goal-ring{width:128px;height:128px}}
/* Up to 800px the sidebar tabs sit above the page as a 3-column grid (two rows with «Quản lý»), so every tab shows without sideways scrolling. */
@media(max-width:800px){.lh-layout{display:block}.lh-sidebar{position:static;height:auto;min-height:0;padding:18px 22px 0;border-right:0;border-bottom:1px solid var(--lh-border)}.lh-brand{font-size:16px}.lh-brand-mark,.lh-brand-logo{width:38px;height:38px}.lh-brand small{font-size:10px}.lh-sidebar-label,.lh-sidebar-bottom{display:none}.lh-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:13px 0 12px}.lh-nav-item{width:auto;min-width:0;justify-content:center;gap:7px;padding:9px 12px;font-size:12px;border-radius:8px}.lh-nav-item>span{font-size:17px;width:17px}.lh-nav-item b{font-size:9px;padding:0 5px;margin-left:0}.lh-topbar{height:55px;padding:0 22px}.lh-topbar-label{font-size:8px;letter-spacing:1px}.lh-topbar-label>span:first-child{padding:0 7px}.lh-topbar-label>span:last-child{font-size:10px}.lh-account-name{max-width:90px;font-size:10px}.lh-avatar{width:28px;height:28px;font-size:11px}.lh-account{gap:6px}.lh-account .lh-btn{font-size:10px;min-height:31px;padding:6px 8px}.lh-main{padding:28px 22px 35px;min-height:calc(100vh - 230px)}.lh-heading{margin-bottom:22px;gap:14px}.lh-subtitle{font-size:12px}.lh-hero{padding:27px;gap:17px}.lh-hero h2{font-size:25px}.lh-hero p{font-size:12px;margin-bottom:19px;line-height:1.8}.lh-daily-goal{flex-basis:125px}.lh-goal-ring{width:116px;height:116px;padding:5px}.lh-goal-ring strong{font-size:28px}.lh-goal-ring small{font-size:14px}.lh-goal-ring span{font-size:9px}.lh-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:29px}.lh-metric{padding:15px 17px}.lh-metric div>span{font-size:11px}.lh-metric-icon{width:36px;height:36px}.lh-panel{padding:23px}.lh-study-card{padding:29px;min-height:290px}.lh-study-front{margin-top:20px!important}.lh-ratings{gap:8px}.lh-rating{padding:13px 8px}.lh-dialog{max-height:92vh}.lh-dialog-header{padding:18px 22px}.lh-dialog-content{padding:22px}.lh-weak-list{gap:0 22px}}
/* Phones: smaller tab text and «Sổ tay của tôi» shows as «Sổ tay» so three tabs fit per row. */
@media(max-width:520px){.lh-sidebar{padding:15px 16px 0}.lh-app .lh-nav-item{gap:5px;padding:8px 4px;font-size:13px}.lh-nav-item>span{font-size:16px;width:16px}.lh-nav-more{display:none}.lh-main{padding:24px 16px 30px}.lh-topbar{padding:0 16px}.lh-topbar-label>span:last-child{display:none}.lh-account-name,.lh-hide-small{display:none}.lh-account .lh-btn-plain{font-size:15px}.lh-app h1{font-size:26px;letter-spacing:-.75px}.lh-heading>.lh-actions{width:100%}.lh-heading>.lh-actions .lh-btn{flex:1}.lh-eyebrow{font-size:9px}.lh-hero{display:block;padding:27px 23px;border-radius:14px}.lh-hero-copy{max-width:none}.lh-hero h2{font-size:26px;max-width:290px}.lh-hero-tag{font-size:8px;margin-bottom:13px}.lh-hero p{max-width:none}.lh-hero .lh-actions{gap:8px}.lh-hero .lh-btn{font-size:11px;padding:9px 12px}.lh-daily-goal{display:flex;align-items:center;gap:14px;text-align:left;margin-top:24px;padding-top:20px;border-top:1px solid var(--lh-border)}.lh-goal-ring{width:77px;height:77px;margin:0;padding:4px;flex-shrink:0}.lh-goal-ring strong{font-size:23px}.lh-goal-ring small{font-size:12px}.lh-goal-ring span{font-size:7px}.lh-goal-link{font-size:12px;padding:0}.lh-metric-grid{gap:9px}.lh-metric{padding:13px 12px;gap:10px;border-radius:10px}.lh-metric-icon{width:29px;height:32px;font-size:18px}.lh-metric strong{font-size:23px}.lh-metric div>span{font-size:9px}.lh-section-heading h2{font-size:21px}.lh-section-heading .lh-btn{font-size:10px;padding-right:0}.lh-notebook-grid{grid-template-columns:1fr;gap:14px}.lh-notebook{padding:20px 20px 10px}.lh-notebook-top{margin-bottom:10px}.lh-book-symbol{font-size:24px;padding:10px}.lh-card-description{min-height:0;margin-bottom:14px!important;font-size:12px}.lh-notebook h3{font-size:20px}.lh-notebook-meta{font-size:11px}.lh-card-bottom .lh-btn{font-size:11px}.lh-toolbar{gap:9px}.lh-search{flex-basis:100%;min-height:42px}.lh-filter{flex:1;min-width:105px}.lh-toolbar>.lh-btn{min-height:42px;font-size:11px}.lh-filter select{font-size:11px}.lh-item{padding:21px 19px;grid-template-columns:1fr;gap:12px}.lh-item-word{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.lh-item-word h3{font-size:25px;max-width:100%}.lh-reading{font-size:12px;margin:0}.lh-type{margin:0 0 0 auto;font-size:8px}.lh-item-meaning{font-size:13px}.lh-item-meaning>p{margin-top:0}.lh-item-actions{grid-column:auto}.lh-item-actions .lh-btn{font-size:11px}.lh-notebook-controls{gap:13px}.lh-notebook-controls .lh-btn{font-size:10px;padding:9px 11px;min-height:36px}.lh-notebook-controls>.lh-actions:first-child{gap:7px;width:100%;flex-wrap:wrap}.lh-panel{padding:20px 18px}.lh-panel>h2{font-size:20px}.lh-chart{gap:3px}.lh-chart-number{font-size:7px}.lh-chart-day small{font-size:7px}.lh-chart-track{width:85%}.lh-weak-list{grid-template-columns:1fr}.lh-empty{padding:35px 20px}.lh-empty h3{font-size:20px}.lh-empty p{font-size:12px}.lh-empty>.lh-btn{font-size:11px}.lh-dialog{width:calc(100% - 20px);border-radius:13px;max-height:94vh}.lh-dialog-header{padding:17px 18px}.lh-dialog-header h2{font-size:19px}.lh-dialog-content{padding:20px 18px}.lh-dialog-footer .lh-btn{flex:1}.lh-field input,.lh-field textarea,.lh-field select{font-size:16px}.lh-review-header{font-size:8px;letter-spacing:.3px;flex-wrap:wrap}.lh-review-header .lh-btn{font-size:10px;padding-left:0}.lh-review-header .lh-badge{font-size:8px}.lh-review-progress{margin:17px auto 22px}.lh-study-card{padding:25px 19px;border-radius:15px;min-height:285px}.lh-app .lh-study-front{font-size:36px}.lh-study-reading{font-size:14px}.lh-study-back h2{font-size:22px}.lh-review-actions{margin-top:22px}.lh-ratings{gap:6px}.lh-rating{padding:13px 4px;border-radius:8px}.lh-rating strong{font-size:13px}.lh-rating span{font-size:8px}.lh-rating kbd{font-size:8px}.lh-quiz-options{grid-template-columns:1fr;gap:9px;margin-top:23px}.lh-quiz-option{padding:13px 14px;font-size:14px}.lh-session-finish{margin:45px auto}.lh-session-finish h1{font-size:26px}.lh-toast{bottom:15px;font-size:11px;padding:12px 17px}.lh-report .lh-actions{gap:7px}.lh-report .lh-btn{font-size:10px;padding:8px 11px}}
.lh-item-locked{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;background:var(--lh-surface-muted)}.lh-locked-message{flex:1 1 240px}.lh-locked-message p{margin:9px 0 0;font-size:12px;color:var(--lh-muted)}.lh-item-locked .lh-item-actions{max-width:none;flex-shrink:0}
.lh-dialog-notice{padding:12px 14px;margin:0 0 18px!important;border:1px solid var(--lh-border);border-radius:8px;font-size:12px!important;color:#15803d!important;background:#f0fdf4;border-color:#bbf7d0}.lh-dialog-notice.is-error{color:#b91c1c!important;background:#fef2f2;border-color:#fecaca}
@media(prefers-reduced-motion:reduce){.lh-app *{scroll-behavior:auto!important;transition:none!important;animation-duration:2s!important}}

.lh-btn-light:hover{background:var(--lh-primary-hover);border-color:var(--lh-primary-hover)}
.lh-dictionary-search{display:flex;align-items:center;gap:6px;min-width:0;flex:1;max-width:390px;margin:0 0 0 auto;padding:4px 4px 4px 14px;border:1px solid var(--lh-border);border-radius:12px;background:var(--lh-surface-muted);transition:border-color .15s,box-shadow .15s,background .15s}
.lh-dictionary-input{display:flex;align-items:center;gap:9px;flex:1;min-width:0;color:var(--lh-muted)}
.lh-app .lh-dictionary-input input{width:100%;min-width:0;margin:0;padding:7px 0;border:0;background:transparent;color:var(--lh-ink);font-size:13px;line-height:1.5;outline-offset:1px;text-overflow:ellipsis}
.lh-dictionary-input input::placeholder{color:var(--lh-muted);opacity:1}
.lh-topbar-label,.lh-account{flex-shrink:0}
.lh-dictionary-dialog{max-width:1040px;height:min(800px,90vh);overflow:hidden}
.lh-dictionary-dialog[open]{display:flex;flex-direction:column}
.lh-dictionary-dialog .lh-dialog-header{flex-shrink:0}
.lh-dictionary-dialog .lh-dialog-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;flex:1}
.lh-dictionary-form{max-width:none;margin:0;background:var(--lh-white);flex-wrap:wrap}
.lh-dictionary-form select{max-width:130px;min-width:0;border:0;border-left:1px solid var(--lh-border);border-radius:0;padding:8px;background:var(--lh-white);color:var(--lh-ink);font-size:12px}
.lh-dialog-content>.lh-dictionary-source{margin:12px 0 20px;font-size:11px;line-height:1.6;color:var(--lh-muted)}
.lh-dictionary-count{font-size:12px;color:var(--lh-muted);margin:0 0 12px!important;overflow-wrap:anywhere}
.lh-dictionary-list{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.lh-dictionary-entry{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:18px;min-width:0;border:1px solid var(--lh-border);border-radius:12px;padding:18px 20px;overflow-wrap:anywhere;background:var(--lh-white);cursor:pointer}
.lh-dictionary-entry>*{grid-column:1}
.lh-dictionary-entry:hover{background:var(--lh-surface-muted)}
.lh-dictionary-entry:focus-within{outline:2px solid var(--lh-primary);outline-offset:2px}
.lh-dictionary-entry-heading{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}
.lh-dictionary-entry h3{font-size:22px;line-height:1.6;font-weight:650}
.lh-dictionary-entry-heading .lh-badge{flex-shrink:0}
.lh-dictionary-reading{color:var(--lh-muted);font-size:14px;margin-top:3px!important}
.lh-dictionary-romaji{color:var(--lh-muted);font-size:12px}
.lh-dictionary-hanviet{font-size:13px;margin-top:6px!important}
.lh-dictionary-meaning{margin-top:10px!important;white-space:pre-line;font-size:15px;line-height:1.8}
.lh-dictionary-readings{margin:12px 0;font-size:13px;color:var(--lh-muted)}
.lh-dictionary-readings>div{display:flex;gap:12px;margin:4px 0}
.lh-dictionary-readings dt{min-width:28px;font-weight:650}
.lh-dictionary-readings dd{margin:0;min-width:0}
.lh-dictionary-formation{margin-top:10px!important;font-size:13px;color:var(--lh-muted);white-space:pre-line}
.lh-dictionary-toggle{grid-column:2;grid-row:1 / span 10;align-self:center;display:inline-flex;align-items:center;gap:8px;margin:0;padding:6px 0;border:0;background:transparent;color:var(--lh-primary);font:inherit;font-size:13px;font-weight:600;cursor:pointer;min-height:36px;white-space:nowrap}
.lh-dictionary-toggle::after{content:"";position:absolute;inset:0;border-radius:12px}
.lh-dictionary-toggle:hover{text-decoration:underline}
.lh-dictionary-toggle>span:last-child{display:inline-block;line-height:1;font-size:16px;text-decoration:none}
.lh-dictionary-detail-body{overflow-wrap:anywhere}
.lh-dictionary-detail-body :is(h1,h2,h3,h4,h5,h6){font-size:16px;line-height:1.65;margin:20px 0 10px;font-weight:650}
.lh-dictionary-detail-body> :first-child,.lh-dictionary-detail-body> :first-child> :first-child{margin-top:0}
.lh-dictionary-detail-body p{font-size:inherit;line-height:inherit;margin:8px 0}
.lh-dictionary-detail-body :is(ul,ol){padding-left:22px;margin:10px 0}
.lh-dictionary-detail-body li{margin:7px 0}
.lh-dictionary-detail-body blockquote{margin:14px 0;padding:10px 14px;border-left:3px solid var(--lh-border);background:var(--lh-surface-muted)}
.lh-dictionary-detail-body rt{font-size:.65em;color:var(--lh-muted)}
.lh-dictionary-table{max-width:100%;overflow-x:auto;margin:14px 0;overscroll-behavior-x:contain}
.lh-dictionary-table table{width:100%;border-collapse:collapse;font-size:13px}
.lh-dictionary-table :is(th,td){border:1px solid var(--lh-border);padding:9px 11px;text-align:left;vertical-align:top;min-width:95px}
.lh-dictionary-table th{background:var(--lh-surface-muted);font-weight:600}
.lh-dictionary-detail-status{color:var(--lh-muted)}
.lh-dictionary-dialog .lh-dialog-header [data-action="dictionary-back"]{font-size:12px;padding:6px 8px;white-space:nowrap}
.lh-dictionary-dialog .lh-dialog-header [data-action="dictionary-back"]~h2{flex:1;text-align:center;font-size:16px;min-width:0}
.lh-dictionary-page{min-width:0;font-size:16px;line-height:1.8;overflow-wrap:anywhere}
.lh-word-hero{padding:4px 0 22px;border-bottom:1px solid var(--lh-border);margin-bottom:22px}
.lh-word-overview>.lh-word-hero{border-bottom:0;margin-bottom:0;padding-bottom:0}
.lh-grammar-hero{padding:0 0 22px;border-bottom:1px solid var(--lh-border)}
.lh-app .lh-grammar-hero h3{font-size:32px;line-height:1.5;margin:10px 0;font-weight:700}
.lh-grammar-hero>p{font-size:17px;color:var(--lh-ink);line-height:1.7}
.lh-grammar-nav{display:flex;flex-wrap:wrap;gap:7px;padding:18px 0 22px}
.lh-grammar-nav .lh-btn{min-height:34px;padding:6px 11px;font-size:12px;background:var(--lh-surface-muted);border:1px solid var(--lh-border);border-radius:8px}
.lh-grammar-nav .lh-btn:hover{background:#edf0f4}
.lh-grammar-sections{display:grid;gap:18px}
.lh-grammar-section{padding:20px;border:1px solid var(--lh-border);border-radius:12px;scroll-margin-top:18px;min-width:0}
.lh-grammar-section>h4{display:flex;align-items:center;gap:12px;margin:0 0 18px;padding-bottom:15px;border-bottom:1px solid var(--lh-border);font-size:18px;font-weight:700;line-height:1.5;letter-spacing:-.2px}
.lh-grammar-section>h4>span{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;height:34px;font-size:12px;font-weight:750;font-variant-numeric:tabular-nums;letter-spacing:0;color:var(--lh-primary);border:1px solid #fbd5df;border-radius:10px;background:var(--lh-primary-soft)}
.lh-grammar-section .lh-dictionary-detail-body{font-size:16px;line-height:1.9}
.lh-grammar-section .lh-dictionary-detail-body>p{margin:0 0 12px}
.lh-grammar-section .lh-dictionary-detail-body>:last-child{margin-bottom:0}
.lh-grammar-formation{background:var(--lh-white)}
.lh-grammar-formation .lh-dictionary-detail-body>ul,.lh-grammar-examples .lh-dictionary-detail-body>ol{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.lh-grammar-formation .lh-dictionary-detail-body>ul{gap:0}
.lh-grammar-formation li{padding:16px 0;background:transparent;border:0;border-bottom:1px solid var(--lh-border);border-radius:0;font-size:17px;font-weight:600;margin:0}
.lh-grammar-formation li:first-child{padding-top:0}
.lh-grammar-formation li:last-child{border-bottom:0;padding-bottom:0}
.lh-grammar-formation li p{font-size:15px;font-weight:400;color:var(--lh-muted);margin:5px 0 0}
.lh-grammar-examples ol{counter-reset:grammar-example}
.lh-grammar-examples li,.lh-grammar-examples blockquote{border:0;border-radius:9px;background:var(--lh-surface-muted);padding:16px;margin:0 0 12px;position:relative}
.lh-grammar-examples li::before{counter-increment:grammar-example;content:"Ví dụ " counter(grammar-example);display:block;font-size:11px;font-weight:650;color:var(--lh-muted);margin-bottom:7px}
.lh-grammar-examples .lh-grammar-jp{font-size:18px;line-height:1.9;color:var(--lh-ink)}
.lh-grammar-jp ruby{ruby-position:over;ruby-align:center}
.lh-grammar-jp rt{font-size:.58em;font-weight:400;line-height:1.3;color:var(--lh-muted)}
.lh-kanji-hero{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:24px;margin-bottom:24px}
.lh-kanji-character{display:flex;align-items:center;justify-content:center;min-height:120px;font-size:78px;line-height:1.4;border:1px solid var(--lh-border);border-radius:16px;background:var(--lh-surface-muted)}
.lh-app .lh-kanji-hero h3{font-size:24px;color:var(--lh-primary);margin:5px 0 8px}
.lh-kanji-hero p{font-size:16px;line-height:1.7}
.lh-kanji-meta{display:flex;gap:10px;align-items:center;margin-top:12px;font-size:12px;color:var(--lh-muted)}
.lh-kanji-readings{margin:0;display:grid;gap:16px}
.lh-kanji-readings>div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;align-items:baseline}
.lh-kanji-readings dt{font-size:12px;font-weight:650;color:var(--lh-muted)}
.lh-kanji-readings dd{margin:0;font-size:18px;line-height:1.8}
.lh-kanji-radical{display:flex;align-items:center;gap:16px}
.lh-kanji-radical>span{font-size:38px;min-width:48px;text-align:center}
.lh-kanji-radical p{font-size:15px;color:var(--lh-muted);margin-top:4px}
/* Related words: word (furigana) | short meaning + one example sentence of that word */
.lh-kanji-words{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.lh-kanji-word{display:grid;grid-template-columns:minmax(110px,190px) minmax(0,1fr);gap:4px 24px;padding:16px 0;border-bottom:1px solid var(--lh-border);min-width:0}
.lh-kanji-word:last-child{border-bottom:0;padding-bottom:4px}
.lh-kanji-word-head{min-width:0}
.lh-kanji-word h5{font-size:23px;font-weight:600;line-height:2;margin:0;overflow-wrap:anywhere}
.lh-kanji-word h5 rt{font-size:.52em;font-weight:400;color:var(--lh-muted)}
.lh-kanji-word h5:has(ruby)+.lh-kanji-word-reading{display:none}
.lh-kanji-word-reading{font-size:14px;color:var(--lh-muted);margin:0}
.lh-kanji-word-body{min-width:0}
.lh-kanji-word .lh-kanji-word-meaning{font-size:15px;line-height:1.7;margin:0;padding-top:13px}
.lh-kanji-sentence{margin-top:10px;padding:8px 14px 10px;border-left:3px solid #fecdd3;border-radius:0 9px 9px 0;background:var(--lh-surface-muted)}
.lh-kanji-sentence .lh-grammar-jp{font-size:18px;line-height:2.1;margin:0;color:var(--lh-ink)}
.lh-kanji-sentence .lh-kanji-sentence-vi{font-size:14px;line-height:1.7;margin:2px 0 0;color:var(--lh-muted)}
.lh-kanji-hit{color:var(--lh-primary);font-weight:700}
.lh-kanji-hit rt{color:var(--lh-muted);font-weight:400}
.lh-kanji-other-sentences{display:grid;gap:10px}
.lh-kanji-other-sentences .lh-kanji-sentence{margin-top:0}
/* Card of the «Hán tự & từ ghép» course (styles from bothu/nhapmon/tughep.css, loaded with the detail) */
.lh-tg-card.vnjp-bt{margin:0 0 18px;font-size:16px}
.lh-tg-card .nm-k{margin:0;border-radius:14px}
.lh-tg-card .nm-k__glyph{cursor:pointer}
/* «Tự viết» inside the card: glyph | tracing square | text (narrower); stacked on narrower screens */
.lh-tg-card .lh-trace-inline{min-width:0;padding:12px;border:1px solid var(--bt-line);border-radius:12px;background:var(--bt-paper)}
.lh-tg-card .lh-trace-inline .kt{max-width:300px;margin:0 auto}
.lh-tg-card .lh-trace-inline .kt-levels,.lh-tg-card .lh-trace-inline .kt-actions{flex-wrap:nowrap;gap:6px}
.lh-tg-card .lh-trace-inline .kt-actions .bt-btn,.lh-tg-card .lh-trace-inline .kt-actions .bt-btn:hover,.lh-tg-card .lh-trace-inline .kt-actions .bt-btn:focus,.lh-tg-card .lh-trace-inline .kt-actions .bt-btn:active{min-height:32px;padding:4px 10px;gap:4px;border-radius:999px;font-size:13px;font-weight:600;white-space:nowrap}
.lh-tg-card .lh-trace-inline .kt-levels .bt-chip,.lh-tg-card .lh-trace-inline .kt-levels .bt-chip:hover,.lh-tg-card .lh-trace-inline .kt-levels .bt-chip:focus{min-height:30px;padding:3px 10px;font-size:12px}
@media(min-width:1000px){.lh-tg-card .nm-k.is-tracing{grid-template-columns:132px minmax(260px,300px) minmax(0,1fr)}.lh-tg-card .nm-k.is-tracing .nm-words{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:999px){.lh-tg-card .nm-k.is-tracing{grid-template-columns:minmax(0,1fr)}.lh-tg-card .nm-k.is-tracing .nm-k__side{grid-auto-flow:column;justify-content:center;align-items:center;gap:12px}}
@media(max-width:640px){.lh-tg-card .bt-mini,.lh-tg-card .bt-mini:hover,.lh-tg-card .bt-mini:focus{padding:4px 6px;font-size:12px;white-space:nowrap}}
/* Mobile: one block above the other — glyph, stroke count and «Tự viết» in a row on top, the text below at full width */
@media(max-width:640px){.lh-tg-card .nm-k{grid-template-columns:minmax(0,1fr)}.lh-tg-card .nm-k__side{grid-auto-flow:column;justify-content:center;align-items:center;gap:12px}}
@media(max-width:520px){.lh-kanji-word{grid-template-columns:minmax(0,1fr);gap:2px}.lh-kanji-word .lh-kanji-word-meaning{padding-top:2px}.lh-kanji-sentence{padding:7px 11px 9px}.lh-kanji-sentence .lh-grammar-jp{font-size:17px}}
.lh-kanji-example{padding:16px;border-radius:9px;background:var(--lh-surface-muted);margin-bottom:12px}
.lh-kanji-example:last-child{margin-bottom:0}
.lh-kanji-example>small{font-size:11px;font-weight:650;color:var(--lh-muted)}
.lh-kanji-example .lh-grammar-jp{font-size:19px;line-height:2.2;margin:9px 0}
.lh-kanji-example>p:last-child{font-size:16px;line-height:1.8}
@media(max-width:520px){.lh-kanji-hero{grid-template-columns:84px minmax(0,1fr);gap:16px}.lh-kanji-character{font-size:60px;min-height:96px}.lh-kanji-words{grid-template-columns:1fr}.lh-kanji-example{padding:13px}}
.lh-grammar-examples .lh-grammar-kana{font-size:12px;color:var(--lh-muted);line-height:1.8}
.lh-grammar-examples .lh-grammar-vi{font-size:16px;margin-top:10px}
.lh-grammar-examples .lh-grammar-example-note{font-size:14px;color:var(--lh-muted);padding-top:8px;border-top:1px solid var(--lh-border)}
.lh-grammar-notes dt{font-weight:650;margin-top:15px}
.lh-grammar-notes dd{margin:6px 0 16px;color:var(--lh-muted)}
@media(max-width:520px){.lh-grammar-section{padding:15px}.lh-app .lh-grammar-hero h3{font-size:27px}.lh-grammar-formation li{padding:14px 0;font-size:16px}.lh-grammar-formation li:first-child{padding-top:0}.lh-grammar-formation li:last-child{padding-bottom:0}.lh-grammar-examples li{padding:13px}}
.lh-word-eyebrow{display:block;color:var(--lh-muted);font-size:10px;letter-spacing:1.1px;text-transform:uppercase;font-weight:600;margin-bottom:12px}
.lh-word-form{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin:6px 0}
.lh-word-hero h3{font-size:34px;line-height:1.5;font-weight:700;color:var(--lh-ink);letter-spacing:1px}
.lh-word-form.is-variant>p{font-size:23px;font-weight:600;line-height:1.6}
.lh-word-form small{font-size:11px;color:var(--lh-muted)}
.lh-word-hanviet{font-size:14px;font-weight:500;color:var(--lh-primary);letter-spacing:0}
.lh-word-pronunciations{display:grid;gap:5px;margin-top:12px}
.lh-word-pronunciations>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.lh-word-pronunciations [lang=ja]{font-size:19px;font-weight:550}
.lh-word-pronunciations small{font-size:12px;color:var(--lh-muted)}
.lh-word-pronunciations .lh-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-height:0;padding:4px;border-radius:50%;background:var(--lh-primary-soft);color:var(--lh-primary)}
.lh-word-pronunciations .lh-btn[aria-busy="true"]{cursor:progress;opacity:.55}
.lh-pitch-word{--lh-pitch-line:#2b7fd0;display:inline-flex;align-items:stretch;line-height:1.35}
.lh-pitch-word .lh-mora{padding:2px 1px 1px;border:0 solid var(--lh-pitch-line)}
.lh-mora.is-high{border-top-width:2px}.lh-mora.is-low{border-bottom-width:2px}.lh-mora.is-step{border-left-width:2px}.lh-mora.is-drop{border-right-width:2px}
.lh-pitch-variants{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.lh-pitch-or{color:var(--lh-muted);font-size:14px}
.lh-word-frequency{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px}
.lh-word-frequency span{color:#80530f;background:#fff8e7;border:1px solid #f7e6bc;border-radius:6px;font-size:11px;padding:3px 8px}
.lh-word-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 12px}
.lh-word-section-heading h4{margin:0;font-size:15px;font-weight:650}
.lh-word-section-heading>span{font-size:11px;color:var(--lh-muted)}
.lh-word-senses{display:grid;gap:14px}
.lh-word-sense{min-width:0;padding:18px;border:1px solid var(--lh-border);border-radius:12px;background:var(--lh-white)}
.lh-sense-heading{display:flex;align-items:flex-start;gap:10px;margin-bottom:12px}
.lh-sense-number{font-size:11px;font-weight:700;color:var(--lh-muted);background:var(--lh-surface-muted);border-radius:6px;min-width:27px;text-align:center;padding:3px}
.lh-word-tags{display:flex;flex-wrap:wrap;gap:6px}
.lh-word-tags span{font-size:11px;line-height:1.7;padding:3px 7px;border-radius:5px;background:#edf4fc;color:#35648c}
.lh-word-sense .lh-sense-meaning{margin:0;font-size:17px;font-weight:650;color:var(--lh-ink);line-height:1.7}
.lh-sense-note{font-size:14px;color:var(--lh-muted);margin-top:7px!important}
.lh-word-example{margin-top:16px;padding:2px 0}
.lh-example-jp{font-size:16px;line-height:2.2}
.lh-example-jp rt{font-size:.6em;color:var(--lh-muted)}
.lh-example-vi{font-size:15px;color:var(--lh-muted);margin-top:6px!important;line-height:1.8}
.lh-example-vi small{font-size:10px}
.lh-word-summary{margin-top:12px!important;font-size:15px;line-height:1.8}
.lh-word-readings{font-size:13px;margin:14px 0 0}
.lh-word-readings>div{display:flex;gap:12px;margin:5px 0}
.lh-word-readings dt{color:var(--lh-muted);min-width:30px;font-weight:600}
.lh-word-readings dd{margin:0}
.lh-detail-article{font-size:16px;line-height:1.9}
.lh-detail-article dd{margin:8px 0 18px;padding-left:14px;border-left:2px solid var(--lh-border)}
.lh-detail-article dt{font-weight:600}
@media(max-width:520px){.lh-word-hero h3{font-size:30px}.lh-word-form.is-variant>p{font-size:22px}.lh-word-sense{padding:14px}.lh-dictionary-dialog .lh-dialog-header [data-action="dictionary-back"]~h2{font-size:13px}.lh-word-section-heading{gap:6px}.lh-word-tags span{font-size:11px}}
.lh-dictionary-status{display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center;padding:36px 12px;color:var(--lh-muted);font-size:13px}
@media(max-width:1100px){.lh-topbar{height:auto;min-height:85px;flex-wrap:wrap;padding-top:13px;padding-bottom:13px;gap:12px}.lh-dictionary-search{order:3;flex:1 1 100%;max-width:none;margin:0}.lh-dictionary-form{order:initial}.lh-topbar>.lh-account{margin-left:auto}}
@media(max-width:520px){.lh-app .lh-dictionary-input input{font-size:16px}.lh-dictionary-form .lh-dictionary-input{flex-basis:100%;padding:0 4px 4px 0;border-bottom:1px solid var(--lh-border)}.lh-dictionary-form select{flex:1;max-width:none;font-size:16px}.lh-dictionary-form{padding:6px 6px 6px 14px}.lh-dictionary-form .lh-dictionary-tools{margin-left:-8px}.lh-dictionary-form .lh-dictionary-tools::before{display:none}.lh-dictionary-dialog{height:90vh;height:90dvh}.lh-dictionary-entry{padding:15px}.lh-dictionary-entry h3{font-size:21px}}
.lh-metric{position:relative;overflow:hidden}.lh-metric::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:var(--lh-purple)}.lh-metric:nth-child(2)::before{background:var(--lh-green)}.lh-metric:nth-child(3)::before{background:var(--lh-amber)}.lh-metric:nth-child(4)::before{background:var(--lh-blue)}

/* Align empty search results with the toolbar above. */
.lh-toolbar + .lh-empty{max-width:none;width:100%}

/* Main VNJPCLUB menu above the standalone page (templates/site-header.php). Desktop: bar with dropdowns that scrolls away with the page; below 1250px: "Menu" button with an accordion panel; up to 800px the bar logo replaces the sidebar brand. */
.lh-site-header{position:relative;z-index:1000;background:#fff;border-bottom:1px solid #e5e7eb;color:#1f2937;font:15px/1.4 Arial,"Helvetica Neue",Helvetica,sans-serif;text-align:left}
.lh-site-header *,.lh-site-header *::before,.lh-site-header *::after{box-sizing:border-box}
.lh-site-header a:focus-visible,.lh-site-header button:focus-visible{outline:3px solid #e11d48;outline-offset:2px}
.lh-site-skip{position:fixed;left:20px;top:-70px;z-index:100000;padding:10px 20px;background:#fff;border:2px solid #e5e7eb;border-radius:8px;color:#1f2937;text-decoration:none}.lh-site-skip:focus{top:15px}
.lh-site-header-inner{display:flex;align-items:center;gap:20px;max-width:1240px;height:64px;margin:0 auto;padding:0 24px}
.lh-site-logo{display:flex;align-items:center;flex-shrink:0;color:#e11d48;font-size:17px;font-weight:800;letter-spacing:.5px;text-decoration:none}.lh-site-logo img{display:block;width:44px;height:44px}
.lh-site-nav{margin-left:auto}.lh-site-menu,.lh-site-sub{list-style:none;margin:0;padding:0}.lh-site-menu li{position:relative;display:flex;align-items:center;margin:0}.lh-site-menu a{color:#1f2937;text-decoration:none}
.lh-site-sub-toggle{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:22px;height:32px;margin:0;padding:0;border:0;border-radius:6px;background:transparent;color:inherit;cursor:pointer}.lh-site-sub-toggle::before{content:"";width:6px;height:6px;border:solid currentColor;border-width:0 1.6px 1.6px 0;transform:translateY(-2px) rotate(45deg);transition:transform .15s}
.lh-site-toggle{display:none}
@media(min-width:1250px){.lh-site-menu{display:flex}.lh-site-menu>li>a{padding:0 3px 0 13px;line-height:64px;font-weight:500;white-space:nowrap}.lh-site-menu>li:not(.lh-site-has-sub)>a{padding-right:13px}.lh-site-menu>li>.lh-site-sub-toggle{margin-right:6px}.lh-site-menu li.is-open>a,.lh-site-menu li.is-open>.lh-site-sub-toggle{color:#e11d48}.lh-site-sub{display:none;position:absolute;top:100%;left:0;z-index:2;min-width:230px;padding:8px 0;background:#fff;border:1px solid #e5e7eb;border-radius:0 0 10px 10px;box-shadow:0 14px 34px rgba(31,41,55,.14)}.lh-site-sub .lh-site-sub{top:-9px;left:100%;border-radius:10px}.lh-site-menu>li:nth-last-child(-n+2)>.lh-site-sub{left:auto;right:0}.lh-site-menu>li:nth-last-child(-n+3) .lh-site-sub .lh-site-sub{left:auto;right:100%}.lh-site-menu li.is-open>.lh-site-sub{display:block}.lh-site-sub a{flex:1;padding:9px 18px;font-size:14px;line-height:1.45;white-space:nowrap}.lh-site-sub .lh-site-sub-toggle{margin-right:8px;transform:rotate(-90deg)}.lh-site-menu>li:nth-last-child(-n+3) .lh-site-sub .lh-site-sub-toggle{transform:rotate(90deg)}.lh-site-sub li.is-open>a{background:#fff1f2}}
@media(min-width:1250px) and (hover:hover){.lh-site-menu li:hover>.lh-site-sub{display:block}.lh-site-menu li:hover>a,.lh-site-menu li:hover>.lh-site-sub-toggle{color:#e11d48}.lh-site-sub li:hover>a{background:#fff1f2}}
@media(max-width:1249px){.lh-site-toggle{display:inline-flex;align-items:center;gap:10px;margin-left:auto;min-height:40px;padding:8px 14px;border:1px solid #e5e7eb;border-radius:9px;background:#fff;color:#1f2937;font:inherit;font-size:14px;font-weight:600;cursor:pointer}.lh-site-toggle-bars,.lh-site-toggle-bars::before,.lh-site-toggle-bars::after{display:block;width:18px;height:2px;border-radius:1px;background:currentColor;transition:transform .15s}.lh-site-toggle-bars{position:relative}.lh-site-toggle-bars::before,.lh-site-toggle-bars::after{content:"";position:absolute;left:0}.lh-site-toggle-bars::before{top:-6px}.lh-site-toggle-bars::after{top:6px}.lh-site-header.is-open .lh-site-toggle-bars{background:transparent}.lh-site-header.is-open .lh-site-toggle-bars::before{top:0;transform:rotate(45deg)}.lh-site-header.is-open .lh-site-toggle-bars::after{top:0;transform:rotate(-45deg)}.lh-site-nav{display:none;position:absolute;top:100%;left:0;right:0;max-height:calc(100vh - 65px);overflow-y:auto;overscroll-behavior:contain;background:#fff;border-bottom:1px solid #e5e7eb;box-shadow:0 18px 30px rgba(31,41,55,.12)}.lh-site-header.is-open .lh-site-nav{display:block}.lh-site-menu{padding:4px 0 10px}.lh-site-menu li{flex-wrap:wrap}.lh-site-menu>li{border-bottom:1px solid #f3f4f6}.lh-site-menu a{flex:1;min-width:0;padding:12px 24px;font-size:15px}.lh-site-sub-toggle{width:56px;height:46px}.lh-site-menu li.is-open>.lh-site-sub-toggle::before{transform:translateY(2px) rotate(225deg)}.lh-site-sub{display:none;flex-basis:100%;padding:0 0 8px;background:#f9fafb}.lh-site-menu li.is-open>.lh-site-sub{display:block}.lh-site-sub a{padding:10px 24px 10px 40px;font-size:14px}.lh-site-sub .lh-site-sub{background:#f3f4f6}.lh-site-sub .lh-site-sub a{padding-left:56px}}
@media(max-width:800px){.lh-site-header-inner{height:56px;padding:0 16px}.lh-site-logo img{width:40px;height:40px}.lh-site-nav{max-height:calc(100vh - 57px)}.lh-site-header+.lh-app .lh-brand{display:none}.lh-site-header+.lh-app .lh-sidebar{padding-top:0}}
/* Above 800px the Learning Hub sidebar is pinned full height on the left and the bar covers only the workspace column (the sidebar brand replaces the logo). */
@media(min-width:801px){.lh-site-header{margin-left:236px}.lh-site-logo{display:none}.lh-site-nav{margin-right:auto}.lh-site-header+.lh-app,.lh-site-header+.lh-app .lh-layout{min-height:calc(100vh - 65px)}.lh-site-header+.lh-app .lh-sidebar{position:fixed;top:0;left:0;width:236px;height:100vh;min-height:0;overflow-y:auto}.lh-site-header+.lh-app .lh-workspace{grid-column:2}.lh-site-header+.lh-app .lh-main{min-height:calc(100vh - 205px)}}
/* Above 800px the Learning Hub bar (breadcrumb, dictionary search, account) stays pinned at the top while the main menu scrolls away. */
@media(min-width:801px){.lh-topbar{position:sticky;top:0;z-index:10}}
/* «Lên đầu trang» (app.js shows it after 300px of scrolling): same look as the main site's GeneratePress back-to-top
   button, 40px square at the bottom right, translucent black; lighter in dark mode so it shows on the dark page. */
.lh-app .lh-to-top{position:fixed;right:30px;bottom:30px;z-index:20;display:flex;align-items:center;justify-content:center;width:40px;height:40px;margin:0;padding:0;border:0;border-radius:3px;background:rgba(0,0,0,.4);color:#fff;font-size:20px;line-height:1;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity .3s ease-in-out,transform .3s ease-in-out,visibility .3s}
.lh-app .lh-to-top.is-shown{opacity:1;visibility:visible;transform:none}
.lh-app .lh-to-top:hover,.lh-app .lh-to-top:focus-visible{background:rgba(0,0,0,.6)}
html.vnjp-dark .lh-app .lh-to-top{background:rgba(255,255,255,.18)}
html.vnjp-dark .lh-app .lh-to-top:hover,html.vnjp-dark .lh-app .lh-to-top:focus-visible{background:rgba(255,255,255,.3)}
/* Up to 800px only the dictionary search row stays pinned: the bar is sticky with a negative top that hides the
   breadcrumb/account row above it (13px padding + 42px row + 12px gap = 67px; 6px of the bar stays above the search). */
@media(max-width:800px){.lh-topbar{position:sticky;top:-61px;z-index:10}.lh-topbar>.lh-topbar-label,.lh-topbar>.lh-account{display:flex;align-items:center;height:42px}}
@media(min-width:801px) and (max-width:1180px){.lh-site-header{margin-left:205px}.lh-site-header+.lh-app .lh-sidebar{width:205px}}
@media(min-width:1600px){.lh-site-header{margin-left:260px}.lh-site-header+.lh-app .lh-sidebar{width:260px}}
/* Tool buttons in the dictionary search box, after a hairline: pen = handwriting (handwriting.js/.css), «部» = radical
   lookup (radicals.js/.css + radicals-data.js), microphone = voice (voice.js/.css), picture = image text (image.js/.css);
   each script is loaded on first click. The pink magnifier at the end submits the box. */
.lh-dictionary-tools{display:flex;align-items:center;gap:2px;flex-shrink:0}
.lh-dictionary-tools::before{content:"";width:1px;height:20px;margin-right:4px;background:var(--lh-border)}
.lh-app .lh-dictionary-draw{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;margin:0;padding:0;border:0;border-radius:9px;background:transparent;color:var(--lh-muted);cursor:pointer;transition:background .15s,color .15s}
.lh-app .lh-dictionary-draw:hover{background:var(--lh-primary-soft);color:var(--lh-primary)}
.lh-app .lh-dictionary-draw[aria-busy="true"]{cursor:progress;opacity:.55}
.lh-app .lh-dictionary-go{display:inline-flex;align-items:center;justify-content:center;flex:0 0 46px;width:46px;height:36px;margin:0;padding:0;border:0;border-radius:9px;background:var(--lh-primary);color:#fff!important;cursor:pointer;box-shadow:0 1px 2px rgba(190,18,60,.25);transition:background .15s,transform .1s}
.lh-app .lh-dictionary-go:hover{background:var(--lh-primary-hover)}
.lh-app .lh-dictionary-go:active{transform:scale(.95)}
.lh-app .lh-dictionary-go:disabled{cursor:progress;opacity:.6}
/* Typing in the box: pink border + soft ring around the whole box instead of the input's own outline. */
@supports selector(:has(a)){.lh-dictionary-search:has(input:focus){border-color:var(--lh-primary);background:var(--lh-white);box-shadow:0 0 0 3px rgba(225,29,72,.13)}.lh-app .lh-dictionary-search input:focus-visible{outline:0}}
@media(min-width:1101px){.lh-topbar>.lh-dictionary-search{max-width:480px}}
/* Phones: smaller tools so the header input keeps room for a few words and the popup type list shows «Ngữ pháp». */
@media(max-width:420px){.lh-topbar>.lh-dictionary-search{gap:4px;padding-left:12px}.lh-topbar .lh-dictionary-tools{gap:0}.lh-topbar .lh-dictionary-tools::before{margin-right:2px}.lh-app .lh-topbar .lh-dictionary-draw{flex-basis:32px;width:32px}.lh-app .lh-topbar .lh-dictionary-go{flex-basis:42px;width:42px}.lh-dictionary-form{gap:4px}.lh-dictionary-form .lh-dictionary-tools{gap:0}.lh-app .lh-dictionary-form .lh-dictionary-draw{flex-basis:32px;width:32px}.lh-dictionary-form select{padding:8px 2px 8px 8px}.lh-app .lh-dictionary-form .lh-dictionary-go{flex-basis:42px;width:42px}}
.lh-dictionary-radical span{font:400 16px/1 "Noto Sans JP","Hiragino Sans","Yu Gothic",Meiryo,sans-serif}
/* Gear after the menu (templates/site-header.php): the main site's display settings. Desktop: the menu and the gear are
   centred together; below 1250px it sits before the «Menu» button. */
.lh-site-tools{position:relative;display:flex;align-items:center;gap:2px;flex-shrink:0}
.lh-site-tool{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;margin:0;padding:0;border:0;border-radius:9px;background:transparent;color:inherit;cursor:pointer}
.lh-site-tool:hover{background:#f3f4f6;color:#e11d48}
.lh-site-tool svg{display:block}
.lh-site-settings{position:absolute;top:calc(100% + 12px);right:0;z-index:5;width:250px;padding:4px 0 12px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 18px 40px rgba(31,41,55,.16)}
.lh-site-settings[hidden]{display:none}
.lh-site-settings-head{margin:0 0 8px;padding:10px 16px;border-bottom:1px solid #e5e7eb;font-size:14px;font-weight:700}
.lh-site-switch{position:relative;display:flex;align-items:center;gap:12px;padding:7px 16px;font-size:14px;cursor:pointer;user-select:none}
.lh-site-switch input{position:absolute;width:1px;height:1px;margin:0;opacity:0}
.lh-site-slider{position:relative;flex:0 0 42px;height:24px;border-radius:999px;background:#d1d5db;transition:background .2s}
.lh-site-slider::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.18);transition:transform .2s}
.lh-site-switch input:checked+.lh-site-slider{background:#22c55e}
.lh-site-switch input:checked+.lh-site-slider::after{transform:translateX(18px)}
.lh-site-switch input:focus-visible+.lh-site-slider{outline:3px solid #e11d48;outline-offset:2px}
@media(min-width:1250px){.lh-site-nav{margin-right:0}.lh-site-tools{margin:0 auto 0 -12px}}
/* The gear needs ~40px: tighten the menu where the bar is narrowest. */
@media(min-width:1250px) and (max-width:1439px){.lh-site-menu>li>a{padding-left:8px}.lh-site-menu>li:not(.lh-site-has-sub)>a{padding-right:8px}.lh-site-menu>li>.lh-site-sub-toggle{margin-right:2px}.lh-site-tool{width:34px}}
@media(max-width:1249px){.lh-site-tools{position:static;order:2;margin-left:auto}.lh-site-toggle{order:3;margin-left:6px}.lh-site-settings{top:calc(100% - 2px);right:12px;width:min(250px,calc(100vw - 24px))}}
@media(prefers-reduced-motion:reduce){.lh-site-slider,.lh-site-slider::after{transition:none}}
html.vnjp-dark .lh-site-tool:hover{background:#243044;color:#fb7185}
html.vnjp-dark .lh-site-settings{background:#1a2332;border-color:#2d3a4f;box-shadow:0 18px 40px rgba(0,0,0,.5)}
html.vnjp-dark .lh-site-settings-head{border-bottom-color:#2d3a4f}
html.vnjp-dark .lh-site-slider{background:#3a475c}
html.vnjp-dark .lh-site-switch input:checked+.lh-site-slider{background:#22c55e}
/* Dark mode follows the main site's «Chế độ tối» (html.vnjp-dark: set before paint by templates/page.php from the same
   localStorage key, or by the theme on WordPress pages). Palette as the theme's dark mode. Furigana follows «Hiện Furigana». */
html.vnjp-dark{color-scheme:dark;background:#0f1419}
html.vnjp-dark .lh-app{--lh-ink:#e8edf4;--lh-muted:#9aa8bb;--lh-primary:#f43f5e;--lh-primary-hover:#fb7185;--lh-primary-soft:rgba(244,63,94,.14);--lh-border:#2d3a4f;--lh-bg:#0f1419;--lh-surface-muted:#212c3d;--lh-purple:#a78bfa;--lh-green:#4ade80;--lh-amber:#fbbf24;--lh-blue:#60a5fa;--lh-focus:#60a5fa;--lh-danger:#f87171;--lh-white:#1a2332}
html.vnjp-dark .lh-app :is(.lh-btn-primary,.lh-btn-light,.lh-nav-item b,.lh-toast.is-error){color:#fff!important}
html.vnjp-dark :is(.lh-notebook,.lh-item-list,.lh-study-card,.lh-filter select){background:var(--lh-white)}
html.vnjp-dark .lh-small-art span{background:#251f3d;border-color:#3b3366}
html.vnjp-dark .lh-small-art span:nth-child(2){background:#13291c;color:#4ade80;border-color:#1f4d31}
html.vnjp-dark .lh-small-art span:nth-child(3){background:#152740;border-color:#23406a}
html.vnjp-dark .lh-btn-danger{background:#3b1d24;color:#fca5a5!important;border-color:#5b2530}
html.vnjp-dark .lh-hero{background:linear-gradient(108deg,var(--lh-white) 58%,rgba(244,63,94,.12))}
html.vnjp-dark .lh-hero::after{border-color:rgba(244,63,94,.1)}
html.vnjp-dark .lh-goal-ring{background:conic-gradient(var(--lh-primary) var(--progress),#3a2430 0)}
html.vnjp-dark .lh-metric-icon{background:rgba(167,139,250,.16)}
html.vnjp-dark .lh-metric:nth-child(2) .lh-metric-icon{background:rgba(74,222,128,.14)}
html.vnjp-dark .lh-metric:nth-child(3) .lh-metric-icon{background:rgba(251,191,36,.14)}
html.vnjp-dark .lh-metric:nth-child(4) .lh-metric-icon{background:rgba(96,165,250,.16)}
html.vnjp-dark :is(.lh-notebook:hover,.lh-dialog,.lh-toast,.lh-study-card){box-shadow:0 18px 50px rgba(0,0,0,.45)}
html.vnjp-dark .lh-dialog::backdrop{background:rgba(0,0,0,.6)}
html.vnjp-dark :is(.lh-due,.lh-weak-list span){color:#fbbf24!important}
html.vnjp-dark .lh-note{background:rgba(96,165,250,.12);color:#bfdbfe}
html.vnjp-dark .lh-rating{color:#86efac}
html.vnjp-dark .lh-rating-1{border-color:#7f1d1d;color:#fca5a5}
html.vnjp-dark .lh-rating-2{border-color:#78350f;color:#fcd34d}
html.vnjp-dark .lh-rating-4{border-color:#1e3a8a;color:#93c5fd}
html.vnjp-dark .lh-quiz-option:hover{background:rgba(139,92,246,.14);border-color:#8b5cf6}
html.vnjp-dark .lh-quiz-option.is-correct{border-color:#22c55e;background:rgba(34,197,94,.12);color:#86efac}
html.vnjp-dark .lh-quiz-option.is-wrong{border-color:#ef4444;background:rgba(239,68,68,.12);color:#fca5a5}
html.vnjp-dark .lh-answer-feedback.is-correct{color:#86efac}
html.vnjp-dark .lh-answer-feedback.is-wrong{color:#fca5a5}
html.vnjp-dark .lh-finish-icon{color:#86efac;background:rgba(34,197,94,.12);border-color:#166534}
html.vnjp-dark .lh-dialog-notice{color:#86efac!important;background:rgba(34,197,94,.1);border-color:#166534}
html.vnjp-dark .lh-dialog-notice.is-error{color:#fca5a5!important;background:rgba(239,68,68,.1);border-color:#7f1d1d}
html.vnjp-dark .lh-grammar-nav .lh-btn:hover{background:#2a3647}
html.vnjp-dark .lh-grammar-section>h4>span{border-color:#5b2530}
html.vnjp-dark .lh-kanji-sentence{border-left-color:#5b2530}
html.vnjp-dark .lh-pitch-word{--lh-pitch-line:#60a5fa}
html.vnjp-dark .lh-word-frequency span{color:#fcd34d;background:rgba(251,191,36,.1);border-color:#5c4a1c}
html.vnjp-dark .lh-word-tags span{background:#1e3048;color:#93c5fd}
html.vnjp-dark .lh-dictionary-search:has(input:focus){box-shadow:0 0 0 3px rgba(244,63,94,.22)}
html.vnjp-dark :is(.lh-site-header,.lh-site-skip){background:#1a2332;border-color:#2d3a4f;color:#e8edf4}
html.vnjp-dark .lh-site-menu a{color:#e8edf4}
html.vnjp-dark .lh-site-logo{color:#f43f5e}
html.vnjp-dark .lh-site-header :is(a,button):focus-visible{outline-color:#f43f5e}
html.vnjp-dark .lh-site-menu li.is-open>:is(a,.lh-site-sub-toggle){color:#fb7185}
@media(min-width:1250px){html.vnjp-dark .lh-site-sub{background:#1a2332;border-color:#2d3a4f;box-shadow:0 14px 34px rgba(0,0,0,.5)}html.vnjp-dark .lh-site-sub li.is-open>a{background:rgba(244,63,94,.12)}}
@media(min-width:1250px) and (hover:hover){html.vnjp-dark .lh-site-menu li:hover>:is(a,.lh-site-sub-toggle){color:#fb7185}html.vnjp-dark .lh-site-sub li:hover>a{background:rgba(244,63,94,.12)}}
@media(max-width:1249px){html.vnjp-dark .lh-site-toggle{border-color:#2d3a4f;background:#1a2332;color:#e8edf4}html.vnjp-dark .lh-site-nav{background:#1a2332;border-bottom-color:#2d3a4f;box-shadow:0 18px 30px rgba(0,0,0,.45)}html.vnjp-dark .lh-site-menu>li{border-bottom-color:#243044}html.vnjp-dark .lh-site-sub{background:#212c3d}html.vnjp-dark .lh-site-sub .lh-site-sub{background:#243044}}
html.vnjp-hide-furigana .lh-app rt{visibility:hidden}
/* Course card «Từ vựng» in the Kanji SRS style (app.js fillKanjiCardWords): JLPT level tag on each word, first 6 words then «Xem thêm» */
.lh-tg-card .nm-words.lh-words-collapsed>.lh-word-extra{display:none}
.lh-tg-card .lh-lv{display:inline-block;margin-left:6px;padding:0 6px;border-radius:999px;font-size:11px;font-weight:700;line-height:1.6;letter-spacing:0;text-transform:none;vertical-align:1px}
.lh-tg-card .lh-lv-only>.lh-lv{margin-left:0}
.lh-tg-card .lh-lv--n5{background:#dcfce7;color:#166534}
.lh-tg-card .lh-lv--n4{background:#e0f2fe;color:#075985}
.lh-tg-card .lh-lv--n3{background:#e0e7ff;color:#3730a3}
.lh-tg-card .lh-lv--n2{background:#f3e8ff;color:#6b21a8}
.lh-tg-card .lh-lv--n1{background:#ffe4e6;color:#9f1239}
.lh-tg-card .lh-words-more{display:inline-flex;margin-top:10px}
html.vnjp-dark .lh-tg-card .lh-lv--n5{background:rgba(34,197,94,.16);color:#86efac}
html.vnjp-dark .lh-tg-card .lh-lv--n4{background:rgba(14,165,233,.16);color:#7dd3fc}
html.vnjp-dark .lh-tg-card .lh-lv--n3{background:rgba(99,102,241,.2);color:#a5b4fc}
html.vnjp-dark .lh-tg-card .lh-lv--n2{background:rgba(168,85,247,.2);color:#d8b4fe}
html.vnjp-dark .lh-tg-card .lh-lv--n1{background:rgba(244,63,94,.18);color:#fda4af}

/* «Biểu đồ» under the kanji card's composition diagram (opens the kanji network dialog of vnjp-kanji-matrix). */
.lh-tg-card .lh-kg-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:10px 0 4px}
.lh-tg-card .lh-kg-open,.lh-tg-card .lh-kg-open:hover,.lh-tg-card .lh-kg-open:focus{gap:6px;min-height:34px;padding:5px 12px;border-color:var(--bt-brand);color:var(--bt-brand-strong)}
.lh-tg-card .lh-kg-open:hover{background:var(--bt-tint)}
.lh-tg-card .lh-kg-open[aria-busy=true]{opacity:.65;cursor:progress}
.lh-tg-card .lh-kg-hint{font-size:13px;color:var(--bt-muted)}
.lh-tg-card .lh-kg-hint [role=alert]{color:var(--bt-bad)}

/* Learning nav: SVG icons; at <= 800px one row like the Android bottom tab bar (icon in a pill, label below). */
.lh-nav-item>.lh-nav-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.lh-nav-icon svg{display:block;width:22px;height:22px}
.lh-nav-icon b{display:none}
@media(max-width:800px){
.lh-nav{display:flex;flex-direction:row;gap:2px;padding:8px 0 10px;margin:0 -8px}
.lh-app .lh-nav-item{flex:1 1 0;min-width:0;flex-direction:column;justify-content:flex-start;gap:4px;padding:2px 2px 0;background:transparent;border-radius:0;color:var(--lh-muted);font-size:12px;font-weight:600;line-height:1.3;-webkit-tap-highlight-color:transparent}
.lh-app .lh-nav-item:hover,.lh-app .lh-nav-item[aria-current=page]{background:transparent}
.lh-app .lh-nav-item>.lh-nav-icon{width:min(60px,100%);height:32px;border-radius:999px;color:var(--lh-muted);font-size:inherit;line-height:1;transition:background-color .2s ease,color .2s ease}
.lh-app .lh-nav-item:hover>.lh-nav-icon{background:var(--lh-primary-soft)}
.lh-app .lh-nav-item[aria-current=page]>.lh-nav-icon{background:#ffe4e6;color:var(--lh-primary)}
.lh-app .lh-nav-item>.lh-nav-label{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lh-nav-more,.lh-nav-item>.lh-nav-count{display:none}
.lh-app .lh-nav-icon b{display:block;position:absolute;top:-3px;left:calc(50% + 6px);min-width:18px;margin:0;padding:0 5px;border:2px solid var(--lh-white);border-radius:999px;background:var(--lh-primary);color:#fff;font-size:10px;font-weight:700;line-height:14px;text-align:center}
html.vnjp-dark .lh-app .lh-nav-item[aria-current=page]>.lh-nav-icon{background:rgba(244,63,94,.22)}
}
@media(max-width:380px){.lh-app .lh-nav-item{padding:2px 0 0;font-size:11px}}
@media(max-width:420px){.lh-app .lh-nav:has(>.lh-nav-item:nth-child(6)) .lh-nav-item{padding:2px 0 0;font-size:11px}}
@media(max-width:800px) and (prefers-reduced-motion:reduce){.lh-app .lh-nav-item>.lh-nav-icon{transition:none}}
/* «Tra từ điển» screen (#search, the VNJPCLUB app's search page): results and details in the page instead of the popup.
   In the app (body.vnjp-app) the screen stands alone: no sidebar, Learning Hub bar or footer, and the search box stays pinned. */
.lh-app[data-tab="search"] .lh-topbar>.lh-dictionary-search{display:none}
.lh-dictionary-screen{max-width:820px;margin:0 auto}
.lh-dictionary-screen-head{display:flex;align-items:center;gap:8px;min-height:40px;margin-bottom:8px}
.lh-dictionary-screen-head h1{flex:1;min-width:0;font-size:22px;line-height:1.3;font-weight:750}
.lh-dictionary-screen-head [data-action="dictionary-back"]{flex-shrink:0;padding:6px 10px 6px 2px;font-size:14px;white-space:nowrap}
.lh-dictionary-screen.is-detail .lh-dictionary-screen-head h1{font-size:14px;font-weight:650;color:var(--lh-muted);text-align:right}
.lh-dictionary-screen-form{margin:0 0 16px}
.lh-dictionary-screen .lh-dictionary-search{max-width:none;margin:0;background:var(--lh-white)}
.lh-app .lh-dictionary-screen .lh-dictionary-input input{padding:9px 0;font-size:16px}
.lh-dictionary-types{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.lh-dictionary-types label{position:relative;display:block}
.lh-dictionary-types input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.lh-dictionary-types span{display:flex;align-items:center;height:34px;padding:0 15px;border:1px solid var(--lh-border);border-radius:999px;background:var(--lh-white);color:var(--lh-ink);font-size:14px;font-weight:600;white-space:nowrap}
.lh-dictionary-types input:checked+span{border-color:var(--lh-primary);background:var(--lh-primary);color:#fff}
.lh-dictionary-types input:focus-visible+span{outline:2px solid var(--lh-focus);outline-offset:2px}
.lh-dictionary-screen.is-detail .lh-dictionary-types{display:none}
.lh-dictionary-recent{margin-bottom:18px}
.lh-dictionary-recent-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.lh-dictionary-recent-head h2{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--lh-muted)}
.lh-app .lh-dictionary-recent-head .lh-btn{min-height:32px;padding:4px 8px;font-size:14px}
.lh-dictionary-recent-list{display:flex;flex-wrap:wrap;gap:8px}
.lh-app .lh-dictionary-recent-item{display:inline-flex;align-items:baseline;gap:6px;max-width:100%;padding:7px 14px;border:1px solid var(--lh-border);border-radius:10px;background:var(--lh-white);color:var(--lh-ink);font-size:16px;line-height:1.4}
.lh-dictionary-recent-item span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lh-dictionary-recent-item small{font-size:11px;color:var(--lh-muted)}
.lh-app .lh-dictionary-recent-item:hover{border-color:var(--lh-primary);color:var(--lh-primary)}
.lh-dictionary-tip{font-size:14px;line-height:1.7;color:var(--lh-muted)}
.lh-dictionary-screen .lh-grammar-section{scroll-margin-top:96px}
body.vnjp-app .lh-app[data-tab="search"] .lh-layout{display:block}
body.vnjp-app .lh-app[data-tab="search"] .lh-sidebar,body.vnjp-app .lh-app[data-tab="search"] .lh-topbar,body.vnjp-app .lh-app[data-tab="search"] .lh-footer{display:none}
body.vnjp-app .lh-app[data-tab="search"] .lh-main{padding-top:12px}
body.vnjp-app .lh-dictionary-screen-form{position:sticky;top:0;z-index:6;padding:8px 0 10px;background:var(--lh-bg)}
/* In the app the native top bar already shows VNJPCLUB, Menu and sign-in: every screen drops the sidebar brand and the
   «LEARNING HUB / …» + account row, so the bar keeps only the dictionary search («Mục tiêu học» stays on «Tiến độ»). */
body.vnjp-app .lh-brand,body.vnjp-app .lh-topbar>.lh-topbar-label,body.vnjp-app .lh-topbar>.lh-account{display:none}
body.vnjp-app .lh-topbar{height:auto;min-height:0;padding-top:10px;padding-bottom:10px}
body.vnjp-app .lh-sidebar-label{margin-top:0}
@media(max-width:800px){body.vnjp-app .lh-sidebar{padding-top:0}}
@media(max-width:420px){.lh-dictionary-screen .lh-dictionary-search{gap:4px;padding-left:12px}.lh-dictionary-screen .lh-dictionary-tools{gap:0}.lh-dictionary-screen .lh-dictionary-tools::before{margin-right:2px}.lh-app .lh-dictionary-screen .lh-dictionary-draw{flex-basis:32px;width:32px}.lh-app .lh-dictionary-screen .lh-dictionary-go{flex-basis:42px;width:42px}}
