/* Search and pronunciations on the left; the reading column stays spacious. */
.ws-dictionary { display:grid; grid-template-columns:minmax(240px,.78fr) minmax(0,1.55fr); gap:clamp(30px,5vw,72px); align-items:start; padding:16px 0 46px; color:var(--ws-user-ink,#183d2f); }
.ws-dictionary * { box-sizing:border-box; }
.ws-dict-language [data-dict-source],.ws-dict-language [data-dict-target] { display:inline-flex; align-items:center; justify-content:center; min-width:64px; min-height:42px; padding:9px 17px; border:1px solid #ffffffcf; border-radius:999px; background:linear-gradient(145deg,#ffffffad,#eaf3e57a); box-shadow:inset 0 1px 1px #fff,0 3px 9px #163e2820; -webkit-backdrop-filter:blur(16px) saturate(1.25); backdrop-filter:blur(16px) saturate(1.25); cursor:pointer; }
.ws-dict-main { min-width:0; }
.ws-dict-results { padding-bottom:17px; border-bottom:1px solid #708e7929; margin-bottom:9px; }
.ws-dict-sidebar { position:sticky; top:110px; min-width:0; padding:12px 0; max-height:calc(100dvh - 125px); overflow-y:auto; scrollbar-width:thin; }
.ws-dict-search .eyebrow { display:block; margin-bottom:12px; font-size:calc(11px * var(--ws-font-scale)); letter-spacing:.12em; }
.ws-dict-search-row { display:flex; gap:8px; align-items:stretch; }
.ws-dict-search-row input { min-width:0; width:100%; font-size:calc(19px * var(--ws-font-scale)); font-weight:500; border-radius:24px; padding:13px 18px; margin:0; }
.ws-dict-search-row button { width:48px; min-width:48px; min-height:48px; padding:12px; display:grid; place-items:center; }
.ws-dict-search-row svg { width:21px;height:21px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round; }
.ws-dict-word-head { margin:22px 2px 14px; }
.ws-dict-term { font-size:calc(clamp(29px,3.3vw,43px) * var(--ws-font-scale)); font-weight:650; line-height:1.18; letter-spacing:-.025em; margin:0 0 10px; overflow-wrap:anywhere; }
.ws-dict-term:empty { display:none; }
.ws-dict-pronunciation { color:#53675c; font-size:calc(14px * var(--ws-font-scale)); margin:0; line-height:1.7; overflow-wrap:anywhere; }
.ws-dict-voices,.ws-dict-personal { display:flex; flex-wrap:wrap; gap:9px; }
.ws-dict-voices button,.ws-dict-personal button { min-height:42px; padding:8px 17px; font-size:calc(14px * var(--ws-font-scale)); }
.ws-dict-voices span { margin-left:7px; color:#3f8164; }
.ws-dict-personal { margin-top:12px; padding-bottom:22px; border-bottom:1px solid #7891802b; }
.ws-dict-book-count { margin-left:6px; font-variant-numeric:tabular-nums; }
.ws-dict-status { min-height:1.7em; font-size:calc(12px * var(--ws-font-scale)); margin:13px 2px 8px; line-height:1.7; color:#617266; }
.ws-dict-book-filter { display:grid; gap:8px; margin-top:18px; font-size:calc(13px * var(--ws-font-scale)); }
.ws-dict-book-filter input { font-size:calc(15px * var(--ws-font-scale)); min-width:0; padding:10px 13px; }
.ws-dict-list-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:4px 2px 12px; }
.ws-dict-list-head h3 { margin:0; font-size:calc(12px * var(--ws-font-scale)); font-weight:500; color:#637768; }
.ws-dict-list-head button { font-size:calc(11px * var(--ws-font-scale)); min-height:36px; padding:6px 10px; }
.ws-dict-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; max-height:228px; overflow-y:auto; overscroll-behavior:contain; padding:3px 4px 8px; scrollbar-width:thin; }
button.ws-dict-result { width:100%; min-width:0; text-align:left; display:grid; gap:5px; padding:13px 16px; border-radius:17px; }
.ws-dict-result strong { font-size:calc(16px * var(--ws-font-scale)); font-weight:600; overflow-wrap:anywhere; }
.ws-dict-result span { color:#657469; font-size:calc(12px * var(--ws-font-scale)); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; }
.ws-dict-result[aria-current='true'] { outline:1px solid #648b6f70; outline-offset:1px; }
.ws-dict-save[aria-pressed='true'] { color:#38694f !important; }
.ws-dict-book[aria-pressed='true'] { outline:1px solid #648b6f70; }
.ws-dict-more { margin-top:12px; width:100%; font-size:calc(13px * var(--ws-font-scale)); }
.ws-dict-local-note { display:block; margin:20px 3px 0; font-size:calc(11px * var(--ws-font-scale)); color:#65796a; }
.ws-dict-empty-list { font-size:calc(13px * var(--ws-font-scale)); color:#65796a; line-height:1.9; margin:4px 2px; }
.ws-dict-detail { min-width:0; padding:8px 0; }
.ws-dict-detail h1 { font-size:calc(clamp(29px,3vw,42px) * var(--ws-font-scale)); margin:9px 0 22px; line-height:1.25; overflow-wrap:anywhere; }
.ws-dict-detail-head { padding:8px 0 0; }
.ws-dict-sections { display:flex; flex-wrap:wrap; gap:8px 17px; margin:0 0 10px; }
.ws-dict-sections a { color:#5c7462; text-decoration:none; font-size:calc(12px * var(--ws-font-scale)); min-height:32px; display:inline-flex; align-items:center; border-bottom:1px solid #77917a40; }
.ws-dict-section { padding:27px 0 32px; border-bottom:1px solid #708e7929; scroll-margin-top:95px; }
.ws-dict-section h2 { font-size:calc(15px * var(--ws-font-scale)); margin:0 0 21px; font-weight:650; }
.ws-dict-section p { margin:10px 0; line-height:1.9; font-size:calc(16px * var(--ws-font-scale)); overflow-wrap:anywhere; }
.ws-dict-definition { display:flex; align-items:baseline; gap:13px; }
.ws-dict-number { color:#809086; font-size:.8em; min-width:8px; }
.ws-dict-section small,.ws-dict-section p.ws-dict-source-note { font-size:calc(12px * var(--ws-font-scale)); color:#6c7c70; }
.ws-dict-section dl { margin:0; }
.ws-dict-section dl > div { display:flex; align-items:baseline; gap:20px; margin:9px 0; }
.ws-dict-section dt { color:#657469; min-width:85px; font-size:calc(13px * var(--ws-font-scale)); }
.ws-dict-section dd { margin:0; }
.ws-dict-section dd button { padding:6px 13px; min-height:36px; font-size:calc(14px * var(--ws-font-scale)); }
.ws-dict-section details { padding:10px 0; }
.ws-dict-section summary { font-size:calc(13px * var(--ws-font-scale)); cursor:pointer; padding:8px 0; }
.ws-dict-original { white-space:pre-wrap; overflow-wrap:anywhere; font-size:calc(15px * var(--ws-font-scale)); line-height:1.95; margin-top:13px; color:#3e5447; }
.ws-dict-source { margin-top:25px; font-size:calc(11px * var(--ws-font-scale)); color:#728275; line-height:1.8; }
.ws-dict-source a { color:inherit; }
.ws-dict-welcome { padding:55px 0; }
.ws-dict-welcome h1 { font-family:var(--ws-slogan-font); font-weight:400; font-size:calc(42px * var(--ws-font-scale)); }
.ws-dict-welcome p { font-size:calc(15px * var(--ws-font-scale)); line-height:1.9; max-width:31em; color:#607664; }
.ws-dict-welcome button { font-size:calc(13px * var(--ws-font-scale)); }
.ws-dictionary [hidden] { display:none !important; }
[data-dict-speaking] { outline:2px solid #749b7b; outline-offset:2px; }
@media (orientation:portrait),(max-width:760px) {
 .ws-dictionary { grid-template-columns:minmax(0,1fr); gap:16px; padding-top:4px; }
 .ws-dict-sidebar { position:static; max-height:none; overflow:visible; }
 .ws-dict-search-row input { font-size:calc(21px * var(--ws-font-scale)); }
 .ws-dict-word-head { margin-top:20px; }
 .ws-dict-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); max-height:240px; gap:9px; }
 .ws-dict-detail { border-top:1px solid #708e7929; padding-top:24px; }
 .ws-dict-detail-head h1 { display:none; }
 .ws-dict-welcome { padding:20px 0; }
 .ws-dict-detail-head > .eyebrow { display:none; }
 .ws-dict-sections { margin-bottom:0; }
 .ws-dict-section { padding:24px 0 28px; }
}
@media (max-width:420px) { .ws-dict-section p { font-size:calc(15px * var(--ws-font-scale)); } .ws-dict-section dl > div { gap:10px; } }
@media (max-width:360px) { .ws-dict-list { grid-template-columns:minmax(0,1fr); } }
.ws-dict-language { display:flex; align-items:center; gap:9px; margin-bottom:14px; color:#254b35; font-size:calc(13px * var(--ws-font-scale)); }
html[data-ws-button-theme] .ws-dict-language button { min-height:37px; padding:5px 13px; font-size:inherit; color:#254b35!important; }
.ws-dict-language [data-dict-swap] { width:39px; padding:3px; font:22px/1 sans-serif; }
.ws-dict-language [data-dict-target] { font-weight:500; }
.ws-dict-single-result { display:none; }
.ws-dict-status:empty { min-height:0; margin:0; }

.ws-version-check { padding:2px 5px; min-height:30px; font:inherit; color:inherit; border:0; box-shadow:none; background:transparent; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }

.ws-dict-query-modes { display:flex; gap:7px; margin:10px 0; }
.ws-dict-query-modes button { min-height:32px; padding:5px 12px; font-size:calc(12px*var(--ws-font-scale)); }
.ws-dict-query-modes [aria-pressed="true"] { outline:1px solid #547e6570; outline-offset:1px; }
.ws-dict-search-row textarea { min-width:0; width:100%; min-height:58px; max-height:250px; padding:13px 18px; margin:0; resize:vertical; border-radius:23px; font:inherit; font-size:calc(18px*var(--ws-font-scale)); line-height:1.55; color:inherit; }
.ws-translation-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.ws-translation-heading h2,.ws-dict-no-exact h2 { font-size:calc(18px*var(--ws-font-scale)); font-weight:550; }
.ws-translation-heading button { font-size:calc(12px*var(--ws-font-scale)); padding:7px 13px; }
.ws-translation-text { font-size:calc(clamp(21px,2.2vw,29px)*var(--ws-font-scale)); line-height:1.85; white-space:pre-wrap; overflow-wrap:anywhere; margin:24px 0; user-select:text; -webkit-user-select:text; }
.ws-translation-result>small,.ws-translation-note { color:#597060; font-size:calc(12px*var(--ws-font-scale)); line-height:1.8; }
.ws-translation-result .actions { margin:24px 0 14px; }
.ws-translation-result .actions button,.ws-dict-no-exact button { font-size:calc(13px*var(--ws-font-scale)); }
