/* Language controls work without JavaScript and remain reachable on small screens. */
.language-switcher { position: relative; flex: 0 0 auto; color: #414654; font-size: 13px; line-height: 1.5; }
.language-switcher summary { display: flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 10px; border: 1px solid #dddfe5; border-radius: 9px; background: #fff; cursor: pointer; list-style: none; white-space: nowrap; }
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary:focus-visible, .language-switcher a:focus-visible { outline: 3px solid #9490e9; outline-offset: 2px; }
.language-current { color: #686e7c; font-size: 10px; }
.language-switcher nav { position: absolute; z-index: 80; right: 0; top: calc(100% + 7px); min-width: 170px; padding: 6px; border: 1px solid #dddfe5; border-radius: 10px; background: #fff; box-shadow: 0 12px 30px #262a351c; }
.language-switcher nav a { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 42px; padding: 9px 12px; border-radius: 6px; color: #414654; text-decoration: none; }
.language-switcher nav a:hover, .language-switcher nav a[aria-current] { color: #4a46ae; background: #f0eefc; }
.auth-language { position: absolute; top: 16px; right: 20px; z-index: 80; }
.error-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
html:not([lang="ko"]) .brand-caption { letter-spacing: 0; }
html[lang="en"] .auth-intro-copy h1 { max-width: 470px; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.2; }
html[lang="en"] .mobile-nav a { font-size: 10px; }
html[lang="en"] .nav-item { gap: 8px; }
html[lang="en"] .nav-item > span:not(.nav-count) { overflow-wrap: anywhere; }
.topbar .global-search { min-width: 0; }
.topbar-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 12px; margin-left: auto; }
.topbar-actions .add-link-button { min-height: 42px; }
@media (max-width: 760px) {
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .topbar .mobile-brand { grid-column: 1; grid-row: 1; display: inline-flex; align-items: center; width: 44px; min-height: 44px; }
  .topbar-actions { grid-column: 2; grid-row: 1; gap: 8px; }
  .topbar .language-switcher summary { padding: 8px 10px; min-height: 44px; }
  .topbar .language-current { display: none; }
  .topbar .global-search { grid-column: 1 / -1; grid-row: 2; width: 100%; min-height: 44px; }
  .topbar-actions .add-link-button { min-height: 44px; padding: 0; }
  .topbar-actions .guest-login-button { min-height: 44px; padding-left: 12px; padding-right: 12px; }
  .auth-language { top: 12px; right: 12px; }
  .auth-form-side { padding-top: 76px; }
  html[lang="en"] .filter-tabs { gap: 4px; }
  html[lang="en"] .filter-tabs a { padding-left: 9px; padding-right: 9px; }
}
