/* V5.6.0 Dictionary Word Class Usage — simple, dense and readable detail pages */
.dict-entry-page{
  --dc-blue:#1769e8;
  --dc-blue-soft:#eef5ff;
  --dc-ink:#17243d;
  --dc-text:#34445e;
  --dc-muted:#758198;
  --dc-line:#e1e7f0;
  --dc-panel:#fff;
  --dc-red:#cc3b3b;
  --dc-green:#138565;
  background:#f4f6fa;
  color:var(--dc-text);
}
.dict-entry-page .dict-shell{max-width:1480px;padding-inline:18px}
.dict-entry-page .dict-entry-layout{grid-template-columns:176px minmax(0,1fr) 238px;gap:12px;align-items:start}
.dict-entry-page .dict-main-column{gap:10px}
.dict-entry-page .dict-panel,
.dict-entry-page .dict-entry-card,
.dict-entry-page .dict-content-card{background:var(--dc-panel);border:1px solid var(--dc-line);box-shadow:none}
.dict-entry-page .dict-panel{border-radius:12px;padding:13px}
.dict-entry-page .dict-panel.sticky{top:106px}
.dict-entry-page .dict-panel-title{font-size:13px;margin:0 0 7px;color:var(--dc-ink)}
.dict-entry-page .dict-side-nav{gap:2px}
.dict-entry-page .dict-side-nav a{min-height:34px;padding:7px 8px;border-radius:8px;font-size:12px;color:#43516a}
.dict-entry-page .dict-side-nav a small{font-size:10px;color:#9aa4b4}
.dict-entry-page .dict-side-nav a.active{background:#eef4fd;color:#145fc2}
.dict-entry-page .dict-secondary-button{min-height:34px;border-radius:8px;font-size:12px}
.dict-entry-page .dict-breadcrumbs{font-size:11px;margin-block:8px 10px;color:#8490a3}

/* compact summary */
.dict-deep-summary{overflow:hidden;border-radius:14px;background:#fff}
.dict-deep-summary .dict-entry-hero{display:grid;grid-template-columns:112px minmax(0,1fr);gap:16px;padding:16px}
.dict-deep-summary .dict-entry-glyph{width:112px;height:112px;border-radius:12px;background-color:#f7f9fc;background-image:linear-gradient(rgba(70,110,170,.11) 1px,transparent 1px),linear-gradient(90deg,rgba(70,110,170,.11) 1px,transparent 1px),linear-gradient(45deg,transparent calc(50% - .5px),rgba(70,110,170,.10) 50%,transparent calc(50% + .5px)),linear-gradient(-45deg,transparent calc(50% - .5px),rgba(70,110,170,.10) 50%,transparent calc(50% + .5px));background-size:50% 50%,50% 50%,100% 100%,100% 100%;border:1px solid #d8e2ef;display:grid;place-items:center;overflow:hidden}
.dict-deep-summary .dict-entry-glyph strong{font:700 56px/1 KaiTi,STKaiti,"Kaiti SC","Noto Serif CJK SC",serif;color:#1a4e91;white-space:nowrap;max-width:100%}
.dict-deep-summary .dict-entry-glyph.dict-glyph-length-2 strong{font-size:39px}
.dict-deep-summary .dict-entry-glyph.dict-glyph-length-3 strong{font-size:30px}
.dict-deep-summary .dict-entry-glyph.dict-glyph-length-4 strong,
.dict-deep-summary .dict-entry-glyph.dict-glyph-length-5 strong{font-size:22px}
.dict-deep-kicker{display:block;margin:0 0 3px;color:var(--dc-blue);font-size:9px;font-weight:850;letter-spacing:.1em}
.dict-deep-summary .dict-entry-summary h1{font-size:30px;line-height:1.08;margin:0;color:var(--dc-ink);overflow-wrap:anywhere}
.dict-deep-summary .dict-entry-pinyin{font-size:16px;line-height:1.3;color:#155dad;font-weight:750;margin:4px 0}
.dict-deep-summary .dict-entry-meaning-lead{font-size:14px;line-height:1.5;color:#4c5a70;max-width:780px;margin:4px 0 8px}
.dict-deep-summary .dict-result-meta{display:flex;gap:5px;flex-wrap:wrap}
.dict-deep-summary .dict-chip{padding:3px 7px;border-radius:999px;font-size:10px;background:#f1f4f8;color:#5c687b;border:0}
.dict-deep-summary .dict-entry-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.dict-deep-summary .dict-entry-actions button{min-height:34px;padding:0 11px;border-radius:8px;font-size:12px}
.dict-deep-summary .dict-entry-facts{display:flex;gap:6px;overflow-x:auto;margin-top:10px;padding-bottom:1px;scrollbar-width:thin}
.dict-deep-summary .dict-entry-fact{flex:0 0 auto;min-width:92px;min-height:46px;background:#f8fafc;border:1px solid #e7ebf1;border-radius:9px;padding:7px 9px}
.dict-deep-summary .dict-entry-fact small{display:block;font-size:9px;line-height:1.2;color:#8c96a6;text-transform:uppercase;letter-spacing:.03em}
.dict-deep-summary .dict-entry-fact strong{display:block;margin-top:3px;font-size:12px;line-height:1.25;color:#283952;overflow-wrap:anywhere}

/* flat information sections */
.dict-entry-page .dict-content-card{padding:13px 15px;border-radius:12px;scroll-margin-top:130px}
.dict-entry-page .dict-content-card>h2,
.dict-card-heading h2{position:relative;margin:0 0 9px;padding-left:15px;font-size:15px;line-height:1.3;color:var(--dc-ink)}
.dict-entry-page .dict-content-card>h2:before,
.dict-card-heading h2:before{content:"";position:absolute;left:0;top:.38em;border-left:6px solid transparent;border-right:6px solid transparent;border-top:10px solid var(--dc-red)}
.dict-entry-page .dict-content-card>p,
.dict-entry-page .dict-content-card>ol,
.dict-entry-page .dict-content-card>ul{font-size:13px;line-height:1.58}
.dict-entry-page .dict-content-card ol{margin:0;padding-left:22px}
.dict-entry-page .dict-content-card li{padding:3px 0}
.dict-card-heading{display:block;margin-bottom:9px}
.dict-card-heading .dict-section-icon,
.dict-card-heading .dict-deep-kicker,
.dict-card-heading p{display:none}
.dict-card-heading h2{margin-bottom:0}
.dict-entry-page .dict-example-zh{margin:2px 0 4px;font-size:19px;line-height:1.45;color:#183f75}
.dict-entry-page .dict-example-pinyin{margin:0 0 3px;color:#1761b5;font-size:13px;font-weight:700}
.dict-entry-page .dict-example-vi{margin:0;font-size:13px;color:#4d5b70}

/* compound and related lists: simple rows, not oversized cards */
.dict-compound-grid{counter-reset:compound;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:26px;row-gap:0}
.dict-compound-link{counter-increment:compound;min-width:0;display:grid;grid-template-columns:22px minmax(0,1fr) 12px;gap:7px;align-items:center;padding:8px 1px;border:0;border-bottom:1px solid #e4e8ee;border-radius:0;background:transparent;color:inherit;text-decoration:none;box-shadow:none;transition:color .12s ease,background .12s ease}
.dict-compound-link:before{content:counter(compound) ".";font-size:12px;color:#66748a;text-align:right}
.dict-compound-link:hover{background:#f7f9fc;color:#125aa8;transform:none;box-shadow:none}
.dict-compound-hanzi{width:auto;height:auto;border:0;border-radius:0;background:transparent;color:#183f75;display:inline;font:700 17px/1.4 KaiTi,STKaiti,"Kaiti SC",serif;overflow:visible}
.dict-compound-copy{min-width:0;display:flex;gap:8px;align-items:baseline;overflow:hidden}
.dict-compound-copy strong{flex:0 0 auto;font-size:12px;color:#175aa7;white-space:nowrap}
.dict-compound-copy small{min-width:0;font-size:12px;color:#4f5c70;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dict-compound-link>b{font-size:14px;color:#9ca6b5}
.dict-entry-page .dict-related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
.dict-entry-page .dict-related-link{display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:7px;align-items:baseline;min-height:0;padding:8px 1px;border:0;border-bottom:1px solid #e4e8ee;border-radius:0;background:transparent;text-decoration:none}
.dict-entry-page .dict-related-link strong{font:700 17px/1.35 KaiTi,STKaiti,"Kaiti SC",serif;color:#173f76}
.dict-entry-page .dict-related-link span{font-size:12px;font-weight:700;color:#175aa7;white-space:nowrap}
.dict-entry-page .dict-related-link p{margin:0;min-width:0;font-size:12px;color:#525f72;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* click-to-load stroke section */
.dict-stroke-card{padding:0!important;overflow:hidden}
.dict-stroke-details>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;padding:12px 15px;color:var(--dc-ink);user-select:none}
.dict-stroke-details>summary::-webkit-details-marker{display:none}
.dict-stroke-summary-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:#fff2e8;color:#c55c17;font:800 17px/1 KaiTi,STKaiti,"Kaiti SC",serif}
.dict-stroke-summary-copy{display:grid;gap:1px;min-width:0}
.dict-stroke-summary-copy strong{font-size:15px}
.dict-stroke-summary-copy small{font-size:11px;color:#7a8597;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dict-stroke-summary-action{margin-left:auto;font-size:11px;font-weight:750;color:#1761b7}
.dict-stroke-details[open] .dict-stroke-summary-action:after{content:"Thu gọn"}
.dict-stroke-details:not([open]) .dict-stroke-summary-action:after{content:"Xem cách viết"}
.dict-stroke-body{padding:0 15px 14px;border-top:1px solid #e6eaf0}
.dict-stroke-tabs{display:flex;gap:5px;overflow-x:auto;padding:10px 0 8px;scrollbar-width:thin}
.dict-stroke-tabs button{flex:0 0 auto;min-width:54px;border:1px solid #dfe4eb;border-radius:8px;background:#fff;padding:5px 8px;display:grid;gap:1px;place-items:center;color:#3f4d61}
.dict-stroke-tabs button span{font:700 22px/1.1 KaiTi,STKaiti,"Kaiti SC",serif}
.dict-stroke-tabs button small{font-size:9px}
.dict-stroke-tabs button.active{border-color:#e4a06f;background:#fff8f2;color:#a94b0f;box-shadow:none}
.dict-stroke-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:15px;align-items:start;padding-top:10px}
.dict-stroke-grid{position:relative;width:210px;aspect-ratio:1;margin:0;border:1px solid #dfb18e;border-radius:10px;overflow:hidden;background-color:#fff;background-image:linear-gradient(rgba(209,103,33,.14) 1px,transparent 1px),linear-gradient(90deg,rgba(209,103,33,.14) 1px,transparent 1px),linear-gradient(45deg,transparent calc(50% - .5px),rgba(209,103,33,.12) 50%,transparent calc(50% + .5px)),linear-gradient(-45deg,transparent calc(50% - .5px),rgba(209,103,33,.12) 50%,transparent calc(50% + .5px));background-size:50% 50%,50% 50%,100% 100%,100% 100%;display:grid;place-items:center}
.dict-stroke-grid svg{width:100%!important;height:100%!important;display:block}
.dict-stroke-placeholder{font:700 102px/1 KaiTi,STKaiti,"Kaiti SC",serif;color:#d2d8e1}
.dict-stroke-loading{display:block;text-align:left;color:#7e8796;font-size:10px;margin-top:5px;min-height:14px}
.dict-stroke-guide{display:grid;gap:9px;align-content:start}
.dict-stroke-current{display:grid;grid-template-columns:42px minmax(0,1fr);gap:2px 9px;align-items:center;padding:9px 10px;border:1px solid #ece1d8;border-radius:9px;background:#fff}
.dict-stroke-current small{grid-column:1/-1;color:#8b7463;font-size:9px;font-weight:800;text-transform:uppercase}
.dict-stroke-current strong{font:800 36px/1 KaiTi,STKaiti,"Kaiti SC",serif;color:#b95012}
.dict-stroke-current span{color:#59667a;font-size:12px}
.dict-stroke-actions{display:flex;gap:6px;flex-wrap:wrap}
.dict-stroke-actions button{min-height:34px;border-radius:8px;padding:0 10px;font-size:11px}
.dict-stroke-tips{margin:0;padding:0;list-style:none;display:grid;gap:4px}
.dict-stroke-tips li{position:relative;padding:5px 7px 5px 22px;border:0;border-radius:7px;background:#f7f8fa;color:#566276;font-size:11px}
.dict-stroke-tips li:before{content:"✓";position:absolute;left:7px;color:var(--dc-green);font-weight:900}
.dict-stroke-note{margin:0;color:#818a99;font-size:10px;line-height:1.45}

/* side cards and sequence */
.dict-entry-page .dict-right-column{gap:10px}
.dict-entry-page .dict-right-column .dict-panel{border-radius:12px}
.dict-entry-page .dict-info-card h2{font-size:14px;margin-bottom:7px}
.dict-entry-page .dict-info-card p{font-size:12px;line-height:1.5}
.dict-entry-page .dict-eyebrow{font-size:9px}
.dict-entry-page .dict-link-list{gap:5px}
.dict-entry-page .dict-link-list a,
.dict-entry-page .dict-link-list span{font-size:11px;padding:7px 8px;border-radius:7px}
.dict-entry-page .dict-entry-sequence{gap:8px}
.dict-entry-page .dict-entry-sequence a{min-height:60px;padding:9px 11px;border-radius:10px}
.dict-entry-page .dict-entry-sequence span{font-size:10px}
.dict-entry-page .dict-entry-sequence strong{font-size:18px}
.dict-entry-page .dict-entry-sequence small{font-size:10px}

@media(max-width:1180px){
  .dict-entry-page .dict-entry-layout{grid-template-columns:166px minmax(0,1fr)}
  .dict-entry-page .dict-right-column{display:none}
}
@media(max-width:900px){
  .dict-entry-page .dict-shell{padding-inline:10px}
  .dict-entry-page .dict-entry-layout{display:block}
  .dict-entry-page .dict-left-column{display:none}
  .dict-entry-page .dict-main-column{gap:8px}
  .dict-entry-page .dict-content-card{padding:11px 12px;border-radius:10px;scroll-margin-top:112px}
  .dict-deep-summary .dict-entry-hero{grid-template-columns:82px minmax(0,1fr);gap:11px;padding:12px}
  .dict-deep-summary .dict-entry-glyph{width:82px;height:82px;border-radius:10px}
  .dict-deep-summary .dict-entry-glyph strong{font-size:40px}
  .dict-deep-summary .dict-entry-glyph.dict-glyph-length-2 strong{font-size:29px}
  .dict-deep-summary .dict-entry-glyph.dict-glyph-length-3 strong{font-size:22px}
  .dict-deep-summary .dict-entry-glyph.dict-glyph-length-4 strong,
  .dict-deep-summary .dict-entry-glyph.dict-glyph-length-5 strong{font-size:17px}
  .dict-deep-summary .dict-entry-summary h1{font-size:24px}
  .dict-deep-summary .dict-entry-pinyin{font-size:14px;margin:2px 0}
  .dict-deep-summary .dict-entry-meaning-lead{font-size:12px;line-height:1.45;margin:3px 0 6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .dict-deep-summary .dict-result-meta{gap:3px}
  .dict-deep-summary .dict-chip{font-size:9px;padding:3px 6px}
  .dict-deep-summary .dict-entry-actions{grid-column:1/-1;margin-top:8px}
  .dict-deep-summary .dict-entry-facts{grid-column:1/-1;margin-top:8px}
  .dict-entry-page .dict-content-card>h2,.dict-card-heading h2{font-size:14px}
  .dict-entry-page .dict-content-card>p,.dict-entry-page .dict-content-card>ol,.dict-entry-page .dict-content-card>ul{font-size:12px}
  .dict-compound-grid,.dict-entry-page .dict-related-grid{grid-template-columns:1fr}
  .dict-stroke-layout{grid-template-columns:1fr}
  .dict-stroke-grid{width:min(100%,220px);margin:auto}
  .dict-stroke-loading{text-align:center}
}
@media(max-width:520px){
  .dict-entry-page .dict-breadcrumbs{font-size:10px;margin-block:6px}
  .dict-deep-summary .dict-entry-hero{grid-template-columns:68px minmax(0,1fr);gap:9px;padding:10px}
  .dict-deep-summary .dict-entry-glyph{width:68px;height:68px}
  .dict-deep-summary .dict-entry-glyph strong{font-size:34px}
  .dict-deep-summary .dict-entry-glyph.dict-glyph-length-2 strong{font-size:25px}
  .dict-deep-summary .dict-entry-glyph.dict-glyph-length-3 strong{font-size:19px}
  .dict-deep-summary .dict-entry-glyph.dict-glyph-length-4 strong,
  .dict-deep-summary .dict-entry-glyph.dict-glyph-length-5 strong{font-size:15px}
  .dict-deep-kicker{font-size:8px}
  .dict-deep-summary .dict-entry-summary h1{font-size:21px}
  .dict-deep-summary .dict-entry-pinyin{font-size:13px}
  .dict-deep-summary .dict-entry-meaning-lead{font-size:11.5px}
  .dict-deep-summary .dict-entry-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px}
  .dict-deep-summary .dict-entry-actions .dict-primary-button{grid-column:1/-1}
  .dict-deep-summary .dict-entry-actions button{font-size:11px;min-height:32px;padding-inline:7px}
  .dict-deep-summary .dict-entry-fact{min-width:82px;min-height:42px;padding:6px 7px}
  .dict-deep-summary .dict-entry-fact strong{font-size:11px}
  .dict-entry-page .dict-content-card{padding:10px}
  .dict-entry-page .dict-content-card>h2,.dict-card-heading h2{font-size:13.5px;margin-bottom:7px}
  .dict-entry-page .dict-example-zh{font-size:17px}
  .dict-compound-link{grid-template-columns:20px minmax(0,1fr) 10px;padding:7px 0}
  .dict-compound-hanzi{font-size:16px}
  .dict-compound-copy strong,.dict-compound-copy small{font-size:11px}
  .dict-entry-page .dict-related-link{grid-template-columns:auto auto minmax(0,1fr);gap:5px;padding:7px 0}
  .dict-entry-page .dict-related-link strong{font-size:16px}
  .dict-entry-page .dict-related-link span,.dict-entry-page .dict-related-link p{font-size:11px}
  .dict-stroke-details>summary{padding:10px}
  .dict-stroke-summary-icon{width:29px;height:29px;font-size:15px}
  .dict-stroke-summary-copy strong{font-size:13px}
  .dict-stroke-summary-copy small{font-size:10px}
  .dict-stroke-body{padding:0 10px 10px}
  .dict-stroke-grid{width:min(100%,200px)}
  .dict-stroke-placeholder{font-size:90px}
  .dict-stroke-actions{display:grid;grid-template-columns:1fr 1fr}
  .dict-stroke-actions .dict-primary-button{grid-column:1/-1}
}
@media(prefers-reduced-motion:reduce){.dict-compound-link{transition:none}}


/* V5.6.0: learning-order flat sections plus word-class cases */
.dict-flat-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:0 0 10px}
.dict-flat-heading>div{min-width:0}
.dict-flat-heading h2{margin:0!important;padding:0!important;font-size:15px!important;line-height:1.3;color:var(--dc-ink)}
.dict-flat-heading h2:before{display:none!important}
.dict-flat-heading p{margin:3px 0 0;font-size:11px;line-height:1.45;color:var(--dc-muted)}
.dict-flat-kicker{display:block;margin-bottom:2px;font-size:8px;font-weight:850;letter-spacing:.1em;color:var(--dc-blue)}
.dict-flat-count{flex:0 0 auto;padding:3px 7px;border-radius:999px;background:#f1f4f8;color:#69758a;font-size:9px;font-weight:750;white-space:nowrap}
.dict-flat-section{padding-block:12px!important}
.dict-definition-list,.dict-example-list{list-style:none;margin:0!important;padding:0!important}
.dict-definition-list li{display:grid;grid-template-columns:22px minmax(0,1fr);gap:9px;align-items:start;padding:9px 8px;border-top:1px solid var(--dc-line);min-width:0}
.dict-example-list li{counter-increment:flat-item;position:relative;padding:9px 8px 9px 34px;border-top:1px solid var(--dc-line)}
.dict-definition-list li:first-child,.dict-example-list li:first-child{border-top:0}
.dict-example-list{counter-reset:flat-item}
.dict-example-list li:before{content:counter(flat-item);position:absolute;left:4px;top:9px;width:20px;height:20px;border-radius:6px;background:var(--dc-blue-soft);color:var(--dc-blue);display:grid;place-items:center;font-size:10px;font-weight:850}
.dict-definition-number{display:grid!important;place-items:center;width:20px;height:20px;margin:0;border-radius:6px;background:var(--dc-blue-soft);color:var(--dc-blue)!important;font-size:10px!important;line-height:1!important;font-weight:850;position:static!important;transform:none!important;overflow:visible!important}
.dict-definition-text{display:block;min-width:0;padding:0!important;margin:0!important;font-size:13px!important;line-height:1.5!important;color:#34445e!important;overflow-wrap:anywhere}
.dict-usage-list{border-top:1px solid var(--dc-line)}
.dict-flat-row{display:grid;grid-template-columns:136px minmax(0,1fr);gap:14px;padding:9px 4px;border-bottom:1px solid var(--dc-line);font-size:12px;line-height:1.5}
.dict-flat-row:last-child{border-bottom:0}
.dict-flat-row>b{color:#21344f;font-size:11px}
.dict-flat-row>span{min-width:0;color:#4b5a70}
.dict-pattern-list{display:flex;gap:5px;flex-wrap:wrap}
.dict-pattern-list code{padding:4px 7px;border-radius:6px;background:#f5f7fa;color:#214f89;font:600 11px/1.35 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:normal}
.dict-example-list .dict-example-zh{margin:0 0 2px;font-size:17px;line-height:1.4;color:#153f78}
.dict-example-list .dict-example-pinyin{margin:0 0 2px;font-size:11.5px;line-height:1.4;color:#1761b5;font-weight:700}
.dict-example-list .dict-example-vi{margin:0;font-size:12px;line-height:1.45;color:#4e5b70}
.dict-near-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;border-top:1px solid var(--dc-line)}
.dict-near-list a{display:grid;grid-template-columns:auto auto minmax(0,1fr) 10px;align-items:baseline;gap:7px;padding:8px 2px;border-bottom:1px solid var(--dc-line);color:inherit;text-decoration:none;min-width:0}
.dict-near-list a:hover{background:#f8fafc}
.dict-near-list strong{font:700 17px/1.35 KaiTi,STKaiti,"Kaiti SC",serif;color:#173f76;white-space:nowrap}
.dict-near-list span{font-size:11px;font-weight:700;color:#1761b5;white-space:nowrap}
.dict-near-list p{margin:0;min-width:0;font-size:11.5px;color:#536176;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dict-near-list b{color:#9aa5b5}

/* radical + structure block stays high on the page but remains lightweight */
.dict-character-card{padding:12px 14px!important}
.dict-word-structure{display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:8px 12px;align-items:center;padding:8px 10px;border:1px solid var(--dc-line);border-radius:9px;background:#fafbfd}
.dict-word-structure>span{font-size:10px;color:var(--dc-muted)}
.dict-word-structure>strong{font-size:12px;color:var(--dc-ink)}
.dict-character-chips{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.dict-character-chips>span{display:flex;align-items:center;gap:5px;padding:3px 7px;border-radius:7px;background:#fff;border:1px solid #e4e9f0}
.dict-character-chips b{font:700 18px/1 KaiTi,STKaiti,"Kaiti SC",serif;color:#184d8b}
.dict-character-chips small{font-size:9px;color:#7c8798}
.dict-radical-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;margin-top:8px;border-top:1px solid var(--dc-line)}
.dict-radical-row{display:grid;grid-template-columns:38px 42px minmax(0,1fr);gap:8px;align-items:center;padding:8px 2px;border-bottom:1px solid var(--dc-line);min-width:0}
.dict-radical-character{display:grid;place-items:center;width:36px;height:36px;border-radius:8px;background:#eef5ff;color:#164c8d;font:700 23px/1 KaiTi,STKaiti,"Kaiti SC",serif}
.dict-radical-preview{display:grid;place-items:center;width:40px;height:40px;border-radius:8px;background:#fff8f2;border:1px solid #efd8c6;overflow:hidden}
.dict-radical-preview svg{width:36px;height:36px;display:block}
.dict-radical-preview>span{font:700 18px/1 KaiTi,STKaiti,"Kaiti SC",serif;color:#c45d1b}
.dict-radical-row>div{display:grid;gap:1px;min-width:0}
.dict-radical-row strong{font-size:11.5px;color:#20344e}
.dict-radical-row small{font-size:9.5px;line-height:1.35;color:#778397;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dict-character-card .dict-stroke-details{margin:10px -14px -12px;border-top:1px solid var(--dc-line)}
.dict-character-card .dict-stroke-details>summary{padding-inline:14px}
.dict-character-card .dict-stroke-body{padding-inline:14px}

@media(max-width:900px){
  .dict-flat-heading{margin-bottom:8px}
  .dict-flat-heading h2{font-size:14px!important}
  .dict-flat-row{grid-template-columns:112px minmax(0,1fr);gap:10px;padding:8px 2px;font-size:11.5px}
  .dict-near-list,.dict-radical-list{grid-template-columns:1fr}
  .dict-word-structure{grid-template-columns:1fr auto}
  .dict-character-chips{grid-column:1/-1;justify-content:flex-start}
}
@media(max-width:520px){
  .dict-character-card{padding:10px!important}
  .dict-flat-heading{gap:8px}
  .dict-flat-heading h2{font-size:13.5px!important}
  .dict-flat-count{font-size:8.5px;padding:3px 6px}
  .dict-definition-list li{grid-template-columns:20px minmax(0,1fr);gap:7px;padding:8px 3px}
  .dict-example-list li{padding:8px 3px 8px 29px}
  .dict-example-list li:before{left:1px;top:8px;width:19px;height:19px;font-size:9px}
  .dict-definition-number{width:19px;height:19px;font-size:9px!important}
  .dict-definition-text{font-size:11.5px!important}
  .dict-flat-row{display:block;padding:8px 2px}
  .dict-flat-row>b{display:block;margin-bottom:3px;font-size:10px}
  .dict-flat-row>span{display:block;font-size:11.5px}
  .dict-pattern-list{display:flex!important}
  .dict-pattern-list code{font-size:10px;padding:4px 6px}
  .dict-example-list .dict-example-zh{font-size:15px}
  .dict-example-list .dict-example-pinyin{font-size:10.5px}
  .dict-example-list .dict-example-vi{font-size:11px}
  .dict-near-list a{grid-template-columns:auto auto minmax(0,1fr) 8px;gap:5px;padding:7px 1px}
  .dict-near-list strong{font-size:15px}
  .dict-near-list span,.dict-near-list p{font-size:10.5px}
  .dict-word-structure{grid-template-columns:auto minmax(0,1fr)!important;padding:7px 8px;gap:5px 8px}
  .dict-word-structure>span{font-size:9px;white-space:nowrap}
  .dict-word-structure>strong{min-width:0;font-size:10.5px;text-align:left}
  .dict-character-chips b{font-size:16px}
  .dict-radical-row{grid-template-columns:34px 38px minmax(0,1fr);gap:7px;padding:7px 1px}
  .dict-radical-character{width:32px;height:32px;font-size:20px}
  .dict-radical-preview{width:36px;height:36px}
  .dict-radical-preview svg{width:32px;height:32px}
  .dict-radical-row strong{font-size:10.5px}
  .dict-radical-row small{font-size:8.8px}
  .dict-character-card .dict-stroke-details{margin:8px -10px -10px}
  .dict-character-card .dict-stroke-details>summary{padding-inline:10px}
  .dict-character-card .dict-stroke-body{padding-inline:10px}
}

/* V5.6.0: explicit word-class usage cases */
.dict-pos-cases{border-top:1px solid var(--dc-line)}
.dict-pos-case{padding:11px 3px;border-bottom:1px solid var(--dc-line)}
.dict-pos-case:last-child{border-bottom:0}
.dict-pos-case-head{display:grid;grid-template-columns:26px minmax(0,1fr);gap:9px;align-items:start}
.dict-pos-case-head>span{width:22px;height:22px;border-radius:6px;display:grid;place-items:center;background:#eaf2ff;color:#1764c0;font-size:10px;font-weight:850}
.dict-pos-case-head h3{margin:0;font-size:13px;line-height:1.35;color:#172b49}
.dict-pos-case-head p{margin:2px 0 0;font-size:11.5px;line-height:1.5;color:#58677c}
.dict-pos-case-body{margin:8px 0 0 35px;border-left:2px solid #edf1f6}
.dict-pos-row{display:grid;grid-template-columns:102px minmax(0,1fr);gap:10px;padding:7px 10px;border-top:1px solid #edf1f6;font-size:11.5px;line-height:1.5}
.dict-pos-row:first-child{border-top:0}
.dict-pos-row>b{color:#243750;font-size:10.5px}
.dict-pos-row ul{margin:0;padding-left:17px;color:#4b5a70}
.dict-pos-row li+li{margin-top:3px}
.dict-example-links{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.dict-example-links a{display:inline-flex;align-items:center;min-height:25px;padding:3px 8px;border:1px solid #d7e5fb;border-radius:6px;background:#f7fbff;color:#1761b5;font-size:10.5px;font-weight:750;text-decoration:none}
.dict-example-links a:hover{background:#eaf3ff}
.dict-example-links span{color:#7a8595;font-size:10.5px}
.dict-usage-notes{margin-top:8px;padding:9px 10px;border-radius:8px;background:#fff9ef;border:1px solid #f3e3bd;display:grid;grid-template-columns:150px minmax(0,1fr);gap:10px;font-size:11px;line-height:1.5}
.dict-usage-notes>b{color:#805416}
.dict-usage-notes ul{margin:0;padding-left:17px;color:#6b5a42}
.dict-example-list li{scroll-margin-top:88px}

@media(max-width:900px){
  .dict-pos-case{padding:9px 0}
  .dict-pos-case-head{grid-template-columns:24px minmax(0,1fr);gap:7px}
  .dict-pos-case-head>span{width:21px;height:21px;font-size:9px}
  .dict-pos-case-head h3{font-size:12px}
  .dict-pos-case-head p{font-size:10.5px}
  .dict-pos-case-body{margin-left:31px}
  .dict-pos-row{grid-template-columns:1fr;gap:4px;padding:7px 8px;font-size:10.5px}
  .dict-pos-row>b{font-size:10px;color:#1f426e}
  .dict-pattern-list code{font-size:10px;padding:3px 6px}
  .dict-example-links a{min-height:24px;font-size:10px}
  .dict-usage-notes{grid-template-columns:1fr;gap:4px;font-size:10.5px}
}
.dict-pos-examples{display:grid;gap:6px}
.dict-pos-example{display:grid;grid-template-columns:auto minmax(0,1fr);gap:1px 8px;padding:7px 8px;border:1px solid #e4e9f0;border-radius:7px;background:#fbfcfe}
.dict-pos-example>span{grid-row:1/4;align-self:start;padding:2px 5px;border-radius:5px;background:#eef4ff;color:#1761b5;font-size:8.5px;font-weight:800;white-space:nowrap}
.dict-pos-example>strong{font-size:14px;line-height:1.35;color:#173f76;font-weight:700}
.dict-pos-example>small{font-size:10.5px;line-height:1.35;color:#1761b5;font-weight:650}
.dict-pos-example>p{margin:0;font-size:10.5px;line-height:1.4;color:#536176}
.dict-pos-example-empty{color:#7a8595;font-size:10.5px}
@media(max-width:900px){
  .dict-pos-example{grid-template-columns:1fr;gap:2px;padding:6px 7px}
  .dict-pos-example>span{grid-row:auto;width:max-content}
  .dict-pos-example>strong{font-size:13px}
  .dict-pos-example>small,.dict-pos-example>p{font-size:10px}
}

/* V5.6.1 hotfix: explicit meaning-number columns prevent clipped first letters. */
.dict-entry-page .dict-definition-list>li::before{content:none!important;display:none!important}
.dict-entry-page .dict-definition-list>li>.dict-definition-number{position:static!important;float:none!important;inset:auto!important;z-index:auto!important}
.dict-entry-page .dict-definition-list>li>.dict-definition-text{position:static!important;visibility:visible!important;opacity:1!important;text-indent:0!important;clip:auto!important;clip-path:none!important}

/* V5.6.2: verified per-entry usage only + compound layout repair */
.dict-compound-link{grid-template-columns:22px auto minmax(0,1fr) 12px!important}
.dict-compound-copy{overflow:visible!important}
.dict-compound-copy strong{max-width:160px;overflow:hidden;text-overflow:ellipsis}
.dict-usage-pending{padding:11px 12px;border:1px solid #e1e7ef;border-radius:9px;background:#fafbfd;color:#4f5d72}
.dict-usage-pending strong{display:block;margin-bottom:4px;font-size:12px;color:#20344e}
.dict-usage-pending p{margin:0;font-size:11.5px;line-height:1.55}
@media(max-width:720px){
  .dict-compound-link{grid-template-columns:20px auto minmax(0,1fr) 10px!important}
  .dict-compound-copy{display:grid;gap:1px;align-items:start}
  .dict-compound-copy strong{max-width:none;font-size:11px}
  .dict-compound-copy small{font-size:10.5px}
  .dict-usage-pending{padding:9px 10px}
}
