/* Language choice sliding out to the left (lang-flyout.js; the same in Artwork, Voices and Import) */
.lang-fly { position: relative; display: inline-flex; }
.lang-fly-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; overflow: hidden; clip: rect(0 0 0 0); }
.lang-fly-btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; width: 46px; min-width: 46px; height: 46px;
  min-height: 46px; padding: 0 0 0 1px !important; border-radius: 12px; border: 1px solid #d6dfd6; background: #fff; color: #285d4c; font: inherit;
  font-size: 14px; font-weight: 600; letter-spacing: 1px; cursor: pointer; box-shadow: none; transition: background .12s; }
/* The button is flat like the other header buttons (owner, 2026-11-12); only the panel that slides out has depth */
.lang-fly-btn:hover, .lang-fly.open .lang-fly-btn { background: #edf4eb; }
.lang-fly-panel { position: absolute; z-index: 60; top: 50%; right: calc(100% + 12px); display: flex; gap: 8px; padding: 9px;
  background: #fff; border: 1px solid #d6dfd6; border-radius: 16px; white-space: nowrap;
  box-shadow: 0 16px 34px rgba(36, 59, 56, .24), 0 3px 8px rgba(36, 59, 56, .12);
  opacity: 0; transform: translate(16px, -50%) scale(.94); transform-origin: right center; transition: transform .2s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.lang-fly.open .lang-fly-panel { opacity: 1; transform: translate(0, -50%) scale(1); }
.lang-fly-panel::after { content: ''; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px; background: #fff;
  border-top: 1px solid #d6dfd6; border-right: 1px solid #d6dfd6; transform: translateY(-50%) rotate(45deg); }
.lang-fly-opt { display: inline-flex; align-items: center; justify-content: center; text-align: center; width: 56px; min-width: 56px;
  height: 44px; min-height: 44px; padding: 0 0 0 1px !important; /* letter-spacing adds space after the last letter: 1px back on the left */
  border-radius: 12px; border: 1px solid #c9d8cb; background: linear-gradient(#ffffff, #eef4ec); color: #285d4c; font: inherit;
  font-size: 14px; font-weight: 600; letter-spacing: 1px; cursor: pointer;
  box-shadow: 0 2px 0 #c2d2c5, 0 5px 12px rgba(36, 59, 56, .13); transition: transform .12s, box-shadow .12s, background .12s; }
.lang-fly-opt:hover { transform: translateY(-1px); background: linear-gradient(#ffffff, #e2eee0); }
.lang-fly-opt[aria-pressed="true"] { background: linear-gradient(#347761, #245343); color: #fff; border-color: #1f4a3c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 2px 0 #173a2f, 0 6px 14px rgba(36, 59, 56, .3); }
.lang-fly-btn:focus-visible, .lang-fly-opt:focus-visible { outline: 3px solid #e3aa56; outline-offset: 2px; }
/* No room on the left (a phone): the panel drops below the button, aligned to its right edge */
.lang-fly.down .lang-fly-panel { top: calc(100% + 12px); right: 0; transform: translateY(-10px) scale(.96); transform-origin: right top; }
.lang-fly.down.open .lang-fly-panel { transform: none; }
.lang-fly.down .lang-fly-panel::after { right: 16px; top: -7px; transform: rotate(-45deg); }
/* … and on the left of the screen (a phone's header) aligned to the button's left edge */
.lang-fly.down.start .lang-fly-panel { right: auto; left: 0; transform-origin: left top; }
.lang-fly.down.start .lang-fly-panel::after { right: auto; left: 16px; }
@media (prefers-reduced-motion: reduce) { .lang-fly-btn, .lang-fly-opt, .lang-fly-panel { transition: none; } }
