.page-footer .language-switch { flex: 0 0 auto; display: inline; margin: 0; padding: 0; border: 0; background: transparent; border-radius: 0; color: inherit; font: inherit; line-height: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.page-footer .language-switch:hover { color: #536b4c; }
.language-switch:focus-visible { outline: 2px solid #70845e; outline-offset: 3px; }
.language-menu { position: fixed; z-index: 3000; box-sizing: border-box; width: min(220px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 7px; border: 1px solid #e1dfd8; border-radius: 13px; background: #fff; color: #343730; box-shadow: 0 8px 30px #20241a1a; font: 14px/1.45 Arial, sans-serif; }
.language-menu[hidden], .language-menu [hidden] { display: none; }
.language-option { display: flex; align-items: center; justify-content: space-between; gap: 14px; box-sizing: border-box; width: 100%; min-height: 40px; padding: 9px 11px; border: 0; border-radius: 7px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.language-option:first-child { margin-bottom: 5px; }
.language-option[aria-checked="true"] { background: #f0f3ec; color: #536b4c; font-weight: 600; }
.language-option:hover { background: #f7f7f3; }
.language-selected { width: 16px; text-align: center; color: #667f57; }
.language-menu button:focus-visible { outline: 2px solid #70845e; outline-offset: -2px; }
.language-menu button:disabled { opacity: .55; cursor: wait; }
.language-status { margin: 7px 10px 5px; color: #77736c; font-size: 12px; }
.language-status:empty { display: none; }
.language-retry-actions { display: grid; gap: 4px; padding: 4px; }
.language-retry-actions button { min-height: 34px; border: 0; border-radius: 6px; padding: 7px; background: #f0f3ec; color: #536b4c; font: inherit; font-size: 12px; cursor: pointer; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 18px; margin-left: auto; }
header .header-actions > :is(.templates-header, .settings-link, .auth-links, .login-header, .account-header) { margin: 0 !important; flex-shrink: 0; }
/* Shared action sizes leave voting, image controls, pins and dangerous actions alone. */
body :is(.done-button, .primary-button, .primary-link):not(.template-reaction),
body .auth-card button[type="submit"] { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 42px; padding: 10px 16px; border: 1px solid #1a1a1a; border-radius: 9px; background: #1a1a1a; color: #fff; font: 14px/20px Arial, sans-serif; text-align: center; text-decoration: none; cursor: pointer; }
body :is(.done-button, .primary-button, .primary-link):not(.template-reaction):not(:disabled):hover,
body .auth-card button[type="submit"]:not(:disabled):hover { background: #536b4c; border-color: #536b4c; }
body :is(.secondary-button, .data-button, .add-task-button, .add-category-button):not(.template-reaction):not(.danger-button) { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 42px; padding: 10px 14px; border: 1px solid #d7d3cd; border-radius: 9px; background: #fff; color: #1a1a1a; font: 14px/20px Arial, sans-serif; text-align: center; text-decoration: none; cursor: pointer; }
body :is(.secondary-button, .data-button, .add-task-button, .add-category-button):not(.template-reaction):not(.danger-button):not(:disabled):hover { background: #f0f3ec; border-color: #a9bba0; color: #536b4c; }
body :is(.done-button, .primary-button, .primary-link, .secondary-button, .data-button, .add-task-button, .add-category-button):not(.template-reaction):focus-visible { outline: 2px solid #536b4c; outline-offset: 3px; }
.community-sign-in-actions { align-items: stretch; }
body .community-more { display: flex; width: max-content; }
body .auth-card input:is(:focus, :focus-visible) { border-color: #536b4c; outline: 2px solid #536b4c; outline-offset: 1px; }
@media (max-width: 600px) {
    header.has-header-actions { flex-wrap: nowrap; align-items: center; gap: 12px; padding: 12px 14px; }
    header.has-header-actions > a:first-child { flex: 0 0 auto; }
    header.has-header-actions .logo { font-size: 20px; }
    header.has-header-actions .header-actions { flex: 0 1 auto; min-width: 0; align-items: center; align-content: center; justify-content: flex-end; gap: 4px 12px; margin-left: auto; }
    header.has-header-actions .header-actions :is(.templates-header, .settings-link, .login-header, .signup-header, .auth-links-separator) { font-size: 12px; }
    header.has-header-actions .account-button { width: 34px; height: 34px; }
    .language-option { min-height: 44px; }
    body :is(.done-button, .primary-button, .primary-link, .secondary-button, .data-button, .add-task-button, .add-category-button):not(.template-reaction), body .auth-card button[type="submit"] { min-height: 44px; }
}
