.hpp-app{--hpp-accent:#dc2626;--hpp-ink:#172554;--hpp-muted:#64748b;--hpp-line:#e2e8f0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172033;background:#f8fafc;border:1px solid var(--hpp-line);border-radius:20px;overflow:hidden;box-shadow:0 18px 50px rgba(15,23,42,.09);line-height:1.45;margin:24px auto;max-width:1180px}.hpp-app *{box-sizing:border-box}.hpp-app button,.hpp-app select,.hpp-app input{font:inherit}.hpp-header{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:26px 30px;background:linear-gradient(135deg,#fff 40%,#fff7f7);border-bottom:1px solid var(--hpp-line)}.hpp-kicker{font-size:11px;font-weight:800;letter-spacing:.18em;color:var(--hpp-accent)}.hpp-header h2{font-size:27px;line-height:1.15;margin:4px 0;color:#0f172a}.hpp-subtitle{margin:0;color:var(--hpp-muted);font-size:14px}.hpp-header-tools{display:flex;align-items:end;gap:15px}.hpp-field{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--hpp-muted);font-weight:700}.hpp-field select{display:block;min-width:180px;margin-top:5px;padding:9px 32px 9px 11px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#0f172a}.hpp-script{display:flex;background:#eef2f7;border-radius:10px;padding:3px}.hpp-script button{border:0;background:transparent;color:#475569;padding:9px 11px;border-radius:8px;cursor:pointer;font-size:13px}.hpp-script button.active{background:#fff;color:var(--hpp-accent);box-shadow:0 1px 4px rgba(15,23,42,.12);font-weight:700}.hpp-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;padding:0 14px;background:#fff;border-bottom:1px solid var(--hpp-line);scrollbar-width:thin}.hpp-tabs button{flex:1 0 auto;white-space:nowrap;border:0;border-bottom:3px solid transparent;padding:14px 10px;background:transparent;color:#64748b;cursor:pointer;font-size:14px;font-weight:650}.hpp-tabs button.active{color:var(--hpp-accent);border-color:var(--hpp-accent)}.hpp-main{display:grid;grid-template-columns:minmax(0,1fr) 350px;min-height:620px}.hpp-stage{padding:28px 34px;background:#fff;border-right:1px solid var(--hpp-line)}.hpp-character-info{max-width:520px;margin:0 auto 14px;display:flex;align-items:center;justify-content:center;gap:15px}.hpp-word{display:flex;align-items:center;gap:14px;min-width:210px;justify-content:center}.hpp-word>strong{font-family:"Noto Serif SC","Songti SC",serif;font-size:54px;line-height:1;color:#0f172a}.hpp-word div{display:flex;flex-direction:column}.hpp-word b{color:var(--hpp-accent);font-size:17px}.hpp-word span{color:#64748b;font-size:14px}.hpp-nav,.hpp-sound{width:38px;height:38px;border:1px solid var(--hpp-line);background:#fff;border-radius:50%;cursor:pointer;color:#475569;font-size:24px;display:grid;place-items:center}.hpp-sound{font-size:10px;color:var(--hpp-accent);font-weight:900}.hpp-canvas-shell{text-align:center}.hpp-grid{position:relative;width:min(100%,360px);aspect-ratio:1;margin:0 auto;background:#fffdfb;border:2px solid #dcaaaa;overflow:hidden}.hpp-grid:before,.hpp-grid:after,.hpp-grid>i:before,.hpp-grid>i:after{content:"";position:absolute;z-index:0;pointer-events:none}.hpp-grid:before{left:50%;top:0;bottom:0;border-left:1px dashed #eab9b9}.hpp-grid:after{top:50%;left:0;right:0;border-top:1px dashed #eab9b9}.hpp-grid>i:first-child:before{width:141%;left:-20%;top:50%;border-top:1px dashed #efcaca;transform:rotate(45deg)}.hpp-grid>i:first-child:after{width:141%;left:-20%;top:50%;border-top:1px dashed #efcaca;transform:rotate(-45deg)}.hpp-grid [data-role=canvas]{position:absolute;inset:0;z-index:1}.hpp-grid svg,.hpp-grid canvas{max-width:100%;height:auto}.hpp-status{min-height:27px;margin:12px 0 8px;color:#64748b;font-size:13px}.hpp-status.error{color:#b91c1c}.hpp-controls{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.hpp-controls button{padding:10px 13px;border:1px solid #cbd5e1;background:#fff;color:#334155;border-radius:9px;cursor:pointer;font-size:13px;font-weight:650}.hpp-controls button:hover{border-color:var(--hpp-accent);color:var(--hpp-accent)}.hpp-controls .hpp-primary{color:#fff;background:var(--hpp-accent);border-color:var(--hpp-accent)}.hpp-toggles{display:flex;justify-content:center;gap:24px;margin-top:15px;color:#64748b;font-size:12px}.hpp-toggles label{cursor:pointer}.hpp-toggles input{accent-color:var(--hpp-accent);vertical-align:-2px}.hpp-sidebar{padding:22px;background:#f8fafc}.hpp-card{background:#fff;border:1px solid var(--hpp-line);border-radius:13px;padding:17px;margin-bottom:14px;box-shadow:0 2px 5px rgba(15,23,42,.025)}.hpp-card-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.hpp-card h3{margin:0;font-size:14px;color:#1e293b}.hpp-card-title span{font-size:12px;font-weight:750;color:var(--hpp-accent)}.hpp-card-title small{color:#94a3b8}.hpp-bar{height:6px;background:#fee2e2;border-radius:9px;overflow:hidden}.hpp-bar span{display:block;height:100%;background:var(--hpp-accent);border-radius:inherit;transition:width .3s}.hpp-stats{display:grid;grid-template-columns:repeat(3,1fr);margin-top:16px;text-align:center}.hpp-stats div+div{border-left:1px solid var(--hpp-line)}.hpp-stats b{display:block;font-size:19px;color:#0f172a}.hpp-stats span{display:block;font-size:10px;color:#94a3b8;text-transform:uppercase}.hpp-character-list{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;max-height:290px;overflow:auto;padding:1px}.hpp-character-list button{position:relative;aspect-ratio:1;border:1px solid var(--hpp-line);background:#fff;border-radius:9px;cursor:pointer;color:#1e293b;display:flex;flex-direction:column;align-items:center;justify-content:center}.hpp-character-list button:hover,.hpp-character-list button.active{border-color:var(--hpp-accent);background:#fff7f7}.hpp-character-list button.done{border-color:#86efac}.hpp-character-list b{font-family:"Noto Serif SC","Songti SC",serif;font-size:22px;line-height:1}.hpp-character-list span{font-size:8px;color:#94a3b8;margin-top:3px;white-space:nowrap;max-width:100%;overflow:hidden}.hpp-character-list i{position:absolute;right:2px;top:1px;color:#16a34a;font-size:9px;font-style:normal}.hpp-tip{border-left:3px solid #f59e0b;background:#fffbeb}.hpp-tip b{font-size:12px;color:#92400e}.hpp-tip p{margin:5px 0 0;color:#78716c;font-size:12px}.hpp-footer{display:flex;justify-content:space-between;padding:11px 30px;background:#f1f5f9;border-top:1px solid var(--hpp-line);color:#94a3b8;font-size:11px}.hpp-loading{padding:60px;text-align:center;color:#64748b}.hpp-loading span{display:inline-block;width:16px;height:16px;border:2px solid #e2e8f0;border-top-color:var(--hpp-accent);border-radius:50%;animation:hpp-spin .7s linear infinite;vertical-align:-3px;margin-right:7px}.hpp-error{padding:25px;color:#b91c1c}@keyframes hpp-spin{to{transform:rotate(360deg)}}
@media(max-width:900px){.hpp-header{align-items:flex-start}.hpp-header-tools{flex-direction:column;align-items:stretch}.hpp-main{grid-template-columns:1fr}.hpp-stage{border-right:0;border-bottom:1px solid var(--hpp-line)}.hpp-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:14px}.hpp-card{margin:0}.hpp-tip{grid-column:1/-1}}
@media(max-width:650px){.hpp-app{border-radius:12px;margin:12px 0}.hpp-header{display:block;padding:20px}.hpp-header h2{font-size:23px}.hpp-header-tools{margin-top:16px}.hpp-field select{width:100%}.hpp-tabs{padding:0;justify-content:space-around}.hpp-tabs button{padding:12px 9px;font-size:13px}.hpp-main{display:block}.hpp-stage{padding:20px 12px}.hpp-word{min-width:150px}.hpp-word>strong{font-size:45px}.hpp-character-info{gap:7px}.hpp-nav,.hpp-sound{width:32px;height:32px}.hpp-sidebar{display:block;padding:12px}.hpp-card{margin-bottom:10px}.hpp-footer{display:block;padding:10px 15px}.hpp-footer span{display:block}.hpp-toggles{gap:12px}.hpp-controls button{flex:1 1 40%}}
@media(prefers-reduced-motion:reduce){.hpp-app *{animation-duration:.01ms!important;transition-duration:.01ms!important}}
.hpp-grid{width:min(100%,var(--hpp-canvas-size,360px))}
.hpp-app [hidden]{display:none!important}.hpp-lookup{max-width:660px;margin:0 auto 22px;padding:16px;border:1px solid #fecaca;border-radius:13px;background:linear-gradient(135deg,#fff 45%,#fff7f7)}.hpp-lookup-form{display:grid;grid-template-columns:minmax(170px,1fr) 145px auto;gap:9px;align-items:end}.hpp-lookup-form label>span{display:block;margin-bottom:5px;color:#64748b;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.06em}.hpp-lookup-form input,.hpp-lookup-form select{width:100%;height:40px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;padding:0 10px;color:#0f172a}.hpp-lookup-form input:focus,.hpp-lookup-form select:focus{outline:2px solid color-mix(in srgb,var(--hpp-accent) 25%,transparent);border-color:var(--hpp-accent)}.hpp-lookup-form button{height:40px;padding:0 16px;border:0;border-radius:8px;background:var(--hpp-accent);color:#fff;font-weight:700;cursor:pointer}.hpp-lookup-result{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:13px;min-height:30px;color:#64748b;font-size:12px}.hpp-lookup-result div{display:flex;align-items:center;gap:8px}.hpp-lookup-result span{font-size:10px;text-transform:uppercase;color:#94a3b8}.hpp-lookup-result b{font-family:"Noto Serif SC","Songti SC",serif;font-size:25px;color:#0f172a;letter-spacing:.08em}.hpp-lookup-result i{font-style:normal;color:var(--hpp-accent)}.hpp-lookup-history{border-top:1px solid #fee2e2;margin-top:11px;padding-top:9px}.hpp-lookup-history>small{display:block;color:#94a3b8;margin-bottom:6px}.hpp-lookup-history [data-role=lookup-history]{display:flex;flex-wrap:wrap;gap:5px}.hpp-lookup-history button{border:1px solid #e2e8f0;border-radius:99px;background:#fff;padding:4px 8px;color:#334155;cursor:pointer;font-family:"Noto Serif SC",serif}.hpp-lookup-history button:hover{border-color:var(--hpp-accent)}.hpp-lookup-history button span{font:8px Arial,sans-serif;color:#94a3b8;margin-left:4px}.hpp-lookup-history em{font-size:11px;color:#cbd5e1}@media(max-width:650px){.hpp-lookup{padding:12px}.hpp-lookup-form{grid-template-columns:1fr 1fr}.hpp-lookup-form label:first-child{grid-column:1/-1}.hpp-lookup-form button{width:100%}.hpp-lookup-result{gap:8px;justify-content:space-between}.hpp-lookup-result div{display:block}.hpp-lookup-result b{display:block;font-size:21px}.hpp-tabs button{font-size:12px}}
.hpp-lookup-form{display:flex;flex-wrap:wrap}.hpp-lookup-form>label:first-child{flex:1 1 250px;min-width:0}.hpp-lookup-form>label:nth-child(2){flex:1 1 135px;min-width:120px}.hpp-lookup-form>button{flex:0 0 auto}
.hpp-app{container-name:hpp;container-type:inline-size}
@container hpp (max-width:820px){.hpp-main{grid-template-columns:1fr}.hpp-stage{border-right:0;border-bottom:1px solid var(--hpp-line)}.hpp-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:14px}.hpp-sidebar .hpp-card{margin:0}.hpp-sidebar .hpp-tip{grid-column:1/-1}.hpp-lookup{max-width:680px;width:100%}}
@container hpp (max-width:620px){.hpp-header{display:block;padding:20px}.hpp-header-tools{margin-top:16px;align-items:stretch}.hpp-field select{width:100%}.hpp-tabs{padding:0;justify-content:space-around}.hpp-tabs button{padding:12px 7px;font-size:12px}.hpp-stage{padding:20px 12px}.hpp-sidebar{display:block;padding:12px}.hpp-sidebar .hpp-card{margin-bottom:10px}.hpp-lookup{padding:12px}.hpp-lookup-form{grid-template-columns:1fr 1fr}.hpp-lookup-form label:first-child{grid-column:1/-1}.hpp-lookup-form button{width:100%}.hpp-lookup-result{gap:8px;justify-content:space-between}.hpp-lookup-result div{display:block}.hpp-lookup-result b{display:block;font-size:21px}}
@container hpp (max-width:430px){.hpp-lookup-form{grid-template-columns:1fr}.hpp-lookup-form label:first-child{grid-column:auto}.hpp-lookup-result{align-items:flex-start;flex-direction:column}.hpp-tabs{overflow-x:auto;justify-content:flex-start}.hpp-tabs button{flex:0 0 auto}.hpp-sidebar{padding:10px}.hpp-controls button{flex:1 1 42%}}
.hpp-controls .hpp-primary:hover,.hpp-controls .hpp-primary:focus-visible{background:var(--hpp-accent);border-color:var(--hpp-accent);color:#fff;filter:brightness(.88)}
.hpp-dictionary-results{margin-top:12px;border-top:1px solid #fee2e2;padding-top:10px;max-height:330px;overflow:auto}.hpp-dictionary-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px;color:#475569;font-size:11px}.hpp-dictionary-heading b{color:#0f172a;font-size:12px}.hpp-dictionary-entry{margin-bottom:7px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;overflow:hidden}.hpp-dictionary-main{display:grid;grid-template-columns:minmax(72px,auto) 1fr;gap:2px 10px;width:100%;padding:9px 10px;border:0;background:#fff;text-align:left;color:#334155;cursor:pointer}.hpp-dictionary-main:hover,.hpp-dictionary-main:focus-visible{background:#fff7f7}.hpp-dictionary-main strong{grid-row:1/3;font-family:"Noto Serif SC","Songti SC",serif;font-size:24px;color:#0f172a;align-self:center}.hpp-dict-reading{font-size:11px;color:var(--hpp-accent)}.hpp-dict-meaning{font-size:12px;color:#334155}.hpp-dictionary-loading,.hpp-dictionary-empty{margin:4px 0;padding:10px;border-radius:8px;background:#f8fafc;color:#64748b;font-size:12px}@container hpp (max-width:430px){.hpp-dictionary-main{grid-template-columns:1fr}.hpp-dictionary-main strong{grid-row:auto}}

.hpp-is-hsk .hpp-main{grid-template-columns:1fr}.hpp-is-hsk .hpp-stage{border-right:0;padding:25px}.hpp-hsk{max-width:1080px;margin:0 auto}.hpp-hsk-head{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;padding:20px;border:1px solid #fecaca;border-radius:15px;background:linear-gradient(135deg,#fff 48%,#fff7f7)}.hpp-hsk-head h3{margin:4px 0;font-size:23px;color:#0f172a}.hpp-hsk-head p{margin:0;color:#64748b;font-size:13px}.hpp-hsk-tools{display:grid;grid-template-columns:170px minmax(180px,1fr) auto;gap:8px;align-items:end;min-width:min(100%,560px)}.hpp-hsk-tools label{color:#64748b;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.05em}.hpp-hsk-tools select,.hpp-hsk-tools input{display:block;width:100%;height:40px;margin-top:5px;padding:0 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#0f172a}.hpp-hsk-tools button,.hpp-hsk-summary button,.hpp-hsk-pagination button,.hpp-hsk-card button{border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#334155;cursor:pointer}.hpp-hsk-tools button{height:40px;padding:0 16px}.hpp-hsk-tools .hpp-primary{border-color:var(--hpp-accent);background:var(--hpp-accent);color:#fff;font-weight:700}.hpp-hsk-summary{display:grid;grid-template-columns:90px 110px minmax(180px,1fr) auto auto;gap:12px;align-items:center;margin:14px 0;padding:12px 16px;border:1px solid var(--hpp-line);border-radius:12px;background:#f8fafc}.hpp-hsk-summary>div>b{display:block;font-size:20px;color:#0f172a}.hpp-hsk-summary>div>span{font-size:10px;color:#94a3b8;text-transform:uppercase}.hpp-hsk-summary button{padding:8px 10px;font-size:12px}.hpp-hsk-progress>span{display:block;height:7px;overflow:hidden;border-radius:99px;background:#fee2e2}.hpp-hsk-progress i{display:block;height:100%;border-radius:inherit;background:var(--hpp-accent)}.hpp-hsk-progress small{display:block;margin-top:4px;color:#64748b;font-size:10px}.hpp-hsk-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.hpp-hsk-grid>.hpp-dictionary-loading,.hpp-hsk-grid>.hpp-dictionary-empty{grid-column:1/-1}.hpp-hsk-card{display:flex;min-height:235px;flex-direction:column;padding:14px;border:1px solid var(--hpp-line);border-radius:13px;background:#fff;box-shadow:0 2px 5px rgba(15,23,42,.035)}.hpp-hsk-card.is-learned{border-color:#86efac;background:#f7fff9}.hpp-hsk-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.hpp-hsk-card-top>span{padding:3px 7px;border-radius:99px;background:#fff1f2;color:#be123c;font-size:9px;font-weight:800}.hpp-hsk-card-top button{padding:4px 7px;border:0;background:transparent;color:#64748b;font-size:10px}.hpp-hsk-card.is-learned .hpp-hsk-card-top button{color:#15803d}.hpp-hsk-card>strong{margin-top:9px;font-family:"Noto Serif SC","Songti SC",serif;font-size:31px;line-height:1.2;color:#0f172a}.hpp-hsk-card>b{margin-top:3px;color:var(--hpp-accent);font-size:14px}.hpp-hsk-card>small{min-height:18px;margin-top:3px;color:#94a3b8;font-size:10px}.hpp-hsk-card>p{flex:1;margin:9px 0;color:#334155;font-size:12px;line-height:1.5}.hpp-hide-meaning .hpp-hsk-card>p{visibility:hidden}.hpp-hsk-actions{display:flex;gap:7px;margin-top:auto}.hpp-hsk-actions button{flex:1;padding:7px;font-size:11px}.hpp-hsk-actions button:hover,.hpp-hsk-summary button:hover,.hpp-hsk-pagination button:hover{border-color:var(--hpp-accent);color:var(--hpp-accent)}.hpp-hsk-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:16px}.hpp-hsk-pagination button{padding:8px 13px}.hpp-hsk-pagination button:disabled{cursor:not-allowed;opacity:.4}.hpp-hsk-pagination span{color:#64748b;font-size:12px}@container hpp (max-width:850px){.hpp-hsk-head{display:block}.hpp-hsk-tools{margin-top:15px;min-width:0}.hpp-hsk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hpp-hsk-summary{grid-template-columns:80px 100px 1fr}.hpp-hsk-summary button{grid-row:2}.hpp-hsk-summary button:nth-last-child(2){grid-column:2}.hpp-hsk-summary button:last-child{grid-column:3}}@container hpp (max-width:560px){.hpp-is-hsk .hpp-stage{padding:12px}.hpp-hsk-head{padding:14px}.hpp-hsk-tools{grid-template-columns:1fr 1fr}.hpp-hsk-tools label:nth-child(2){grid-column:1/-1;grid-row:2}.hpp-hsk-tools button{grid-column:2;grid-row:1}.hpp-hsk-summary{grid-template-columns:1fr 1fr}.hpp-hsk-progress{grid-column:1/-1}.hpp-hsk-summary button:nth-last-child(2),.hpp-hsk-summary button:last-child{grid-column:auto;grid-row:auto}.hpp-hsk-grid{grid-template-columns:1fr}.hpp-hsk-card{min-height:215px}}

.hpp-footer{gap:10px;flex-wrap:wrap}.hpp-footer [data-role=audio-voice]{color:#64748b}.hpp-footer-brand{display:block;text-align:center;color:#64748b;font-size:13px;font-weight:650;letter-spacing:.02em}.hpp-hsk-actions button{min-width:0;padding-left:4px;padding-right:4px}
.hpp-audio-feedback{position:fixed;z-index:999999;left:50%;bottom:24px;transform:translateX(-50%);max-width:min(90vw,520px);padding:10px 16px;border:1px solid #bbf7d0;border-radius:999px;background:#f0fdf4;color:#166534;font-size:14px;font-weight:700;line-height:1.4;text-align:center;box-shadow:0 10px 30px rgba(15,23,42,.18)}.hpp-audio-feedback.error{border-color:#fecaca;background:#fef2f2;color:#b91c1c}.hpp-audio-feedback[hidden]{display:none!important}.hpp-hsk-actions button:disabled,.hpp-family-actions button:disabled,.hpp-dictionary-phrase-audio button:disabled{cursor:wait;opacity:.75}
.hpp-grammar-tools label:nth-child(1),.hpp-grammar-tools label:nth-child(2){font-size:13px;line-height:1.4;letter-spacing:.045em}.hpp-grammar-tools label:nth-child(1) select,.hpp-grammar-tools label:nth-child(2) select{height:50px;padding:0 13px;font-size:16px;font-weight:650;line-height:1.3}.hpp-grammar-tools label:nth-child(1) select option,.hpp-grammar-tools label:nth-child(2) select option{font-size:16px}
.hpp-is-radical .hpp-main{grid-template-columns:1fr}.hpp-is-radical .hpp-stage{border-right:0;padding:25px}.hpp-radical{max-width:1080px;margin:0 auto}.hpp-radical-head{padding:21px;border:1px solid #fecaca;border-radius:15px;background:linear-gradient(135deg,#fff 48%,#fff7f7)}.hpp-radical-head h3{margin:4px 0;font-size:24px;color:#0f172a}.hpp-radical-head>p{max-width:780px;margin:0;color:#64748b;font-size:13px}.hpp-radical-tools{display:grid;grid-template-columns:minmax(230px,1fr) minmax(230px,1fr) auto;gap:9px;align-items:end;margin-top:18px}.hpp-radical-tools label>span{display:block;margin-bottom:5px;color:#64748b;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.hpp-radical-tools select,.hpp-radical-tools input{width:100%;height:48px;padding:0 13px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#0f172a;font-size:15px}.hpp-radical-tools select:focus,.hpp-radical-tools input:focus{outline:3px solid color-mix(in srgb,var(--hpp-accent) 14%,transparent);border-color:var(--hpp-accent)}.hpp-radical-tools button{height:48px;padding:0 20px;border:1px solid var(--hpp-accent);border-radius:9px;background:var(--hpp-accent);color:#fff;font-weight:750;cursor:pointer}.hpp-radical-layout{display:grid;grid-template-columns:255px minmax(0,1fr);gap:15px;margin-top:15px}.hpp-radical-layout>aside,.hpp-radical-layout>section{min-width:0;padding:14px;border:1px solid var(--hpp-line);border-radius:13px;background:#fff}.hpp-radical-layout h4{margin:0 0 10px;color:#334155;font-size:14px}.hpp-radical-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:680px;overflow:auto;padding:1px}.hpp-radical-list button{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;gap:0 5px;align-items:center;min-width:0;padding:8px;border:1px solid var(--hpp-line);border-radius:9px;background:#fff;color:#334155;text-align:left;cursor:pointer}.hpp-radical-list button:hover,.hpp-radical-list button.active{border-color:var(--hpp-accent);background:#fff7f7}.hpp-radical-list b{grid-row:1/3;font-family:"Noto Serif SC","Songti SC",serif;font-size:27px;line-height:1;color:#0f172a}.hpp-radical-list span{overflow:hidden;color:var(--hpp-accent);font-family:"Noto Serif SC","Songti SC",serif;font-size:12px;white-space:nowrap}.hpp-radical-list small{overflow:hidden;color:#64748b;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.hpp-radical-summary{display:flex;align-items:center;gap:13px;margin-bottom:14px;padding:13px 15px;border:1px solid #fee2e2;border-radius:11px;background:#fff7f7}.hpp-radical-summary>b{font-family:"Noto Serif SC","Songti SC",serif;font-size:48px;line-height:1;color:var(--hpp-accent)}.hpp-radical-summary div{display:flex;min-width:0;flex-direction:column}.hpp-radical-summary strong{font-size:16px;color:#0f172a}.hpp-radical-summary span{color:#64748b;font-size:12px;line-height:1.55}.hpp-radical-characters{display:grid;grid-template-columns:repeat(auto-fill,minmax(46px,1fr));gap:7px;max-height:235px;overflow:auto;margin-bottom:18px;padding:2px}.hpp-radical-characters button{aspect-ratio:1;border:1px solid var(--hpp-line);border-radius:9px;background:#fff;color:#0f172a;font-family:"Noto Serif SC","Songti SC",serif;font-size:25px;cursor:pointer}.hpp-radical-characters button:hover,.hpp-radical-characters button.active{border-color:var(--hpp-accent);background:#fff7f7;color:var(--hpp-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--hpp-accent) 10%,transparent)}.hpp-radical-vocab-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:14px;border-top:1px solid var(--hpp-line)}.hpp-radical-vocab-head h4{margin:0}.hpp-radical-vocab-head span{color:#94a3b8;font-size:11px}.hpp-radical-word-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:10px}.hpp-radical-word{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;min-width:0;padding:12px;border:1px solid var(--hpp-line);border-radius:11px;background:#fff}.hpp-radical-word>div:first-child{display:grid;grid-template-columns:auto 1fr;gap:2px 8px;align-items:center;min-width:0}.hpp-radical-word strong{overflow:hidden;font-family:"Noto Serif SC","Songti SC",serif;font-size:23px;color:#0f172a;text-overflow:ellipsis;white-space:nowrap}.hpp-radical-word strong mark{padding:0 1px;border-radius:3px;background:#fee2e2;color:var(--hpp-accent)}.hpp-radical-word b{grid-column:2;color:var(--hpp-accent);font-size:12px}.hpp-radical-word>p{grid-column:1/-1;margin:3px 0;color:#475569;font-size:12px;line-height:1.5}.hpp-radical-actions{grid-column:1/-1;display:flex;gap:7px}.hpp-radical-actions button{flex:1;padding:7px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#334155;font-size:11px;cursor:pointer}.hpp-radical-actions button:hover{border-color:var(--hpp-accent);color:var(--hpp-accent)}.hpp-radical-actions button:disabled{cursor:wait;opacity:.75}@container hpp (min-width:1000px){.hpp-tabs{grid-template-columns:repeat(9,minmax(0,1fr))}}@container hpp (max-width:760px){.hpp-radical-tools{grid-template-columns:1fr 1fr}.hpp-radical-tools button{grid-column:1/-1}.hpp-radical-layout{grid-template-columns:1fr}.hpp-radical-list{grid-template-columns:repeat(4,minmax(0,1fr));max-height:250px}.hpp-radical-word-grid{grid-template-columns:1fr}}@container hpp (max-width:500px){.hpp-is-radical .hpp-stage{padding:12px}.hpp-radical-head{padding:15px}.hpp-radical-head h3{font-size:21px}.hpp-radical-tools{grid-template-columns:1fr}.hpp-radical-tools button{grid-column:auto}.hpp-radical-list{grid-template-columns:repeat(2,minmax(0,1fr))}.hpp-radical-summary{align-items:flex-start}.hpp-radical-summary>b{font-size:42px}}
.hpp-dictionary-pronunciations{margin:0 0 10px;padding:10px;border:1px solid #fecaca;border-radius:10px;background:#fff7f7}.hpp-dictionary-pronunciations>span{display:block;margin-bottom:7px;color:#64748b;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.06em}.hpp-dictionary-pronunciations>div{display:flex;flex-wrap:wrap;gap:7px}.hpp-dictionary-pronunciations button{display:flex;max-width:100%;flex-direction:column;align-items:flex-start;gap:2px;padding:7px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#334155;cursor:pointer;text-align:left}.hpp-dictionary-pronunciations button:hover,.hpp-dictionary-pronunciations button:focus-visible,.hpp-dictionary-pronunciations button.active{border-color:var(--hpp-accent);background:#fff;color:var(--hpp-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--hpp-accent) 12%,transparent)}.hpp-dictionary-pronunciations button b{color:var(--hpp-accent);font-size:13px}.hpp-dictionary-pronunciations button small{max-width:210px;overflow:hidden;color:#64748b;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.hpp-dictionary-phrase-audio{display:flex;align-items:center;gap:9px;margin:0 0 10px;padding:10px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff}.hpp-dictionary-phrase-audio button{padding:8px 11px;border:1px solid #93c5fd;border-radius:8px;background:#fff;color:#1d4ed8;font-weight:700;cursor:pointer}.hpp-dictionary-phrase-audio button:hover,.hpp-dictionary-phrase-audio button:focus-visible{border-color:#2563eb;background:#dbeafe}.hpp-dictionary-phrase-audio strong{font-family:"Noto Serif SC","Songti SC",serif;font-size:22px;color:#0f172a}.hpp-dictionary-phrase-audio span{color:var(--hpp-accent);font-size:12px}@container hpp (max-width:430px){.hpp-dictionary-phrase-audio{align-items:flex-start;flex-wrap:wrap}.hpp-dictionary-phrase-audio button{width:100%}}

/* Larger, clearer HSK content and level selectors. */
.hpp-hsk-tools{grid-template-columns:210px 190px minmax(180px,1fr) auto}
.hpp-hsk-tools select{height:48px;padding:0 38px 0 14px;font-size:16px;font-weight:700;line-height:1.5}
.hpp-hsk-tools select option{padding:8px 12px;font-size:16px;font-weight:600;line-height:1.6}
@container hpp (max-width:760px){.hpp-hsk-tools{grid-template-columns:1fr 1fr}.hpp-hsk-tools label:nth-child(2){grid-column:auto;grid-row:auto}.hpp-hsk-tools label:nth-child(3){grid-column:1/-1;grid-row:auto}.hpp-hsk-tools button{grid-column:1/-1;grid-row:auto}}@container hpp (max-width:430px){.hpp-hsk-tools{grid-template-columns:1fr}.hpp-hsk-tools label:nth-child(2),.hpp-hsk-tools label:nth-child(3),.hpp-hsk-tools button{grid-column:auto;grid-row:auto}}

.hpp-dict-reading{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.hpp-dict-levels{display:inline-flex;gap:4px;flex-wrap:wrap}.hpp-hsk-level-badge{display:inline-block;padding:2px 7px;border-radius:999px;background:#fff1f2;color:#be123c;font-size:10px;font-style:normal;font-weight:800;line-height:1.5;white-space:nowrap}.hpp-hsk-level-badge.is-outside{background:#f1f5f9;color:#64748b;font-weight:650}

/* Learn vocabulary by a root Han character. */
.hpp-is-family .hpp-main{grid-template-columns:1fr}.hpp-is-family .hpp-stage{border-right:0;padding:25px}.hpp-family{max-width:1080px;margin:0 auto}.hpp-family-head{padding:21px;border:1px solid #fecaca;border-radius:15px;background:linear-gradient(135deg,#fff 48%,#fff7f7)}.hpp-family-head h3{margin:4px 0;font-size:24px;color:#0f172a}.hpp-family-head p{max-width:750px;margin:0;color:#64748b;font-size:13px}.hpp-family-search{display:flex;align-items:flex-end;gap:9px;margin-top:18px}.hpp-family-search label{flex:1;max-width:330px}.hpp-family-search label>span{display:block;margin-bottom:5px;color:#64748b;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.hpp-family-search input{width:100%;height:48px;padding:0 13px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#0f172a;font-family:"Noto Serif SC","Songti SC",serif;font-size:25px}.hpp-family-search input:focus{outline:3px solid color-mix(in srgb,var(--hpp-accent) 14%,transparent);border-color:var(--hpp-accent)}.hpp-family-search button{height:48px;padding:0 18px;border:1px solid var(--hpp-accent);border-radius:9px;background:var(--hpp-accent);color:#fff;font-weight:750;cursor:pointer}.hpp-family-examples{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:12px}.hpp-family-examples>span{color:#64748b;font-size:11px}.hpp-family-examples button{width:34px;height:34px;border:1px solid #fecaca;border-radius:50%;background:#fff;color:#0f172a;font-family:"Noto Serif SC","Songti SC",serif;font-size:18px;cursor:pointer}.hpp-family-examples button:hover{border-color:var(--hpp-accent);color:var(--hpp-accent)}.hpp-family-summary{display:flex;align-items:center;gap:13px;margin:14px 0;padding:12px 16px;border:1px solid var(--hpp-line);border-radius:12px;background:#f8fafc;color:#64748b;font-size:12px}.hpp-family-summary>b{font-family:"Noto Serif SC","Songti SC",serif;font-size:31px;line-height:1;color:var(--hpp-accent)}.hpp-family-group{margin-top:18px}.hpp-family-group>h4{display:flex;align-items:center;justify-content:space-between;margin:0 0 9px;padding-bottom:7px;border-bottom:1px solid var(--hpp-line);color:#1e293b;font-size:15px}.hpp-family-group>h4 span{color:#94a3b8;font-size:10px;font-weight:600}.hpp-family-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.hpp-family-card{display:flex;min-height:245px;flex-direction:column;padding:14px;border:1px solid var(--hpp-line);border-radius:13px;background:#fff;box-shadow:0 2px 5px rgba(15,23,42,.035)}.hpp-family-card-top{display:flex;align-items:center;justify-content:space-between;gap:7px}.hpp-family-card-top em{color:#94a3b8;font-size:9px;font-style:normal}.hpp-family-card>strong{margin-top:10px;font-family:"Noto Serif SC","Songti SC",serif;font-size:29px;line-height:1.3;color:#0f172a}.hpp-family-card>strong mark{padding:0 2px;border-radius:4px;background:#fee2e2;color:var(--hpp-accent)}.hpp-family-card>b{margin-top:3px;color:var(--hpp-accent);font-size:14px}.hpp-family-card>small{min-height:17px;margin-top:3px;color:#94a3b8;font-size:10px}.hpp-family-card>p{flex:1;margin:9px 0;color:#334155;font-size:12px;line-height:1.55}.hpp-family-actions{display:flex;gap:7px;margin-top:auto}.hpp-family-actions button{flex:1;padding:8px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#334155;font-size:11px;cursor:pointer}.hpp-family-actions button:hover{border-color:var(--hpp-accent);color:var(--hpp-accent)}@container hpp (max-width:850px){.hpp-family-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@container hpp (max-width:560px){.hpp-is-family .hpp-stage{padding:12px}.hpp-family-head{padding:15px}.hpp-family-head h3{font-size:21px}.hpp-family-search{display:block}.hpp-family-search label{display:block;max-width:none}.hpp-family-search button{width:100%;margin-top:8px}.hpp-family-summary{align-items:flex-start}.hpp-family-grid{grid-template-columns:1fr}.hpp-family-card{min-height:220px}}

/* Custom PDF worksheet builder. */
.hpp-is-worksheet .hpp-main{grid-template-columns:1fr}.hpp-is-worksheet .hpp-stage{border-right:0;padding:28px}.hpp-worksheet-builder{max-width:820px;margin:0 auto;padding:24px;border:1px solid #fecaca;border-radius:16px;background:linear-gradient(135deg,#fff 55%,#fff7f7)}.hpp-worksheet-head h3{margin:5px 0;font-size:25px;color:#0f172a}.hpp-worksheet-head p{margin:0;color:#64748b;font-size:13px}.hpp-worksheet-form{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:22px}.hpp-worksheet-form label>span{display:block;margin-bottom:6px;color:#475569;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.055em}.hpp-worksheet-wide{grid-column:1/-1}.hpp-worksheet-form input,.hpp-worksheet-form select,.hpp-worksheet-form textarea{display:block;width:100%;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a;font:inherit}.hpp-worksheet-form input,.hpp-worksheet-form select{height:44px;padding:0 12px}.hpp-worksheet-form textarea{min-height:122px;padding:12px;resize:vertical;font-family:"Noto Serif SC","Songti SC",serif;font-size:24px;line-height:1.65}.hpp-worksheet-form input:focus,.hpp-worksheet-form select:focus,.hpp-worksheet-form textarea:focus{outline:3px solid color-mix(in srgb,var(--hpp-accent) 14%,transparent);border-color:var(--hpp-accent)}.hpp-worksheet-form small{display:block;margin-top:6px;color:#64748b}.hpp-worksheet-form small b{color:var(--hpp-accent)}.hpp-worksheet-preview{margin-top:16px;padding:13px;border:1px dashed #fca5a5;border-radius:11px;background:#fff}.hpp-worksheet-preview span{display:block;margin-bottom:6px;color:#64748b;font-size:10px;font-weight:800;text-transform:uppercase}.hpp-worksheet-preview strong{display:block;max-height:108px;overflow:auto;font-family:"Noto Serif SC","Songti SC",serif;font-size:25px;line-height:1.7;color:#172554;word-break:break-all}.hpp-worksheet-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-top:18px}.hpp-worksheet-actions button{padding:10px 14px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#334155;font-weight:700;cursor:pointer}.hpp-worksheet-actions button:hover{border-color:var(--hpp-accent);color:var(--hpp-accent)}.hpp-worksheet-actions .hpp-primary{border-color:var(--hpp-accent);background:var(--hpp-accent);color:#fff}.hpp-worksheet-actions .hpp-primary:hover{color:#fff;filter:brightness(.9)}.hpp-worksheet-note{margin:15px 0 0;padding:10px 12px;border-radius:9px;background:#eff6ff;color:#475569;font-size:12px}.hpp-worksheet-note b{color:#1d4ed8}@container hpp (max-width:620px){.hpp-is-worksheet .hpp-stage{padding:12px}.hpp-worksheet-builder{padding:16px}.hpp-worksheet-head h3{font-size:21px}.hpp-worksheet-form{grid-template-columns:1fr}.hpp-worksheet-wide{grid-column:auto}.hpp-worksheet-actions button{flex:1 1 100%}}

/* Keep every feature tab visible without horizontal scrolling. */
.hpp-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px 6px;overflow:visible;padding:6px 10px}.hpp-tabs button{width:100%;min-width:0;padding:11px 5px;border-radius:7px;white-space:nowrap;font-size:13px}.hpp-tabs button:hover{background:#f8fafc}.hpp-tabs button.active{background:#fff7f7}@container hpp (min-width:1000px){.hpp-tabs{grid-template-columns:repeat(8,minmax(0,1fr))}.hpp-tabs button{font-size:12px}}@container hpp (max-width:620px){.hpp-tabs{grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch;padding:7px}.hpp-tabs button{flex:none;padding:10px 4px;font-size:12px}}@container hpp (max-width:350px){.hpp-tabs button{font-size:11px;letter-spacing:-.01em}}

/* HSK grammar reference. */
.hpp-is-grammar .hpp-main{grid-template-columns:1fr}.hpp-is-grammar .hpp-stage{border-right:0;padding:25px}.hpp-grammar{max-width:1080px;margin:0 auto}.hpp-grammar-head{display:block;padding:21px;border:1px solid #fecaca;border-radius:15px;background:linear-gradient(135deg,#fff 48%,#fff7f7)}.hpp-grammar-head h3{margin:4px 0;font-size:24px;color:#0f172a}.hpp-grammar-head p{max-width:780px;margin:0;color:#64748b;font-size:13px}.hpp-grammar-tools{display:grid;grid-template-columns:220px 145px minmax(220px,1fr) auto;gap:8px;align-items:end;min-width:0;margin-top:18px}.hpp-grammar-tools label{color:#64748b;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.055em}.hpp-grammar-tools select,.hpp-grammar-tools input{display:block;width:100%;height:44px;margin-top:5px;padding:0 11px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#0f172a}.hpp-grammar-tools input:focus,.hpp-grammar-tools select:focus{outline:3px solid color-mix(in srgb,var(--hpp-accent) 14%,transparent);border-color:var(--hpp-accent)}.hpp-grammar-tools button{height:44px;padding:0 17px;border:1px solid var(--hpp-accent);border-radius:9px;background:var(--hpp-accent);color:#fff;font-weight:750;cursor:pointer}.hpp-grammar-summary{display:flex;align-items:center;gap:7px;margin:14px 0;padding:11px 15px;border:1px solid var(--hpp-line);border-radius:11px;background:#f8fafc;color:#64748b;font-size:12px}.hpp-grammar-summary>b{color:var(--hpp-accent);font-size:20px}.hpp-grammar-summary button{margin-left:auto;padding:7px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#475569;font-size:11px;cursor:pointer}.hpp-grammar-summary button:hover{border-color:var(--hpp-accent);color:var(--hpp-accent)}.hpp-grammar-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;align-items:start}.hpp-grammar-grid>.hpp-dictionary-empty{grid-column:1/-1}.hpp-grammar-card{border:1px solid var(--hpp-line);border-radius:13px;background:#fff;box-shadow:0 2px 5px rgba(15,23,42,.035);overflow:hidden}.hpp-grammar-card[open]{border-color:#fca5a5;box-shadow:0 4px 14px rgba(220,38,38,.08)}.hpp-grammar-card summary{position:relative;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:5px 9px;min-height:88px;padding:14px 38px 14px 14px;cursor:pointer;list-style:none}.hpp-grammar-card summary::-webkit-details-marker{display:none}.hpp-grammar-card summary>span{grid-column:1}.hpp-grammar-card summary>strong{grid-column:2;font-family:"Noto Serif SC","Songti SC",serif;font-size:22px;line-height:1.25;color:#0f172a}.hpp-grammar-card summary>small{grid-column:1/3;color:#64748b;font-size:12px}.hpp-grammar-card summary>i{position:absolute;right:15px;top:34px;color:#94a3b8;font-size:18px;font-style:normal;transition:transform .2s}.hpp-grammar-card[open] summary>i{transform:rotate(180deg);color:var(--hpp-accent)}.hpp-grammar-outline-card summary>strong{font-size:17px;line-height:1.45;word-break:break-word}.hpp-grammar-outline-card summary>small{line-height:1.45}.hpp-grammar-body{padding:0 14px 15px;border-top:1px solid #fee2e2}.hpp-grammar-body>p{margin:12px 0;color:#334155;font-size:13px;line-height:1.6}.hpp-grammar-body dl{margin:0}.hpp-grammar-body dl>div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:8px;padding:9px 0;border-top:1px dashed #e2e8f0}.hpp-grammar-body dt{color:#94a3b8;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.hpp-grammar-body dd{margin:0;color:#334155;font-size:12px;line-height:1.55}.hpp-grammar-body dd>b{display:block;margin-bottom:3px;font-family:"Noto Serif SC","Songti SC",serif;font-size:18px;font-weight:600;color:#0f172a}.hpp-grammar-body dd>span{display:block;color:#64748b}.hpp-grammar-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:16px}.hpp-grammar-pagination button{padding:8px 13px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#334155;cursor:pointer}.hpp-grammar-pagination button:hover{border-color:var(--hpp-accent);color:var(--hpp-accent)}.hpp-grammar-pagination button:disabled{cursor:not-allowed;opacity:.4}.hpp-grammar-pagination span{color:#64748b;font-size:12px}.hpp-grammar-source{margin:14px 0 0;padding:10px 12px;border-radius:9px;background:#fffbeb;color:#78716c;font-size:11px;line-height:1.55}@container hpp (max-width:760px){.hpp-grammar-tools{grid-template-columns:1fr 1fr}.hpp-grammar-tools label:nth-child(3){grid-column:1/-1}.hpp-grammar-tools button{grid-column:1/-1}}@container hpp (max-width:620px){.hpp-is-grammar .hpp-stage{padding:12px}.hpp-grammar-head{padding:15px}.hpp-grammar-head h3{font-size:21px}.hpp-grammar-grid{grid-template-columns:1fr}.hpp-grammar-summary{align-items:flex-start;flex-wrap:wrap}.hpp-grammar-summary button{width:100%;margin-left:0}.hpp-grammar-card summary{min-height:78px}.hpp-grammar-body dl>div{grid-template-columns:1fr;gap:3px}}@container hpp (max-width:430px){.hpp-grammar-tools{grid-template-columns:1fr}.hpp-grammar-tools label:nth-child(3),.hpp-grammar-tools button{grid-column:auto}.hpp-grammar-tools select,.hpp-grammar-tools input,.hpp-grammar-tools button{height:46px}}

/* Numbered 214-radical catalogue. */
.hpp-radical-list button{grid-template-columns:auto auto 1fr}.hpp-radical-list i{grid-row:1/3;align-self:start;color:#94a3b8;font-size:8px;font-style:normal}.hpp-radical-summary em{margin:2px 0;color:var(--hpp-accent);font-size:13px;font-style:normal}

/* Topic-based vocabulary and contextual examples. */
.hpp-is-topic .hpp-main{grid-template-columns:1fr}.hpp-is-topic .hpp-stage{border-right:0;padding:25px}.hpp-topic{max-width:1120px;margin:0 auto}.hpp-topic-head{padding:21px;border:1px solid #fecaca;border-radius:15px;background:linear-gradient(135deg,#fff 48%,#fff7f7)}.hpp-topic-head h3{margin:4px 0;font-size:25px;color:#0f172a}.hpp-topic-head>p{max-width:810px;margin:0;color:#64748b;font-size:13px;line-height:1.6}.hpp-topic-mobile-select{display:none}.hpp-topic-layout{display:grid;grid-template-columns:255px minmax(0,1fr);gap:15px;margin-top:15px}.hpp-topic-layout>aside,.hpp-topic-layout>section{min-width:0;padding:14px;border:1px solid var(--hpp-line);border-radius:13px;background:#fff}.hpp-topic-layout h4{margin:0 0 10px;color:#334155;font-size:14px}.hpp-topic-list{display:flex;flex-direction:column;gap:6px}.hpp-topic-list button{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:7px;width:100%;padding:9px;border:1px solid var(--hpp-line);border-radius:9px;background:#fff;color:#334155;text-align:left;cursor:pointer}.hpp-topic-list button:hover,.hpp-topic-list button.active{border-color:var(--hpp-accent);background:#fff7f7}.hpp-topic-list button>span{font-size:19px;text-align:center}.hpp-topic-list button b{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.hpp-topic-list button small{color:#94a3b8;font-size:9px}.hpp-topic-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;border-radius:11px;background:#f8fafc}.hpp-topic-title>div{display:flex;align-items:center;gap:10px}.hpp-topic-title>div>span{font-size:31px}.hpp-topic-title h4{margin:0;color:#0f172a;font-size:18px}.hpp-topic-title p{margin:2px 0 0;color:#64748b;font-size:11px}.hpp-topic-title>small{color:var(--hpp-accent);font-size:10px;font-weight:750;white-space:nowrap}.hpp-topic-words{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:12px 0}.hpp-topic-words button{display:flex;min-width:0;min-height:91px;flex-direction:column;align-items:flex-start;padding:10px;border:1px solid var(--hpp-line);border-radius:10px;background:#fff;text-align:left;cursor:pointer}.hpp-topic-words button:hover,.hpp-topic-words button.active{border-color:var(--hpp-accent);background:#fff7f7;box-shadow:0 0 0 2px color-mix(in srgb,var(--hpp-accent) 8%,transparent)}.hpp-topic-words strong{font-family:"Noto Serif SC","Songti SC",serif;font-size:23px;color:#0f172a}.hpp-topic-words span{color:var(--hpp-accent);font-size:11px;font-weight:650}.hpp-topic-words small{display:-webkit-box;overflow:hidden;margin-top:4px;color:#64748b;font-size:10px;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2}.hpp-topic-detail{overflow:hidden;border:1px solid #fecaca;border-radius:13px}.hpp-topic-word-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px;background:linear-gradient(135deg,#fff7f7,#fff)}.hpp-topic-word-head>div:first-child{display:grid;grid-template-columns:auto auto auto;align-items:baseline;gap:3px 10px}.hpp-topic-word-head strong{font-family:"Noto Serif SC","Songti SC",serif;font-size:35px;color:#0f172a}.hpp-topic-word-head span{color:var(--hpp-accent);font-size:15px;font-weight:700}.hpp-topic-word-head em{padding:3px 7px;border-radius:999px;background:#fee2e2;color:#991b1b;font-size:10px;font-style:normal}.hpp-topic-word-head p{grid-column:1/-1;margin:1px 0 0;color:#475569;font-size:13px}.hpp-topic-word-head>div:last-child{display:flex;gap:7px}.hpp-topic-word-head button,.hpp-topic-example button{padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#334155;font-size:11px;font-weight:700;cursor:pointer}.hpp-topic-word-head button:hover,.hpp-topic-example button:hover{border-color:var(--hpp-accent);color:var(--hpp-accent)}.hpp-topic-word-head .hpp-primary{border-color:var(--hpp-accent);background:var(--hpp-accent);color:#fff}.hpp-topic-context{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:14px;border-top:1px solid #fee2e2}.hpp-topic-context section{padding:11px;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc}.hpp-topic-context section.is-warning{border-color:#fde68a;background:#fffbeb}.hpp-topic-detail h5{margin:0 0 6px;color:#334155;font-size:11px}.hpp-topic-context p{margin:0;color:#64748b;font-size:11px;line-height:1.55}.hpp-topic-examples{padding:0 14px 14px}.hpp-topic-examples>h5{margin:0 0 8px;padding-top:1px;font-size:13px}.hpp-topic-example{position:relative;margin-top:7px;padding:12px;border:1px solid #e2e8f0;border-radius:10px}.hpp-topic-example-level{display:flex;align-items:center;justify-content:space-between;gap:8px}.hpp-topic-example-level b{color:#94a3b8;font-size:9px;text-transform:uppercase;letter-spacing:.05em}.hpp-topic-example strong{display:block;margin-top:3px;font-family:"Noto Serif SC","Songti SC",serif;font-size:18px;color:#0f172a}.hpp-topic-example>span{display:block;margin-top:2px;color:var(--hpp-accent);font-size:11px}.hpp-topic-example>p{margin:3px 0 0;color:#475569;font-size:11px}.hpp-topic button:disabled{cursor:wait;opacity:.7}

@container hpp (min-width:1000px){.hpp-tabs{grid-template-columns:repeat(11,minmax(0,1fr))}.hpp-tabs button{font-size:10px;letter-spacing:-.02em}}
@container hpp (max-width:760px){.hpp-topic-layout{grid-template-columns:1fr}.hpp-topic-layout>aside{display:none}.hpp-topic-mobile-select{display:block;margin-top:15px}.hpp-topic-mobile-select>span{display:block;margin-bottom:5px;color:#64748b;font-size:11px;font-weight:800;text-transform:uppercase}.hpp-topic-mobile-select select{width:100%;height:48px;padding:0 12px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#0f172a;font-size:15px}.hpp-topic-words{grid-template-columns:repeat(2,minmax(0,1fr))}.hpp-topic-context{grid-template-columns:1fr}}
@container hpp (max-width:500px){.hpp-is-topic .hpp-stage{padding:12px}.hpp-topic-head{padding:15px}.hpp-topic-head h3{font-size:21px}.hpp-topic-layout>section{padding:10px}.hpp-topic-title{align-items:flex-start}.hpp-topic-title>small{display:none}.hpp-topic-word-head{align-items:flex-start;flex-direction:column}.hpp-topic-word-head>div:last-child{width:100%}.hpp-topic-word-head button{flex:1}.hpp-topic-example-level{align-items:flex-start}.hpp-topic-example-level button{padding:7px}}

/* Curriculum selector and lesson overview (1.14.1). */
.hpp-brand{min-width:190px}.hpp-header-tools{display:grid;grid-template-columns:minmax(180px,220px) minmax(280px,1fr) auto;align-items:end;gap:12px;min-width:0;flex:1}.hpp-field{min-width:0}.hpp-field select{width:100%;min-width:0;max-width:100%;height:43px;text-transform:none;letter-spacing:normal}.hpp-script{align-self:end;min-height:43px;white-space:nowrap}.hpp-app .hpp-tabs button{display:flex;align-items:center;justify-content:center;min-height:46px;margin:0!important;line-height:1.25;transform:none!important;box-shadow:none!important}.hpp-app .hpp-tabs button.active{box-shadow:inset 0 -2px 0 var(--hpp-accent)!important}.hpp-lesson-overview{margin:0 auto 20px;padding:17px 18px;border:1px solid #fecaca;border-radius:14px;background:linear-gradient(135deg,#fff 55%,#fff7f7)}.hpp-lesson-overview>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:12px;border-bottom:1px solid #fee2e2}.hpp-lesson-overview>header>div{min-width:0}.hpp-lesson-overview>header div>span{display:block;color:var(--hpp-accent);font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.hpp-lesson-overview h3{margin:4px 0 0;color:#0f172a;font-size:20px;line-height:1.35}.hpp-lesson-overview>header>b{flex:0 0 auto;padding:5px 9px;border-radius:999px;background:#fff1f2;color:#be123c;font-size:10px}.hpp-lesson-overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding-top:13px}.hpp-lesson-overview-grid small{display:block;margin-bottom:4px;color:#94a3b8;font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.hpp-lesson-overview-grid p{margin:0;color:#475569;font-size:12px;line-height:1.6}.hpp-lesson-overview-grid .hpp-lesson-patterns{color:#0f172a;font-family:"Noto Serif SC","Songti SC",serif;font-size:15px}
@container hpp (max-width:1050px){.hpp-header{display:block;align-items:stretch}.hpp-brand{min-width:0}.hpp-header-tools{margin-top:18px}}
@container hpp (max-width:700px){.hpp-header-tools{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}.hpp-script{grid-column:1/-1;width:max-content}.hpp-lesson-overview-grid{grid-template-columns:1fr}}
@container hpp (max-width:500px){.hpp-header-tools{grid-template-columns:1fr}.hpp-script{grid-column:auto;width:100%}.hpp-script button{flex:1}.hpp-lesson-overview{padding:14px}.hpp-lesson-overview>header{display:block}.hpp-lesson-overview>header>b{display:inline-block;margin-top:9px}.hpp-lesson-overview h3{font-size:18px}}
/* HSK vocabulary table. */
.hpp-is-hsk-table .hpp-main{grid-template-columns:1fr}.hpp-is-hsk-table .hpp-stage{border-right:0;padding:25px}.hpp-hsk-table-view{max-width:1120px;margin:0 auto}.hpp-hsk-table-head{padding:21px;border:1px solid #fecaca;border-radius:15px;background:linear-gradient(135deg,#fff 48%,#fff7f7)}.hpp-hsk-table-head h3{margin:4px 0;font-size:24px;color:#0f172a}.hpp-hsk-table-head p{margin:0;color:#64748b;font-size:13px}.hpp-hsk-table-tools{display:grid;grid-template-columns:230px minmax(260px,1fr) auto;gap:9px;align-items:end;margin-top:18px}.hpp-hsk-table-tools label>span{display:block;margin-bottom:5px;color:#64748b;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.hpp-hsk-table-tools select,.hpp-hsk-table-tools input{width:100%;height:48px;padding:0 13px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#0f172a;font-size:15px}.hpp-hsk-table-tools select:focus,.hpp-hsk-table-tools input:focus{outline:3px solid color-mix(in srgb,var(--hpp-accent) 14%,transparent);border-color:var(--hpp-accent)}.hpp-hsk-table-tools button{height:48px;padding:0 22px;border:1px solid var(--hpp-accent);border-radius:9px;background:var(--hpp-accent);color:#fff;font-weight:750;cursor:pointer}.hpp-hsk-table-summary{display:flex;align-items:baseline;gap:7px;margin:14px 0;padding:11px 15px;border:1px solid var(--hpp-line);border-radius:10px;background:#f8fafc;color:#64748b}.hpp-hsk-table-summary strong{color:var(--hpp-accent);font-size:21px}.hpp-hsk-table-summary small{margin-left:auto;color:#94a3b8}.hpp-hsk-table-scroll{overflow:hidden;border:1px solid var(--hpp-line);border-radius:13px;background:#fff}.hpp-vocabulary-table{width:100%;border-collapse:collapse;table-layout:fixed}.hpp-vocabulary-table th{padding:12px 10px;background:#fff7f7;color:#475569;font-size:11px;text-align:left;text-transform:uppercase;letter-spacing:.035em}.hpp-vocabulary-table th:nth-child(1){width:54px;text-align:center}.hpp-vocabulary-table th:nth-child(2){width:19%}.hpp-vocabulary-table th:nth-child(3){width:13%}.hpp-vocabulary-table th:nth-child(4){width:18%}.hpp-vocabulary-table th:nth-child(5){width:15%}.hpp-vocabulary-table td{padding:12px 10px;border-top:1px solid #eef2f7;color:#475569;font-size:12px;line-height:1.5;vertical-align:top;overflow-wrap:anywhere}.hpp-vocabulary-table td:first-child{text-align:center;color:#94a3b8;font-weight:700}.hpp-vocabulary-table tbody tr:hover{background:#fffdfd}.hpp-table-word{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;padding:0;border:0;background:transparent;text-align:left;cursor:pointer}.hpp-table-word b{font-family:"Noto Serif SC","Songti SC",serif;font-size:22px;font-weight:600;color:#0f172a}.hpp-table-word small{color:#94a3b8;font-size:9px}.hpp-table-word:hover b{color:var(--hpp-accent)}.hpp-table-radicals{display:flex;flex-wrap:wrap;gap:4px}.hpp-table-radicals span{display:inline-flex;padding:3px 6px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:10px}.hpp-table-radicals .is-empty{color:#94a3b8}.hpp-table-pinyin{color:var(--hpp-accent);font-size:13px;font-weight:600}.hpp-table-message{padding:28px!important;text-align:center!important;color:#64748b!important}.hpp-table-message.is-error{color:#dc2626!important}.hpp-hsk-table-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:16px}.hpp-hsk-table-pagination button{padding:9px 14px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#334155;cursor:pointer}.hpp-hsk-table-pagination button:hover{border-color:var(--hpp-accent);color:var(--hpp-accent)}.hpp-hsk-table-pagination button:disabled{cursor:not-allowed;opacity:.4}.hpp-hsk-table-pagination span{color:#64748b;font-size:12px}@container hpp (min-width:1000px){.hpp-tabs{grid-template-columns:repeat(11,minmax(0,1fr));font-size:10px}}@container hpp (max-width:760px){.hpp-hsk-table-tools{grid-template-columns:1fr 1fr}.hpp-hsk-table-tools button{grid-column:1/-1}}@container hpp (max-width:620px){.hpp-is-hsk-table .hpp-stage{padding:12px}.hpp-hsk-table-head{padding:15px}.hpp-hsk-table-head h3{font-size:21px}.hpp-hsk-table-tools{grid-template-columns:1fr}.hpp-hsk-table-tools button{grid-column:auto}.hpp-hsk-table-summary{flex-wrap:wrap}.hpp-hsk-table-summary small{width:100%;margin-left:0}.hpp-hsk-table-scroll{overflow:visible;border:0;background:transparent}.hpp-vocabulary-table,.hpp-vocabulary-table tbody{display:block}.hpp-vocabulary-table thead{display:none}.hpp-vocabulary-table tr{display:block;margin-bottom:10px;padding:5px 12px;border:1px solid var(--hpp-line);border-radius:12px;background:#fff}.hpp-vocabulary-table td{display:grid;grid-template-columns:105px minmax(0,1fr);gap:10px;padding:9px 0;border-top:1px dashed #e2e8f0;text-align:left!important}.hpp-vocabulary-table td:first-child{border-top:0}.hpp-vocabulary-table td::before{content:attr(data-label);color:#94a3b8;font-size:10px;font-weight:800;text-transform:uppercase}.hpp-vocabulary-table td.hpp-table-message{display:block}.hpp-vocabulary-table td.hpp-table-message::before{display:none}}
