.language-picker-dialog{box-sizing:border-box;width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;color:#f5f5ed;background:#171923;border:1px solid #6e7653;border-radius:16px;overflow:hidden;font-family:inherit;overscroll-behavior:contain}
.language-picker-dialog::backdrop{background:#070a10d9;backdrop-filter:blur(3px)}
.language-picker-surface{display:flex;flex-direction:column;gap:10px;box-sizing:border-box;max-height:calc(100dvh - 26px);padding:18px}
.language-picker-header{display:flex;align-items:center;gap:12px;flex-shrink:0}.language-picker-header h2{min-width:0;flex:1;margin:0;font:inherit;font-size:1.3rem;font-weight:800;line-height:1.25;overflow-wrap:anywhere}
.language-picker-dialog button,.language-picker-dialog input{box-sizing:border-box;font:inherit;color:inherit}
.language-picker-close,.language-picker-clear{display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;border:1px solid #5c626f;border-radius:9px;background:#292d39;cursor:pointer;font-size:1.4rem}
.language-picker-search-label{font-size:.86rem;font-weight:700;color:#e0e7c6;flex-shrink:0}.language-picker-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;flex-shrink:0}
.language-picker-search input{width:100%;min-width:0;min-height:46px;padding:10px 12px;border:1px solid #798361;border-radius:9px;background:#10131c;font-size:16px;line-height:1.4}.language-picker-search input::-webkit-search-cancel-button{-webkit-appearance:none}
.language-picker-hint,.language-picker-status{margin:0;font-size:.78rem;line-height:1.5;color:#bfc8ba;flex-shrink:0}.language-picker-status{min-height:1.5em;color:#d9e8a5}
.language-picker-list{list-style:none;padding:0;margin:2px 0;display:flex;flex-direction:column;gap:8px;min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding:6px;touch-action:pan-y}
.language-picker-list li{margin:0;padding:0}.language-picker-option{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 28px;gap:4px 10px;width:100%;min-height:70px;padding:12px 14px;text-align:left;border:1px solid #51596a;border-radius:10px;background:#242837;cursor:pointer;touch-action:manipulation}
.language-picker-option strong{grid-column:1;font-size:1rem;line-height:1.4;font-weight:750;overflow-wrap:anywhere}.language-picker-option small{grid-column:1;font-size:.76rem;line-height:1.4;color:#c2c9d2;overflow-wrap:anywhere}.language-picker-check{grid-column:2;grid-row:1/3;align-self:center;justify-self:center;color:#dbed9a;font-weight:800;visibility:hidden}.language-picker-option[aria-pressed=true]{border-color:#c5dc84;background:#303c2b}.language-picker-option[aria-pressed=true] .language-picker-check{visibility:visible}
.language-picker-dialog button:focus-visible,.language-picker-dialog input:focus-visible{outline:2px solid #e9f6b9;outline-offset:2px}.language-picker-dialog [hidden]{display:none!important}
@media(max-width:360px){.language-picker-surface{padding:14px;gap:8px}.language-picker-header h2{font-size:1.15rem}.language-picker-option{padding:11px 12px}}

/* Recognisable even when the visitor cannot read the current UI language. */
[data-language-control]::before{content:"";display:inline-block;width:1.08em;height:1.08em;vertical-align:-.16em;margin-inline-end:.42em;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.8%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%279.3%27/%3E%3Cellipse cx=%2712%27 cy=%2712%27 rx=%274.3%27 ry=%279.3%27/%3E%3Cpath d=%27M3 12h18%27/%3E%3C/svg%3E") center/contain no-repeat}
@media(max-width:540px){.school-header{gap:6px;flex-wrap:wrap}.world-header-tools{margin-inline-start:auto;max-width:100%;justify-content:flex-end;flex-wrap:wrap}.world-header-tools #language-switch{min-height:44px}.dialog-language{max-inline-size:12em;overflow:hidden;text-overflow:ellipsis}.language-picker-dialog{max-inline-size:100%}}
