.language-control{position:relative;display:inline-flex;flex-direction:row;align-items:center;flex-shrink:0;gap:0;margin:0;color:#65564b}
.language-control>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
.language-control::before,.language-control::after{content:"";position:absolute;top:50%;pointer-events:none}
.language-control::before{left:12px;width:16px;height:16px;transform:translateY(-50%);background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cellipse cx='12' cy='12' rx='4' ry='9'/%3E%3Cpath d='M3 12h18'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cellipse cx='12' cy='12' rx='4' ry='9'/%3E%3Cpath d='M3 12h18'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}
.language-control::after{right:12px;width:5px;height:5px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-70%) rotate(45deg)}
#language-select,#help-language-select{appearance:none;-webkit-appearance:none;width:auto;min-width:128px;max-width:100%;margin:0;padding-inline:36px 28px;cursor:pointer;transition:background .15s,transform .15s}
#language-select{font-size:12px;min-height:40px;padding-block:9px}
@media(max-width:700px){#language-select{font-size:11px;padding-block:8px}}
.language-control:has(select:disabled){opacity:.45}
#language-select:disabled,#help-language-select:disabled{cursor:not-allowed}
html[data-theme="dark"] :is(.topbar,.help-footer) .language-control{color:#ead6b7}
.topbar{height:auto;min-height:94px;gap:16px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}
.top-actions{flex-wrap:wrap;gap:10px}
#home .home-pool-pair>div>span[data-i18n]{font-size:inherit;color:inherit}
.language-notice,.localization-scope{max-width:1200px;margin:1rem auto;padding:.8rem 1rem;border:1px solid var(--line,#b8a99a);border-radius:.7rem;font-size:.88rem}
.language-notice[hidden]{display:none}
.help-language-note{margin:0;padding:.7rem 1.2rem;font-size:.85rem}
@media(max-width:600px){.language-notice,.localization-scope{margin:.6rem}}
.table-heading{flex-wrap:wrap;gap:12px}
.table-heading>div:first-child{flex:1 1 15rem;min-width:0}
.heading-actions{flex-wrap:wrap;max-width:100%;gap:10px}
#resources,.honors-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.resource-card h2,.table-heading h1{overflow-wrap:anywhere}
.editorial-language{font-size:.8rem;color:var(--muted)}
.help-footer{flex-wrap:wrap}
.help-footer .language-control{margin-left:auto}
/* Text enlargement must also compact the default layout, not only a custom one. */
#table{container:combat-page / inline-size}
.layout-panel{container-type:inline-size}
@container combat-page (max-width:800px){.battle-grid{grid-template-columns:minmax(0,1fr)}}

/* Current tool identity: keep both footer credits readable on small screens. */
footer{flex-wrap:wrap;row-gap:6px}
@media(max-width:540px){footer>span:last-child{display:inline}}
