/* Explore word pickers; count and legend left, arrangement right. */
#collection .browse-tools{display:grid;grid-template-columns:minmax(200px,1fr) auto auto auto;gap:26px;align-items:center;padding:14px 0 12px;border-bottom:0}
#collection .browse-tools .search{margin:0;min-width:0;width:100%;max-width:none;grid-column:auto}
.picker-field{min-width:0;position:relative}
.picker-label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.word-picker{padding:0;min-height:44px;display:flex;align-items:center;gap:8px;width:fit-content;max-width:100%;font:500 14px/1.35 General,Arial,sans-serif;letter-spacing:0;text-align:left;background:transparent;color:var(--ink);border:0;border-radius:0}
.word-picker>span{white-space:nowrap}
.word-picker svg{width:11px;height:11px;flex:0 0 11px;fill:none;stroke:currentColor;stroke-width:1.4;transition:transform .18s}
.word-picker:hover svg{transform:translateY(1px)}
.word-picker[aria-expanded=true] svg{transform:rotate(180deg)}
.word-picker:focus-visible{outline:2px solid #66775e;outline-offset:4px;border-radius:2px}
#collection .browse-tools .view-switch{margin:0 0 0 8px;justify-self:end;flex-shrink:0;background:transparent;border:0;gap:3px;padding:0}
#collection .browse-tools .view-switch button{min-height:36px;padding:6px 9px;gap:5px;border-radius:3px;background:transparent;color:#6c7465;font-size:14px}
#collection .browse-tools .view-switch button span{font-size:11px}
#collection .browse-tools .view-switch button[aria-pressed=true]{background:#2631250c;color:var(--ink);box-shadow:none}
#collection .results-line{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 18px;border-top:1px solid var(--line);padding:8px 0 19px}
.results-meta{display:flex;align-items:center;gap:13px;min-width:0;font-size:11px;line-height:1.35;color:#697362}
#collection .results-meta #result-count{margin:0;min-width:0;color:#697362;font-size:11px}
#collection .results-meta .wasta-key{margin:0;padding-left:13px;border-left:1px solid #26312522;font-size:9px;letter-spacing:0;gap:5px;white-space:nowrap;flex:0 0 auto;color:#697362}
#collection .results-meta .wasta-dot{width:6px;height:6px;flex:0 0 6px;background:#b87475;border:0;box-shadow:none}
.arrange-control{display:flex;align-items:center;gap:14px;justify-self:end;width:fit-content;padding:0;background:transparent;border:0;border-radius:0}
.arrange-control button{min-height:44px;padding:0;display:flex;align-items:center;justify-content:center;color:#76806e;background:transparent;white-space:nowrap;font-size:11px;line-height:1.35;border:0;border-radius:0}
.arrange-control button span{padding:5px 0;border-bottom:1px solid transparent}
.arrange-control button[aria-pressed=true]{color:var(--ink);font-weight:500;background:transparent;box-shadow:none}
.arrange-control button[aria-pressed=true] span{border-bottom-color:#54624c}
.arrange-control button:hover{color:var(--ink)}
.arrange-control button:focus-visible{outline:2px solid #66775e;outline-offset:4px;border-radius:2px}
#collection .results-line #reset-filters{grid-column:1/-1;justify-self:start;margin:0;padding:5px 0 8px;color:#697362;font-size:10px}
.choice-dialog{width:min(390px,calc(100vw - 44px));max-height:calc(100dvh - 64px);padding:30px 28px 18px;border:1px solid #2631251f;border-radius:10px;background:#f2f0e7;color:#263125;box-shadow:0 20px 70px #0e190c28}
.choice-dialog::backdrop{background:#18231345;backdrop-filter:blur(3px)}
.choice-dialog h2{font:400 27px/1.2 Georgia,'Times New Roman',serif;letter-spacing:-.025em;margin:0 0 20px}
.choice-close{position:absolute;right:12px;top:13px;width:44px;height:44px;display:grid;place-items:center;font-size:24px;color:#64705c}
.choice-option{width:100%;text-align:left;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:17px 0;min-height:58px;border-top:1px solid #26312520;background:transparent}
.choice-copy{display:flex;flex-direction:column;gap:5px}
.choice-name{font:500 15px/1.35 General,Arial,sans-serif;letter-spacing:0}
.choice-note{font-size:10px;color:#697362}
.choice-tick{display:grid;place-items:center;width:20px;height:20px;flex:0 0 20px}
.choice-tick svg{width:14px;height:14px;fill:none;stroke:#344b38;stroke-width:1.6;visibility:hidden}
.choice-option[aria-pressed=true] .choice-tick svg{visibility:visible}
.choice-option:hover .choice-name{color:#4a6543}
.choice-option:focus-visible{outline:2px solid #66775e;outline-offset:4px;border-radius:3px}
body:has(.choice-dialog[open]){overflow:hidden}
@media(min-width:701px) and (max-width:1000px){#collection .browse-tools{grid-template-columns:minmax(160px,1fr) auto auto auto;gap:17px}#collection .browse-tools .view-switch{margin-left:0}#collection .browse-tools .view-switch button{padding-inline:6px}.word-picker{font-size:13px}}
@media(max-width:700px){
 #collection .browse-tools{grid-template-columns:auto auto minmax(0,1fr);gap:0 18px;padding:12px 0 7px}
 #collection .browse-tools .search{grid-column:1/-1;padding-bottom:12px;margin-bottom:6px}
 .word-picker{font-size:12px;min-height:44px;gap:6px}
 .word-picker svg{width:10px;height:10px;flex-basis:10px}
 #collection .browse-tools .view-switch{grid-column:3;grid-row:2;width:auto;margin:0;gap:0;justify-self:end}
 #collection .browse-tools .view-switch button{width:32px;min-height:44px;padding:0;justify-content:center;font-size:14px;position:relative;background:transparent;border-radius:0}
 #collection .browse-tools .view-switch button[aria-pressed=true]{background:transparent}
 #collection .browse-tools .view-switch button[aria-pressed=true]::after{content:'';position:absolute;bottom:7px;left:10px;right:10px;border-bottom:1px solid #54624c}
 #collection .browse-tools .view-switch button span{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #collection .results-line{gap:0 12px;padding:4px 0 13px}
 .results-meta{gap:8px}
 #collection .results-meta #result-count{font-size:10px;line-height:1.35}
 #collection .results-meta .wasta-key{font-size:9px;gap:4px;padding-left:8px}
 #collection .results-meta .wasta-dot{width:5px;height:5px;flex-basis:5px}
 .arrange-control{gap:12px}
 .arrange-control button{font-size:11px}
 .choice-dialog{inset:auto 0 0;margin:0 auto;width:100%;max-width:100%;max-height:85dvh;border:0;border-radius:18px 18px 0 0;padding:30px 24px calc(20px + env(safe-area-inset-bottom));box-shadow:0 -15px 60px #14210d25}
 .choice-dialog::before{content:'';position:absolute;top:10px;left:calc(50% - 16px);width:32px;height:3px;border-radius:3px;background:#26312525}
 .choice-dialog h2{font-size:26px;margin-bottom:18px;padding-top:5px}
 .choice-close{top:24px;right:12px}
 .choice-option{padding:17px 0;min-height:62px}
 .choice-name{font-size:16px}
}
@media(max-width:360px){#collection .browse-tools{column-gap:12px}.arrange-control{gap:10px}.arrange-control button{font-size:10px}}
@media(prefers-reduced-motion:reduce){.word-picker svg{transition:none}}
