
  .rs { position: relative; display: inline-block; font: inherit; }
  .rs-summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: var(--r-btn); cursor: pointer; list-style: none; color: var(--ink, #132224); font-size: 14px; font-weight: 500; }
  .rs-summary::-webkit-details-marker { display: none; }
  /* Beats generic "summary" rules of a parent <details> (e.g. the mobile menu's 44px icon button). */
  .rs > .rs-summary { display: inline-flex; align-items: center; width: auto; height: auto; min-height: 44px; border: 0; background: transparent; white-space: nowrap; }
  .rs > .rs-summary:hover { background: var(--teal-dim, #e6f6f4); }
  .rs-summary:hover { background: var(--teal-dim, #e6f6f4); color: var(--teal-ink, #0a7671); }
  .rs-summary:focus-visible { outline: 2px solid var(--teal, #08807a); outline-offset: 2px; }
  .rs-icon { flex: none; }
  .rs-panel { transform-origin: top right; }
  .rs[open] > .rs-panel { animation: rs-in .16s ease-out; }
  .rs.is-closing > .rs-panel { animation: rs-out .12s ease-in forwards; }
  @keyframes rs-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
  @keyframes rs-out { to { opacity: 0; transform: translateY(-6px) scale(.97); } }
  @media (prefers-reduced-motion: reduce) { .rs[open] > .rs-panel, .rs.is-closing > .rs-panel { animation: none; } }
  .rs-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; width: min(320px, calc(100vw - 32px)); display: grid; gap: 14px; padding: 16px; background: #fff; color: var(--ink, #132224); border-radius: var(--r-pop); box-shadow: 0 1px 2px rgba(19,34,36,.08), 0 12px 32px rgba(19,34,36,.14); }
  .rs-note { margin: 0; font-size: 13px; color: var(--muted, #5f7174); }
  .rs-field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; font-size: 13px; font-weight: 600; }
  .rs-field .ui-input { font-weight: 400; }
  .rs-langs legend { padding: 0; margin-bottom: 6px; }
  .rs-langs { grid-template-columns: 1fr 1fr; }
  .rs-langs legend { grid-column: 1 / -1; }
  .rs-lang { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border: 1px solid var(--control, #8a9a9c); border-radius: var(--r-field); font-weight: 400; cursor: pointer; }
  .rs-lang:has(input:checked) { border-color: var(--teal, #08807a); background: var(--teal-dim, #e6f6f4); color: var(--teal-ink, #0a7671); }
  .rs-lang:focus-within { outline: 2px solid var(--teal, #08807a); outline-offset: 2px; }
