.word-lookup-token{cursor:help;border-radius:2px}
.word-lookup-token:focus-visible{outline:2px solid #547342;outline-offset:2px}
.word-lookup-active{background:#fff2c7;box-shadow:0 1px 0 #e8dcad}
.word-lookup-panel{position:fixed;z-index:2000;left:var(--lookup-x,20px);top:var(--lookup-y,80px);width:330px;max-width:calc(100vw - 20px);max-height:70dvh;overflow:auto;box-sizing:border-box;padding:12px 22px 9px;background:#fff5bf;color:#293b29;border:1px solid #e1d18d;border-radius:4px 4px 15px 4px;box-shadow:0 10px 30px #20322230;font-size:12px;line-height:1.6}
.word-lookup-panel[hidden]{display:none}
.word-lookup-close{position:absolute;top:3px;right:6px;border:0;background:transparent;font:inherit;font-size:24px;color:#526044;cursor:pointer;width:32px;height:32px}
.word-lookup-item+.word-lookup-item{border-top:1px solid #e2d6a4;margin-top:0;padding-top:0}
.word-lookup-item strong{font-size:14px;font-weight:700;overflow-wrap:anywhere}
.word-lookup-item p{font-size:11px;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.word-lookup-message{margin:4px 0 10px}.word-lookup-dictionary{color:#31583c;font-weight:600;text-decoration:underline;text-underline-offset:3px}.word-lookup-hint{font-size:12px;color:#6c7458;margin-bottom:0}
@media(pointer:coarse),(max-width:760px){.word-lookup-panel{left:10px;right:10px;top:auto;bottom:max(10px,env(safe-area-inset-bottom));width:auto;max-width:none;max-height:50dvh;border-radius:16px;padding:14px 22px 11px}.word-lookup-close{width:44px;height:44px;top:0;right:4px}.word-lookup-token{cursor:pointer}}
.word-lookup-source{display:block;font-size:11px;line-height:1.5;color:#52673d;text-decoration:none;overflow-wrap:anywhere}
.word-lookup-source:hover{text-decoration:underline}
.word-lookup-copy{display:flex;gap:5px;margin:4px 0;align-items:center}
.word-lookup-target{flex:1;min-width:0;max-width:100%;padding:5px 22px 5px 7px;border:1px solid #cfca9c;border-radius:5px;background:#fffdf0;color:#31583c;font:inherit;font-size:12px}
.word-lookup-copy-button{flex:none;padding:5px 9px;border:1px solid #567344;border-radius:5px;background:#567344;color:#fff;font:inherit;font-size:12px;cursor:pointer}
.word-lookup-copy-button:disabled{opacity:.5;cursor:default}
.word-lookup-item .word-lookup-copy-message{font-size:11px;color:#795432}
@media(pointer:coarse),(max-width:760px){.word-lookup-target{font-size:17px}.word-lookup-copy-button{min-height:36px}}

.word-lookup-token::selection,.word-lookup-token *::selection{background:#f3e5b7;color:inherit}

.word-lookup-expand{display:inline-flex;align-items:center;padding:2px 6px;margin:3px 0;border:1px solid #e1d39d;border-radius:6px;background:#fff9d8;color:#77804f;font:600 11px/1.5 "Segoe UI","Malgun Gothic",Arial,sans-serif;cursor:pointer}
.word-lookup-expand:hover{background:#fffce9;border-color:#cdbb7b}.word-lookup-expand:focus-visible{outline:2px solid #9caa71;outline-offset:2px}
.word-lookup-item .word-lookup-more-meanings{padding:3px 0;color:#687348}.word-lookup-source-toggle{font-size:10px;margin:2px 0}
.word-lookup-more-meanings[hidden],.word-lookup-more-sources[hidden]{display:none}
@media(pointer:coarse),(max-width:760px){.word-lookup-expand{min-height:28px;padding:4px 8px}}
