/* Small dictionary card; inline words preserve native selection and text input. */
.wordToken{cursor:pointer;text-decoration:underline;text-decoration-color:#a5b3df;text-decoration-style:dotted;text-underline-offset:3px;border-radius:3px;touch-action:manipulation;user-select:text;-webkit-user-select:text}
.wordToken:hover{background:#edf1ff;color:#4057a0}.wordToken:focus-visible{outline:2px solid #7a8dd2;outline-offset:3px;background:#edf1ff}
.wordCardLayer{position:fixed;inset:0;z-index:150;background:#12223b29}
.wordCardPanel{position:fixed;box-sizing:border-box;width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 28px);overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:#fff;color:#20293c;border:1px solid #d8e0ee;border-radius:20px;box-shadow:0 14px 65px #1422413d;font:14px/1.65 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;outline:none}
.wordCardTop{display:flex;justify-content:space-between;align-items:center;gap:10px;position:sticky;top:0;background:#fffffff5;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);z-index:1;padding:8px 10px 7px 18px;border-bottom:1px solid #eef1f6}
.wordCardEyebrow{font-size:11px;letter-spacing:.5px;color:#7e889e}.wordCardPanel button{font:inherit;cursor:pointer;min-width:44px;min-height:44px;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.wordCardClose{font-size:27px!important;line-height:1;border:0;border-radius:11px;background:#f0f3f9;color:#65738c;width:44px}.wordCardBack{border:0;border-radius:10px;background:#edf1fc;color:#5063a4;padding:7px 11px;font-size:12px!important}
.wordCardBody{padding:15px 19px 19px;overflow-wrap:anywhere}.wordCardHeading{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:space-between}.wordCardHeading h2,.wordCardBody>h2{font-size:29px;line-height:1.3;letter-spacing:-.5px;margin:0;color:#20293c;max-width:100%;overflow-wrap:anywhere}
.wordCardVoice{border:0;background:#eef2fe;color:#4e62a6;border-radius:11px;padding:7px 12px;font-size:12px!important}.wordCardIpa{font-size:15px;color:#69758d;margin:7px 0 10px}.wordCardMeaning{padding:11px 13px;margin:10px 0;background:#f0f3ff;border-radius:11px;font-size:15px;white-space:pre-wrap}
.wordCardSection{border-top:1px solid #ebeff5;padding-top:12px;margin-top:15px}.wordCardSection h3{font-size:13px;color:#586782;margin:0 0 9px;font-weight:800}.wordCardSection p{margin:6px 0}.wordCardExample{border-left:3px solid #9eaee0;padding:1px 0 1px 11px;margin:9px 0 12px}.wordCardExample p{margin:5px 0}.wordCardZh{font-size:12px;color:#758198}.wordCardSense{padding-top:4px;margin-bottom:11px}.wordCardSenseNo{display:inline-grid;place-items:center;min-width:21px;height:21px;font-size:11px;border-radius:7px;background:#eff2fa;color:#596aa5;font-weight:700}
.wordCardCollocations{display:grid;gap:7px}.wordCardCollocations>div{padding:8px 11px;border:1px solid #e8edf5;border-radius:10px;background:#fbfcff}.wordCardCollocations strong{display:block;font-weight:650}.wordCardCollocations span{display:block;font-size:12px;color:#758198;margin-top:3px}.wordCardConfusion{padding:10px 12px;margin:8px 0;background:#fafbfe;border:1px solid #e8edf5;border-radius:10px}.wordCardFamily{font-size:13px}
.wordCardSources{border-top:1px solid #edf0f5;margin-top:15px;padding-top:8px;font-size:12px;color:#758198}.wordCardSources summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.wordCardSources a{display:block;color:#6476b2;padding:4px 0;overflow-wrap:anywhere}.wordCardFooter{margin-top:16px}.wordCardAction{border:0;border-radius:12px;padding:10px 14px;background:#515dc0;color:#fff;font-weight:750!important;width:100%}.wordCardAction:disabled{background:#eaf5ed;color:#427d59;opacity:1;cursor:default}.wordCardNotice{font-size:12px;color:#758198;margin:8px 0;min-height:0}
@supports not (height:100dvh){.wordCardPanel{max-height:calc(100vh - 28px)}}
@media(max-width:540px){.wordCardPanel{border-radius:20px;width:calc(100vw - 24px)}.wordCardBody{padding:14px 16px 17px}.wordCardHeading h2,.wordCardBody>h2{font-size:27px}.wordCardSection{margin-top:13px}.wordCardLayer{background:#12223b38}}
@media(prefers-reduced-motion:reduce){.wordCardPanel{scroll-behavior:auto}}
