/* One header control, independent of family, public, auth and staff button styles. */
html body:is(body,#vf-app.ui-2026.vf-shell,#vf-public,#vf-staff,.vf-demo-start) .language-toolbar{display:flex;align-items:center;justify-content:flex-end;flex:0 0 auto;gap:4px;width:auto;min-width:0;max-width:none;margin:0;padding:0;border:0;background:none;color:#253047;font:14px/1.4 system-ui}
html body:is(body,#vf-app.ui-2026.vf-shell,#vf-public,#vf-staff,.vf-demo-start) .language-toolbar form{display:flex;align-items:center;flex-wrap:nowrap;gap:4px;width:auto;min-width:0;margin:0;padding:0}
html body:is(body,#vf-app.ui-2026.vf-shell,#vf-public,#vf-staff,.vf-demo-start) .language-toolbar .language-choice{box-sizing:border-box;display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 44px;width:44px!important;min-width:44px;max-width:44px;height:44px;min-height:44px;padding:8px!important;margin:0!important;border:1px solid transparent!important;border-radius:10px!important;background:transparent!important;color:#253047!important;box-shadow:none!important;text-decoration:none;cursor:pointer;position:relative}
html body:is(body,#vf-app.ui-2026.vf-shell,#vf-public,#vf-staff,.vf-demo-start) .language-toolbar .language-choice:is([aria-pressed=true],[aria-current]){background:var(--vf-language-selected,#e7edfb)!important;border-color:var(--vf-language-border,#8da4d5)!important;box-shadow:inset 0 -3px var(--vf-language-focus,#315bba)!important}
html body:is(body,#vf-app.ui-2026.vf-shell,#vf-public,#vf-staff,.vf-demo-start) .language-toolbar .language-choice:hover{background:var(--vf-language-hover,#edf1f8)!important}
html body:is(body,#vf-app.ui-2026.vf-shell,#vf-public,#vf-staff,.vf-demo-start) .language-toolbar .language-choice:focus-visible{outline:3px solid var(--vf-language-focus,#315bba)!important;outline-offset:2px}
html body:is(body,#vf-app.ui-2026.vf-shell,#vf-public,#vf-staff,.vf-demo-start) .language-toolbar .language-flag{display:block;width:26px;height:20px;flex:0 0 26px;overflow:hidden;filter:none;border-radius:2px}
.language-name{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
html body .vf-language-brand{display:flex;align-items:center;gap:6px;color:#253047;text-decoration:none;font-weight:750}
html body .vf-language-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
html body .vf-language-header .language-toolbar{margin-left:auto}
html body .staff-header .language-toolbar{margin-left:auto}
html body #flokktavle .tv-board-view-actions .language-toolbar{order:-1!important}
html body.admin-login-shell>.vf-language-header{padding:12px 20px;background:#fff;border-bottom:1px solid #dde2eb}
html body.admin-login-shell>.vf-language-header>a{display:flex;align-items:center;gap:8px;color:#253047;text-decoration:none;font-weight:750}
@media(max-width:700px){
 html body#vf-app.ui-2026.vf-shell.vf-clean main #flokktavle .tv-board-view-actions{flex:1 1 100%!important;flex-wrap:wrap!important;min-width:0;max-width:100%;justify-content:flex-end}
}
@media(max-width:600px){
 html body#vf-app.ui-2026.vf-shell:is(.vf-clean,.public-shell) .vf-site-header{gap:6px;padding-inline:12px!important}
 html body#vf-app.ui-2026.vf-shell:is(.vf-clean,.public-shell) .vf-site-header .brand{font-size:18px!important;gap:5px}
 html body#vf-app.ui-2026.vf-shell:is(.vf-clean,.public-shell) .vf-site-header .brand-icon{width:26px!important;height:26px!important}
 html body.vf-shell .vf-header-context{gap:4px}
 html body .vf-language-header{gap:6px}
 html body .pair-page>header{font-size:18px;gap:6px}
 html body .pair-page>header img{width:30px;height:30px}
 html body .staff-header{gap:6px;padding-inline:12px}
}
@media(max-width:374px){
 html body#vf-public.vf-public-clean .password-topbar.vf-language-header{padding-inline:8px!important;gap:4px!important}
 html body#vf-public.vf-public-clean .password-topbar.vf-language-header .brand{font-size:16px!important;gap:4px}
 html body#vf-public.vf-public-clean .password-topbar.vf-language-header .brand-icon{width:24px!important;height:24px!important}
 html body#vf-public.vf-public-clean .password-topbar.vf-language-header .linkbtn{padding-inline:6px!important;font-size:12px!important}
 html body#vf-app.ui-2026.vf-shell:is(.vf-clean,.public-shell) .vf-site-header{padding-inline:8px!important;gap:4px}
 html body#vf-app.ui-2026.vf-shell:is(.vf-clean,.public-shell) .vf-site-header .brand{font-size:16px!important;gap:4px}
 html body#vf-app.ui-2026.vf-shell:is(.vf-clean,.public-shell) .vf-site-header .brand-icon{width:22px!important;height:22px!important}
 html body#vf-app.ui-2026.vf-shell:is(.vf-clean,.public-shell) .vf-header-context .topbar-weather{font-size:10px!important;padding:4px!important;gap:0}
 html body#vf-app.ui-2026.vf-shell:is(.vf-clean,.public-shell) .topbar-weather>span{display:none}
 html body.vf-shell .vf-site-header .vf-menu-toggle{padding-inline:6px!important}
 html body .staff-header{padding-inline:8px;gap:4px}
 html body .staff-header .staff-brand{font-size:15px;gap:4px}
 html body .staff-header .staff-brand img{width:26px;height:26px}
}
/* Reduced motion also disables cross-document snapshots of the previous language. */
@media(prefers-reduced-motion:reduce){@view-transition{navigation:none}}
html[lang=en] .task-person-actions button.primary{min-height:44px!important;box-sizing:border-box}
html[lang=en] .task-person-actions .hold-confirm-hint{white-space:nowrap;line-height:1.25}

/* Family identity keeps its proportions alongside the mobile header controls. */
@media(max-width:899px){
 html body#vf-app.ui-2026.vf-shell.vf-clean .vf-site-header{flex-wrap:wrap;align-items:flex-start}
 html body#vf-app.ui-2026.vf-shell.vf-clean .vf-site-header .brand{flex:0 0 auto;min-height:44px;white-space:nowrap;font-size:18px!important;gap:6px!important}
 html body#vf-app.ui-2026.vf-shell.vf-clean .vf-site-header .brand-icon{display:block;width:40px!important;height:40px!important;min-width:40px;flex:0 0 40px;object-fit:contain}
 html body#vf-app.ui-2026.vf-shell.vf-clean .vf-site-header .vf-header-context{flex:1 1 140px;min-width:140px;max-width:100%;flex-wrap:wrap;justify-content:flex-end;gap:4px}
 html body#vf-app.ui-2026.vf-shell.vf-clean .vf-site-header .topbar-weather{order:4!important;margin:0!important;padding:4px 6px!important;font-size:11px!important;gap:2px!important}
 html body#vf-app.ui-2026.vf-shell.vf-clean .vf-site-header .topbar-weather>span{font-size:14px}
}
@media(max-width:899px){
 html body#vf-app.ui-2026.vf-shell.vf-clean .vf-site-header .vf-family-shortcut{order:4!important}
}
