:root{color-scheme:light;--paper:#f7f6f0;--surface:#fffef9;--ink:#273f34;--muted:#657365;--line:#dfE3d8;--green:#315e49;--soft:#eaf0e4;--gold:#a38043;--radius:15px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-synthesis:none;font-size:15px}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);line-height:1.65}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;touch-action:manipulation}a{color:inherit;text-underline-offset:3px}button:disabled{cursor:default;opacity:.5}button,input,select,a{outline-offset:3px}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #94ad88}button{border:0}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.4}.page-width{width:min(1392px,calc(100% - 64px));margin-inline:auto}.site-header{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:96px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;color:var(--green);text-decoration:none;font-size:25px;font-weight:760;letter-spacing:.06em;line-height:1.25;white-space:nowrap}.brand small{display:block;color:var(--muted);font-size:11px;font-weight:450;letter-spacing:.08em;margin-top:5px}.brand-mark{width:24px;height:32px;display:flex;justify-content:space-between;align-items:center}.brand-mark i{width:8px;height:30px;border:1.5px solid #57765d;border-radius:3px;background:#e7eddf}.brand-mark i:last-child{height:22px;background:#d7e2cd}.header-actions{display:flex;gap:9px}.header-button{min-height:44px;min-width:48px;padding:10px 13px;background:none;border-radius:9px;color:#536b58;font-size:14px}.header-button:hover,.header-button[aria-expanded=true]{background:#e9eddf;color:var(--green)}
.search-region{padding:35px 0 27px}.search-heading{display:flex;gap:24px;align-items:baseline;flex-wrap:wrap;margin-bottom:17px}.search-heading h1{font-size:28px;letter-spacing:-.03em;margin:0;font-weight:720}.search-heading p{font-size:14px;color:var(--muted);margin:0}.search-form{max-width:1000px;min-height:62px;display:flex;align-items:center;gap:13px;padding:6px 7px 6px 19px;background:var(--surface);border:1px solid #b7c7ae;border-radius:14px;box-shadow:0 3px 9px #314a2810}.search-form:focus-within{border-color:#698d69;box-shadow:0 0 0 3px #73956b18}.search-symbol{width:16px;height:16px;border:1.6px solid #7a8d75;border-radius:50%;position:relative;flex-shrink:0}.search-symbol:after{content:"";position:absolute;width:7px;height:1.6px;background:#7a8d75;right:-5px;bottom:-3px;rotate:45deg}.search-form input{flex:1;min-width:0;border:0;outline:0!important;background:none;padding:10px 4px;font-size:17px;color:var(--ink)}input::placeholder{color:#7b8576;opacity:1}.primary-button{min-height:46px;padding:11px 22px;border-radius:10px;background:var(--green);border:1px solid var(--green);color:#fffdf1;white-space:nowrap;font-size:15px;font-weight:650}.primary-button:hover{background:#254d3a}.examples{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:13px;min-height:34px}.example-label{font-size:12px;color:var(--muted);margin-right:3px}.chip,.condition{display:inline-flex;align-items:center;gap:5px;min-height:34px;padding:5px 11px;border:1px solid #d8dfcf;border-radius:20px;background:#fbfcf5;color:#5e7359;font-size:12px;text-decoration:none}.chip:hover{border-color:#9fb395;background:#edf2e5}.condition{min-height:32px;background:#e9f0e2;border-color:#cbd9bf;color:#476540}.condition button{padding:0 3px;background:transparent;color:#6d8561;min-width:20px;min-height:22px}.condition:hover{border-color:#a6bc99}.conditions{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.conditions:empty{display:none}
.query-overview{padding:15px 0 19px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:flex-start;gap:24px}.overview-copy{min-width:0}.search-summary{font-size:14px;color:#53664f;margin:0;min-height:25px}.scope-switch{display:flex;flex-shrink:0;padding:3px;border:1px solid #d9e0cf;border-radius:11px;background:#ecefe5;gap:2px}.scope-button{min-height:36px;padding:6px 13px;border-radius:8px;background:none;color:#69765f;font-size:13px;white-space:nowrap}.scope-button.active,.scope-button[aria-pressed=true]{background:var(--surface);color:#315d42;box-shadow:0 1px 3px #243e1c14}
.workspace{display:grid;grid-template-columns:176px minmax(0,1fr) 336px;gap:28px;align-items:start;min-height:460px}.filters{padding:6px 20px 20px 0;border-right:1px solid var(--line);position:sticky;top:20px;max-height:calc(100dvh - 40px);overflow:auto;scrollbar-width:thin}.filter-section{margin-bottom:26px}.filter-section h2{font-size:13px;font-weight:700;letter-spacing:.04em;margin:0 0 10px;color:#4b634e}.filter-buttons{display:flex;flex-direction:column;gap:5px}.filter-buttons button,.filter-buttons .chip{display:block;width:100%;text-align:left;min-height:39px;padding:8px 10px;font-size:13px;line-height:1.5;background:transparent;border:1px solid transparent;border-radius:8px;color:#677562}.filter-buttons button:hover{background:#edf1e5}.filter-buttons button.active,.filter-buttons button[aria-pressed=true]{color:#315e42;background:#e5eddd;border-color:#c7d7bb;font-weight:600}.filter-note,.filter-placeholder{color:#707d6a;font-size:11px;line-height:1.85}.filter-note{padding:0 4px}.result-section{min-width:0}.results-toolbar{min-height:46px;display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:9px}.results-toolbar h2{font-size:15px;font-weight:650;margin:6px 0 0;white-space:nowrap}.result-count{font-size:12px;font-weight:450;color:#758269;margin-left:7px}.group-control{display:flex;align-items:center;gap:7px;font-size:12px;color:#6d7a65;white-space:nowrap}.group-control select{max-width:158px;min-height:36px;padding:6px 25px 6px 10px;background:var(--surface);border:1px solid #d5ddcb;border-radius:8px;font-size:12px;color:#506749}.results{border-top:1px solid var(--line)}.result-row{position:relative;padding:18px 12px 19px;border-bottom:1px solid var(--line);background:transparent;cursor:pointer;min-width:0;transition:background .12s;border-radius:0;text-align:left;width:100%;display:block;color:inherit}.result-row:hover{background:#f0f3e8}.result-row.active,.result-row.selected,.result-row[aria-selected=true]{background:#edf3e6;box-shadow:inset 3px 0 #81a16f}.result-row:focus-visible{outline-offset:-3px}.word,.result-word{font-size:23px;line-height:1.5;font-weight:650;letter-spacing:.06em;color:#2c4d3a;margin:0;display:inline-block}.pinyin,.result-pinyin{font-size:13px;font-weight:400;color:#6b7c67;letter-spacing:.025em;margin:3px 0 7px}.meaning,.result-meaning{font-size:15px;line-height:1.8;color:#4c5e4c;margin:7px 0 0;overflow-wrap:anywhere}.tags,.result-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.tags span,.tags button,.tags .chip,.result-tags span{min-height:24px;padding:2px 7px;border:0;border-radius:5px;background:#ecefE2;color:#627458;font-size:11px;line-height:1.7}.group-heading{font-size:14px;line-height:1.5;letter-spacing:.02em;color:#58744e;padding:17px 11px 9px;background:#f0f2e8;margin:12px 0 0}.group-heading:first-child{margin-top:0}.group-heading small{font-size:11px;font-weight:400;color:#74836a;margin-left:7px}.result-row .reason,.result-reason{font-size:12px;color:#6e7e65;margin:7px 0 0;line-height:1.7}.empty-state,.empty,.initial-loading{padding:42px 15px;color:#6e7b65;line-height:1.9;font-size:14px}.empty-state h3,.empty h3{font-size:18px;margin-bottom:10px;color:#3f5b42}.loading-line{display:block;height:17px;width:62%;background:#e9edde;border-radius:5px;margin-bottom:13px}.loading-line.short{width:82%;height:12px}.initial-loading p{margin-top:21px;font-size:13px}.load-more{width:100%;min-height:45px;padding:10px 16px;border:1px solid #d1ddc5;background:#eff3e7;border-radius:10px;color:#55734c;font-size:14px;margin-top:20px}.load-more:hover{background:#e5eddb}
.detail-shell{position:sticky;top:20px;background:var(--surface);border:1px solid #dfe4d6;border-radius:15px;max-height:calc(100dvh - 40px);display:flex;flex-direction:column;overflow:hidden;min-width:0}.detail-topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 21px 12px;border-bottom:1px solid #eceee4;flex-shrink:0}.section-label{font-size:11px;letter-spacing:.08em;font-weight:650;color:#76866b}.close-button{min-width:44px;min-height:44px;padding:5px;border-radius:50%;background:#f3f5eb;color:#6b7a60;font-size:26px;line-height:1;border:1px solid #dde4d2;flex-shrink:0}.close-button:hover{background:#e9efdf}#detail-close{display:none}.detail-body{padding:23px 21px 27px;overflow:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin;overflow-wrap:anywhere}.detail-placeholder{padding:28px 0 36px}.detail-placeholder-mark{display:grid;place-items:center;width:45px;height:49px;font-size:24px;font-family:serif;color:#77906d;border:1px solid #d5dfcc;border-radius:6px;background:#f1f4e9;margin-bottom:25px}.detail-placeholder h2{font-size:18px;font-weight:550;margin:0 0 11px;color:#4d674b}.detail-placeholder p{font-size:14px;line-height:1.9;color:#6d7b65;margin:0}.detail-word{font-size:25px;letter-spacing:.09em;color:#294e37;margin:0 0 6px;font-weight:700}.detail-pinyin{font-size:15px;letter-spacing:.04em;color:#6c7d65;margin-bottom:20px}.detail-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:9px}.detail-save,.save-button{min-width:44px;min-height:40px;padding:7px 10px;background:#eef2e5;border-radius:9px;color:#658058;font-size:12px}.detail-meaning{font-size:16px;line-height:1.95;color:#3d563f;margin:0 0 20px}.detail-section{margin-top:23px}.detail-section h3,.detail-body h3{font-size:12px;letter-spacing:.04em;color:#7a866c;margin:20px 0 8px;font-weight:600}.detail-section p,.detail-example,.detail-derivation,.detail-body blockquote{font-size:14px;line-height:1.95;color:#56674f;margin:0}.detail-body blockquote{padding-left:12px;border-left:2px solid #d4dfc5}.detail-source{font-size:11px;line-height:1.8;color:#728167;margin-top:13px;overflow-wrap:anywhere}.detail-source a{color:#557a4d}.detail-body .tags{margin:15px 0}.detail-tabs,.related-tabs{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0}.detail-tabs button,.related-tabs button{min-height:35px;padding:6px 9px;font-size:12px;border-radius:7px;background:#f0f3e8;color:#6b7f5f}.detail-tabs button.active,.related-tabs button.active{background:#dfe9d4;color:#3c6336}.related-item,.related-row{display:block;width:100%;padding:12px 0;text-align:left;background:transparent;border-bottom:1px solid #e6eadf;color:#3a5d3e}.related-item .word,.related-row .word{font-size:20px}.related-item p,.related-row p{font-size:12px;color:#728069;line-height:1.7;margin:4px 0 0}.detail-shade{display:none}
.chain-panel{padding:23px 25px;border:1px solid #d2decb;border-radius:15px;background:#fdfcf4;margin:0 0 25px}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:20px}.panel-heading h2{font-size:21px;font-weight:600;margin:5px 0 0}.chain-form{display:flex;align-items:flex-end;gap:12px;max-width:940px}.field{flex:1;min-width:0}.field label{display:block;font-size:12px;color:#6f7c66;margin-bottom:6px}.field input,.field select{width:100%;min-height:46px;padding:10px 12px;background:#fffef8;border:1px solid #cddac2;border-radius:9px;color:#405e3d;font-size:15px}.mode-field{flex:0 1 230px}.chain-history{display:flex;gap:14px;align-items:flex-start;justify-content:space-between;margin-top:22px}.chain-trail{display:flex;flex-wrap:wrap;gap:8px;min-width:0}.chain-trail button,.chain-trail span{font-size:15px;color:#446740}.chain-trail button{min-height:36px;background:#eaf0df;border:1px solid #d7e0cc;border-radius:8px;padding:5px 10px}.chain-actions{display:flex;gap:13px;flex-shrink:0}.text-button{min-height:36px;padding:6px 0;background:transparent;font-size:12px;color:#758564;text-decoration:underline;text-underline-offset:3px}.chain-summary{font-size:13px;line-height:1.8;color:#607455;margin:15px 0 10px}.chain-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:0 23px;max-height:340px;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain}.chain-results .result-row{padding:13px 7px}.chain-results .word{font-size:21px}.chain-results .meaning{font-size:14px}.chain-results .pinyin{font-size:12px}
.page-footer{border-top:1px solid var(--line);margin-top:44px;padding:20px 0 29px;display:flex;gap:18px;align-items:center;color:#76826d;font-size:11px}.page-footer span{font-weight:650;letter-spacing:.05em}.page-footer p{margin:0}.modal{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:22px;background:#283d2c55;backdrop-filter:blur(4px)}.modal-card{width:min(620px,100%);max-height:calc(100dvh - 44px);overflow:auto;padding:30px;background:var(--surface);border:1px solid #e0e6d5;border-radius:18px;color:#52664c;position:relative;overscroll-behavior:contain;font-size:14px;line-height:1.9}.modal-card h2{font-size:23px;font-weight:650;color:#31553a;margin-bottom:15px}.modal-card h3{font-size:16px;color:#456540}.modal-card p{margin-bottom:15px}.modal-card a{color:#4e7948}.modal-close{float:right;min-width:44px;min-height:44px;background:#eff2e5;border-radius:50%;font-size:24px;color:#718361}.toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);z-index:70;max-width:calc(100% - 32px);padding:12px 19px;border:1px solid #cad6c0;border-radius:12px;background:#f8fbf0f5;color:#4b6846;font-size:13px;text-align:center;box-shadow:0 7px 25px #253e2418;pointer-events:none}.fatal{padding:20px;margin:20px auto;max-width:900px;border:1px solid #d1b9a0;border-radius:12px;color:#755b40;background:#fff5e5;font-size:14px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:16px;top:10px;z-index:100;background:#fff;padding:12px}.noscript{padding:20px;color:#6a774f}
@media(max-width:1180px){.page-width{width:calc(100% - 44px)}.workspace{grid-template-columns:145px minmax(0,1fr) 305px;gap:21px}.filters{padding-right:13px}.detail-body{padding:20px 18px}.detail-topbar{padding-inline:18px}}
@media(max-width:1000px){.workspace{grid-template-columns:minmax(0,1fr) 305px;gap:25px}.filters{grid-column:1/-1;display:flex;align-items:flex-start;gap:25px;position:static;max-height:none;overflow:visible;padding:0 0 14px;border-right:0;border-bottom:1px solid var(--line)}.filter-section{flex:1;min-width:0;margin:0}.filter-buttons{flex-direction:row;flex-wrap:wrap}.filter-buttons button,.filter-buttons .chip{width:auto;min-height:35px;padding:6px 10px;font-size:12px;border-color:#dde4d3;border-radius:20px;background:#fafbf3}.filter-note{max-width:190px;flex:0 1 190px;margin:0}.result-section{grid-column:1}.detail-shell{grid-column:2}.search-heading{gap:12px}.search-form{max-width:none}}
@media(max-width:760px){.page-width{width:calc(100% - 32px)}.site-header{min-height:82px;gap:10px}.brand{font-size:23px;gap:9px}.brand-mark{width:21px;height:28px}.brand-mark i{width:7px;height:27px}.brand-mark i:last-child{height:20px}.header-actions{gap:3px}.header-button{min-width:44px;padding:8px 9px;font-size:13px}.search-region{padding:25px 0 22px}.search-heading{display:block;margin-bottom:15px}.search-heading h1{font-size:25px}.search-heading p{font-size:14px;margin-top:8px}.search-form{min-height:55px;gap:8px;padding:5px 5px 5px 13px;border-radius:12px}.search-form input{font-size:16px;padding:9px 3px}.search-symbol{width:14px;height:14px}.search-form .primary-button{font-size:14px;min-height:43px;padding:10px 15px}.examples{gap:6px;margin-top:12px}.example-label{font-size:11px}.chip{font-size:11px;min-height:33px;padding:5px 10px}.query-overview{flex-direction:column;gap:12px;padding:14px 0 17px}.search-summary{font-size:14px}.scope-switch{align-self:flex-start}.scope-button{font-size:12px;min-height:36px;padding:6px 15px}.workspace{display:block;min-height:350px}.filters{display:block;padding-bottom:15px;margin-bottom:18px}.filter-section{margin-bottom:14px}.filter-section:last-of-type{margin-bottom:0}.filter-section h2{font-size:12px;margin-bottom:7px}.filter-buttons{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain;padding:1px 0 3px;gap:7px}.filter-buttons button,.filter-buttons .chip{flex-shrink:0;min-height:36px;font-size:12px;white-space:nowrap}.filter-placeholder{font-size:11px}.filter-note{display:none}.results-toolbar{align-items:center;min-height:41px;margin-bottom:7px}.results-toolbar h2{font-size:14px;margin:0}.group-control select{font-size:11px;max-width:144px;min-height:36px}.group-control{font-size:11px;gap:5px}.result-row{padding:17px 8px 18px}.word,.result-word{font-size:22px}.meaning,.result-meaning{font-size:15px;line-height:1.85}.pinyin,.result-pinyin{font-size:13px}.tags span,.tags button,.tags .chip{font-size:11px}.detail-shell{position:fixed;inset:auto 0 0;transform:translateY(105%);z-index:40;width:100%;height:min(82dvh,760px);max-height:calc(100dvh - 32px);border-radius:20px 20px 0 0;border:1px solid #d5dfcd;border-bottom:0;visibility:hidden;transition:transform .2s ease,visibility .2s;box-shadow:0 -10px 40px #233c281a;padding-bottom:env(safe-area-inset-bottom)}body.detail-open{overflow:hidden}body.detail-open .detail-shell{transform:translateY(0);visibility:visible}.detail-topbar{padding:9px 17px 8px}.detail-topbar:before{content:"";position:absolute;top:5px;left:calc(50% - 18px);width:36px;height:3px;border-radius:4px;background:#d6ddce}.detail-topbar .section-label{font-size:11px}#detail-close{display:block}.detail-body{padding:20px 23px 27px;flex:1}.detail-word{font-size:25px}.detail-pinyin{font-size:15px}.detail-meaning{font-size:16px}.detail-shade{position:fixed;inset:0;z-index:35;background:#253d2d55;backdrop-filter:blur(2px)}body.detail-open .detail-shade{display:block}.chain-panel{padding:18px 15px;margin:0 0 20px}.panel-heading{margin-bottom:15px}.panel-heading h2{font-size:19px}.chain-form{display:grid;grid-template-columns:1fr auto;gap:10px}.chain-form .field:first-child{grid-column:1/-1}.mode-field{grid-column:1}.field label{font-size:11px}.field input,.field select{font-size:15px}.chain-form .primary-button{font-size:14px;padding-inline:14px}.chain-history{display:block;margin-top:17px}.chain-actions{gap:19px;margin-top:7px}.chain-results{grid-template-columns:1fr;max-height:330px}.chain-summary{font-size:13px}.page-footer{margin-top:30px;padding:20px 0 25px}.modal{padding:14px}.modal-card{max-height:calc(100dvh - 28px);padding:24px 21px;border-radius:15px}.modal-card h2{font-size:22px}.toast{bottom:18px;font-size:12px}}
@media(max-width:360px){.page-width{width:calc(100% - 26px)}.brand{font-size:21px;letter-spacing:.03em;gap:8px}.brand small{font-size:11px;letter-spacing:.03em}.header-button{padding-inline:7px;min-width:42px}.site-header{min-height:77px;gap:7px}.search-heading h1{font-size:24px}.search-form{gap:6px}.search-symbol{display:none}.search-form input{padding-left:5px}.search-form .primary-button{padding-inline:13px}.examples .example-label{width:100%}.result-count{margin-left:4px}.group-control select{max-width:139px}.detail-body{padding-inline:19px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
.result-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.word-button{background:none;text-align:left;padding:0;min-height:40px;font-weight:650}.row-save{font-size:11px;padding:7px 9px;min-height:35px;background:transparent;color:#7f8f73;white-space:nowrap;align-self:flex-start}.row-save:hover{background:#e4edda;border-radius:7px}.result-row>.meaning{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.group-note{font-size:12px;color:#7a896f;margin:0;padding:14px 10px}.group-heading{cursor:pointer;list-style-position:inside;border-radius:8px}.result-group{margin-bottom:12px}.result-group .result-row{margin-inline:8px;width:calc(100% - 16px)}.detail-actions{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 20px}.chain-add{min-height:36px;padding:6px 13px;border-radius:8px;border:1px solid #d1dec4;background:#eaf1df;color:#56764b;font-size:13px;flex-shrink:0}.related-caption,.related-empty{font-size:12px;color:#7b896f;line-height:1.8}.header-button.active{background:#e6eedc;color:#315e49}.license-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.8}#chain-results .empty-state{padding:15px 5px}.empty-state>.chip{margin:7px 6px 0 0}

.chain-filter{max-width:420px;margin:0 0 18px}.chain-filter input{width:100%}.raw-meaning{margin:8px 0 18px;color:var(--muted);font-size:12px}.raw-meaning summary{cursor:pointer;min-height:32px}.results-toolbar{scroll-margin-top:20px}
/* Tap-first 1.1: text remains the main material. */
button,input,select,summary{-webkit-tap-highlight-color:transparent}button{touch-action:manipulation}.chip,.scope-button,.filter-buttons button,.tags button,.related-tabs button,.chain-add,.chain-trail button,.detail-save,.word-button,.text-button,.row-save{min-height:44px;min-width:44px}.condition{padding:0 0 0 12px}.condition button{min-width:44px;min-height:44px;font-size:20px}.word-button{font-size:25px}.meaning{font-size:17px}.detail-meaning{font-size:18px}.tags button,.related-tabs button{font-size:13px}.filter-buttons button{font-size:15px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-heading h2{font-size:18px;margin:0}.lookup-actions{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap}.lookup-actions>details{flex:1;min-width:160px}.lookup-actions summary,.optional-entry summary{cursor:pointer;min-height:44px;padding:10px 12px;color:#496a50;font-size:14px}.lookup-actions .search-form{margin-top:10px;max-width:650px}.voice-note,.voice-status{font-size:12px;line-height:1.7;color:#6b7c64;margin:8px 0 0}.voice-status:empty{display:none}.search-region{padding:25px 0 16px}.daily-region{border-top:1px solid var(--line);padding:14px 0 18px}.daily-words{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:10px}.daily-word{display:flex;flex-direction:column;text-align:left;background:#fffdf6;border:1px solid #d5dfcb;border-radius:12px;padding:16px;color:#38573e;min-width:0;gap:4px}.daily-word:hover{border-color:#8ca97c;background:#f1f6e9}.daily-word strong{font-size:24px;letter-spacing:.07em}.daily-meaning{font-size:15px;line-height:1.7}.daily-clue{font-size:12px;color:#7b866e;margin-top:4px}.recent-region{padding-bottom:16px}.recent-words,.chain-seeds,.chain-letters{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.recent-region .section-heading h2{font-size:15px}.play-entries{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:4px 0 20px}.play-entries button{display:flex;gap:12px;align-items:center;text-align:left;border-radius:11px;background:#e9f0df;padding:15px 17px;min-height:68px;color:#365d3a;border:1px solid #d0dec4}.play-entries strong{font-size:18px;white-space:nowrap}.play-entries span{font-size:13px;line-height:1.6}.browse-modes{display:flex;gap:9px;margin:0 0 16px}.browse-modes button{min-height:48px;min-width:90px;padding:10px 18px;border:1px solid #cbd9bf;border-radius:10px;background:#fcfdf6;color:#5d7357;font-size:16px}.browse-modes button.active{color:#fff;background:#355f45;border-color:#355f45}.browse-content{padding:0 0 18px}.browse-note{font-size:14px;margin:0 0 10px;color:#66795e}.browse-grid{display:flex;flex-wrap:wrap;gap:8px}.browse-key{width:52px;min-height:48px;font-size:22px;background:#fffef8;border:1px solid #d2ddc8;border-radius:9px;color:#395e3c}.browse-key:hover{background:#e7efdc}.chain-seeds{margin:0 0 16px}.chain-mode-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.chain-mode-row>select{min-height:44px;padding:8px 12px;background:#fffdf6;border:1px solid #cbd8be;border-radius:8px;font-size:15px;color:#47633d}.chain-mode-row>label{font-size:14px;color:#63765b}.optional-entry{flex-basis:100%}.optional-entry .chain-form{display:flex;margin-top:7px}.optional-entry input{min-width:0;flex:1;min-height:46px;border:1px solid #cbd8be;border-radius:8px;background:#fffdf6;padding:8px 12px;font-size:16px}.chain-letters{margin:10px 0}.chain-results{max-height:480px}.chain-trail button{font-size:18px}.chain-panel{scroll-margin-top:12px}body:not([data-browse=meaning]) .workspace{grid-template-columns:minmax(0,1fr) 336px}.page-footer{line-height:1.7}.page-footer p{font-size:12px}
@media(min-width:901px) and (max-width:1100px){.workspace{grid-template-columns:minmax(0,1fr) 330px}.filters{grid-column:1/-1;position:static;display:flex;gap:24px;max-height:none;border-right:0;border-bottom:1px solid var(--line);padding:0 0 16px}.filter-section{flex:1}.filter-buttons{flex-direction:row;flex-wrap:wrap}.filter-buttons button{width:auto;border:1px solid #d8e1ce}.filter-note{display:none}.detail-shell{grid-column:2}.result-section{grid-column:1}body:not([data-browse=meaning]) .workspace{grid-template-columns:minmax(0,1fr) 330px}}
@media(max-width:900px){.page-width{width:calc(100% - 32px)}.workspace,body:not([data-browse=meaning]) .workspace{display:block}.filters{display:block;position:static;max-height:none;border:0;border-bottom:1px solid var(--line);padding:0 0 16px;margin-bottom:18px}.filter-section{margin-bottom:12px}.filter-section h2{font-size:14px}.filter-buttons{display:flex;flex-direction:row;flex-wrap:wrap;gap:7px}.filter-buttons button{width:auto;font-size:14px;min-height:44px;border:1px solid #d8e1ce;background:#fffef6}.filter-note{display:none}.detail-shell{position:fixed;inset:auto 0 0;transform:translateY(105%);z-index:40;width:100%;height:min(85dvh,900px);max-height:calc(100dvh - 24px);border-radius:20px 20px 0 0;visibility:hidden;box-shadow:0 -10px 40px #233c281a;padding-bottom:env(safe-area-inset-bottom)}body.detail-open{overflow:hidden}body.detail-open .detail-shell{transform:translateY(0);visibility:visible}#detail-close{display:block}.detail-body{flex:1;font-size:17px;padding:20px 28px 28px}.detail-topbar{padding:9px 20px}.detail-shade{position:fixed;inset:0;z-index:35;background:#253d2d55;backdrop-filter:blur(2px)}body.detail-open .detail-shade{display:block}.detail-word{font-size:29px}.detail-body h3{font-size:14px}.detail-example,.detail-derivation{font-size:16px}.detail-source{font-size:12px}.detail-actions .chip{font-size:15px}.related-row{min-height:70px}.query-overview{flex-wrap:wrap}.search-region{padding-top:21px}.daily-words{gap:10px}.daily-word{padding:14px}.daily-word strong{font-size:24px}.chip{font-size:13px}.chain-results{max-height:48dvh}.filter-buttons button[data-extra=true]{display:none}.filters.expanded .filter-buttons button[data-extra=true]{display:block}.filter-expand{margin-top:7px}.result-row .tags button{font-size:13px}.results-toolbar{scroll-margin-top:16px}}
@media(max-width:600px){.site-header{flex-wrap:wrap;gap:5px;padding-top:12px;min-height:84px}.header-actions{margin-left:auto}.search-heading h1{font-size:25px}.daily-words{grid-template-columns:1fr}.daily-word{display:grid;grid-template-columns:1fr auto;gap:2px 8px;padding:12px 15px}.daily-word .pinyin{font-size:12px;align-self:center}.daily-meaning,.daily-clue{grid-column:1/-1}.daily-word strong{font-size:22px}.daily-clue{display:none}.play-entries{gap:9px}.play-entries button{display:block;padding:12px}.play-entries strong{font-size:17px}.play-entries span{display:block;font-size:12px;margin-top:5px}.browse-modes{gap:6px}.browse-modes button{flex:1;min-width:0;padding:9px;font-size:15px}.browse-key{width:calc((100% - 40px)/6)}.lookup-actions{gap:8px}.lookup-actions>details{flex-basis:100%}.lookup-actions>.primary-button{flex:1}.chain-panel{padding:17px 12px}.detail-body{padding:19px 21px}.voice-note{font-size:11px}.examples .chip{font-size:12px;min-height:44px}.conditions{gap:6px}.result-row>.meaning{font-size:16px}.scope-button{font-size:12px;min-height:44px}.group-control select{min-height:44px}.page-footer{display:block}.page-footer p{margin-top:5px}}

/* Native grouping remains finger-sized on tablets too. */
.group-control select{min-height:44px}

/* 1.2: four explicit destinations on touch screens, without changing the data. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}body{overflow-wrap:break-word}.mobile-nav{display:none}.daily-fold{margin-bottom:15px;border:1px solid var(--line);border-radius:12px;background:#fffdf7}.daily-fold>summary{min-height:48px;padding:11px 16px;cursor:pointer;font-size:14px;color:#57724e}.daily-fold .daily-region{padding:8px 16px 14px}.daily-fold .section-heading h2{display:none}.daily-fold .section-heading{justify-content:flex-end}.daily-fold .daily-words{margin-top:2px}.daily-fold .daily-clue{display:none}.detail-body{scrollbar-gutter:stable}.browse-modes{scroll-margin-top:12px}.voice-note{max-width:65ch}.voice-status{font-weight:600}.lookup-actions input,.chain-form input{font-size:16px}.detail-body .detail-meaning{font-size:19px;line-height:1.9}.detail-topbar{position:relative}.chain-results{overscroll-behavior:auto}.filter-buttons button{min-width:44px}
@media(min-width:901px){.daily-fold:not([open])>.daily-region{display:block}.daily-fold>summary{display:none}.daily-fold{border:0}.daily-fold .section-heading h2{display:block}.daily-fold .section-heading{justify-content:space-between}}
@media(max-width:900px){body{padding-bottom:calc(82px + env(safe-area-inset-bottom))}.page-width{width:calc(100% - max(28px,env(safe-area-inset-left)) - max(28px,env(safe-area-inset-right)));max-width:720px}.site-header{min-height:72px;gap:10px}.brand{font-size:23px;gap:9px}.brand small{font-size:11px}.header-actions{gap:0}.header-actions #chain-toggle,.header-actions #saved-toggle{display:none}.header-button{font-size:13px;min-width:44px}.search-region{padding:18px 0 13px}.search-heading{gap:5px;margin-bottom:12px}.search-heading h1{font-size:23px}.search-heading p{font-size:13px;width:100%}.lookup-actions{display:grid;grid-template-columns:1fr auto;gap:6px}.lookup-actions>.primary-button{font-size:15px;padding-inline:14px;min-height:48px}.lookup-actions>#dictation-help{font-size:13px}.lookup-actions>details{grid-column:1/-1;min-width:0}.lookup-actions summary{padding-block:8px;min-height:44px;font-size:13px}.lookup-actions .search-form{margin-top:2px;padding-left:8px;gap:4px}.search-form input{font-size:16px}.search-form .primary-button{padding-inline:13px;font-size:14px}.voice-note{font-size:11px;margin:1px 0 0}.examples{margin-top:7px;gap:6px}.example-label{display:none}.examples .chip{font-size:12px;padding-inline:10px}.browse-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0 0 12px}.browse-modes button{min-width:0;padding:9px 5px;min-height:48px;font-size:15px}.browse-content{padding-bottom:10px}.browse-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.browse-key{width:100%;min-height:45px}.daily-fold{margin:0 0 12px}.daily-fold>summary{font-size:13px}.daily-words{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;padding:2px 0 8px}.daily-word{flex:0 0 78%;scroll-snap-align:start;padding:13px;min-height:0}.daily-word strong{font-size:22px}.daily-meaning{font-size:14px}.recent-region{padding-bottom:10px}.recent-words{flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px}.recent-words button{flex-shrink:0}.recent-region .section-heading h2{font-size:13px}.workspace{min-height:0}.query-overview{padding:12px 0;gap:9px;flex-wrap:wrap}.scope-switch{width:100%;justify-content:center}.scope-switch button{flex:1;font-size:13px}.search-summary{font-size:13px}.filters{margin-bottom:10px;padding-bottom:8px}.filter-section{margin-bottom:8px}.filter-section h2{font-size:12px;margin-bottom:6px}.filter-buttons{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;gap:6px;scrollbar-width:thin}.filter-buttons button{flex-shrink:0;white-space:nowrap;font-size:14px;padding-inline:12px}.filters:not(.expanded) .filter-buttons button[data-extra=true]{display:block}.filters .filter-note,.filter-expand{display:none}.results-toolbar{gap:8px;align-items:center;scroll-margin-top:10px}.results-toolbar h2{font-size:15px;margin:0}.group-control{font-size:12px}.group-control select{min-height:44px;font-size:16px;max-width:140px}.result-row{padding:15px 9px}.word-button{font-size:24px}.result-row .meaning{font-size:16px}.result-row>.pinyin{font-size:13px}.tags button{font-size:12px}.row-save{font-size:12px}.condition{font-size:12px}.condition button{font-size:20px}.mobile-nav{position:fixed;z-index:25;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:6px max(12px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#fffef9f5;border-top:1px solid #d7e0cf;box-shadow:0 -4px 18px #2f50370c;backdrop-filter:blur(12px)}.mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:56px;border-radius:11px;background:transparent;color:#74826c;font-size:12px;font-weight:600}.mobile-nav button>span{font-size:21px;line-height:1.25}.mobile-nav button[aria-current=page]{background:#e9f1e2;color:#315e49}.page-footer{margin-top:20px;padding-bottom:12px}.detail-shell{height:min(91dvh,1000px);max-height:calc(100dvh - max(12px,env(safe-area-inset-top)));inset:auto 0 0;overscroll-behavior:contain}.detail-topbar{padding:10px 17px 8px}.detail-body{padding:17px 22px 24px}.detail-word{font-size:29px}.detail-pinyin{font-size:16px}.detail-actions button{font-size:14px;min-height:46px}.detail-body .detail-meaning{font-size:20px}.detail-body .detail-example,.detail-body .detail-derivation{font-size:16px}.detail-body h3{font-size:13px}body.detail-open{position:fixed;width:100%;overflow:hidden}.chain-panel{padding:18px 14px;margin-top:16px}.chain-results{max-height:none;overflow:visible}.chain-mode-row{gap:8px}.chain-mode-row select{font-size:16px;max-width:100%}.chain-trail{gap:5px}.chain-trail button{font-size:16px}.chain-seeds button{font-size:14px}.play-entries{display:grid;grid-template-columns:1fr;gap:14px;margin:22px 0}.play-entries button{min-height:112px;flex-direction:column;align-items:flex-start;gap:8px;padding:20px}.play-entries strong{font-size:24px}.play-entries span{font-size:15px}.site-header,.search-region,.browse-modes,.daily-fold,.recent-region,.play-entries,.chain-panel,.query-overview,.workspace{min-width:0}
body[data-mobile-view=explore] .play-entries,body[data-mobile-view=explore] #chain-panel{display:none}
body[data-mobile-view=chain] .search-region,body[data-mobile-view=chain] .browse-modes,body[data-mobile-view=chain] .browse-content,body[data-mobile-view=chain] .daily-fold,body[data-mobile-view=chain] .recent-region,body[data-mobile-view=chain] .play-entries,body[data-mobile-view=chain] .query-overview,body[data-mobile-view=chain] .workspace{display:none}
body[data-mobile-view=saved] .search-region,body[data-mobile-view=saved] .browse-modes,body[data-mobile-view=saved] .browse-content,body[data-mobile-view=saved] .daily-fold,body[data-mobile-view=saved] .recent-region,body[data-mobile-view=saved] .play-entries,body[data-mobile-view=saved] #chain-panel,body[data-mobile-view=saved] .filters,body[data-mobile-view=saved] .scope-switch,body[data-mobile-view=saved] .conditions{display:none!important}
body[data-mobile-view=play] .search-region,body[data-mobile-view=play] .browse-modes,body[data-mobile-view=play] .browse-content,body[data-mobile-view=play] .daily-fold,body[data-mobile-view=play] .recent-region,body[data-mobile-view=play] #chain-panel,body[data-mobile-view=play] .query-overview,body[data-mobile-view=play] .workspace{display:none}
body:not([data-mobile-view=explore]) .page-footer{display:none}
}
@media(max-width:360px){.page-width{width:calc(100% - 24px)}.brand{font-size:21px}.search-heading h1{font-size:21px}.lookup-actions>#dictation-help{padding-inline:9px;font-size:12px}.browse-modes button{font-size:14px}.browse-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.group-control select{max-width:128px}.detail-body{padding-inline:18px}}
.scope-details>summary{cursor:pointer;min-height:44px;padding:8px 12px;font-size:13px;color:#5d7653}.scope-details{flex-shrink:0}.scope-details .scope-switch{margin-top:6px}@media(min-width:901px){.scope-details>summary{display:none}}@media(max-width:900px){.examples{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}.examples .chip{flex-shrink:0;white-space:nowrap}.query-overview{align-items:center;padding-block:4px}.scope-details .scope-switch{width:100%;margin-block:4px}.scope-details[open]{width:100%}.query-overview .search-summary{min-height:0;font-size:12px}.scope-details:not([open])>summary{padding-right:0}.page-footer{clear:both}}
.quick-categories{display:none}.all-categories>summary{cursor:pointer;min-height:44px;padding:10px 4px;font-size:13px;color:#52794c}.all-categories #tag-filters button[data-extra=true]{display:block}@media(min-width:901px){.all-categories>summary{display:none}}@media(max-width:900px){.quick-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:2px 0 8px}.quick-topic{min-height:62px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;padding:9px 12px;border:1px solid #d4dfcb;border-radius:11px;background:#fffef7;color:#3e6346;text-align:left}.quick-topic strong{font-size:15px;font-weight:650}.quick-topic small{font-size:11px;color:#7c8c70}.quick-topic[aria-pressed=true]{background:#e6efde;border-color:#9ab38b}.all-categories[open]{margin-bottom:12px}.all-categories>summary{font-size:13px}.all-categories .filter-section{margin-top:12px}.all-categories .filter-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:7px}.all-categories .filter-buttons button{white-space:normal;text-align:left;font-size:14px;width:100%;min-height:48px}.query-overview{border:0}.filters{padding-bottom:8px}.workspace{position:relative}.result-section{scroll-margin-top:12px}}
.voice-lookup>summary{min-height:44px;padding:8px 0;font-size:13px;color:#55764b;cursor:pointer}.voice-lookup[open]>.lookup-actions{margin-top:6px}@media(min-width:901px){.voice-lookup>summary{display:none}}@media(max-width:900px){.search-region{padding:15px 0 8px}.search-heading{margin-bottom:3px}.search-heading h1{font-size:22px}.voice-lookup>summary{font-size:13px}.quick-topic{min-height:64px}.quick-topic strong{font-size:16px}.query-overview{padding-block:2px}.browse-modes{margin-bottom:7px}}
