/* Word sheet shared by the signed-in and public readers. */
  .mobile-word-sheet { box-sizing: border-box; width: 100%; max-height: 68dvh; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px max(10px, env(safe-area-inset-bottom)); background: var(--bg); border: 1px solid var(--border); border-bottom: 0; border-radius: 24px 24px 0 0; box-shadow: 0 -6px 28px rgb(32 37 31 / 12%); position: relative; animation: word-sheet-enter 220ms cubic-bezier(.2,.8,.2,1); }
  .mobile-word-sheet button, .mobile-word-sheet a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .mobile-word-sheet__close { position: absolute; right: 10px; top: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface-muted); display: grid; place-items: center; color: var(--text); cursor: pointer; z-index: 2; }
  .mobile-word-sheet__close svg { width: 24px; height: 24px; }
  .mobile-word-sheet__details { padding-right: 40px; }
  .mobile-word-sheet__details { --audio: calc(28px * 1.4 + 14px * 1.35 + 2px + 15px * 1.4); }
  .mobile-word-sheet__word { display: flex; align-items: center; gap: 10px; }
  .mobile-word-sheet .audio-square { flex: 0 0 var(--audio); width: var(--audio); height: var(--audio); }
  .mobile-word-sheet .audio-square > .vocabulary-audio { width: 100%; height: 100%; min-width: 0; min-height: 0; aspect-ratio: auto; margin: 0; border-radius: 16px; }
  .mobile-word-sheet .mobile-word-sheet__word .vocabulary-audio .reader-audio__glyph { width: 100%; height: 100%; }
  .mobile-word-sheet .mobile-word-sheet__word .vocabulary-audio .reader-audio__speaker { width: 1.9rem; height: 1.9rem; }
  .mobile-word-sheet .mobile-word-sheet__word .vocabulary-audio .reader-audio__glyph svg { width: 1.32rem; height: 1.32rem; }
  .mobile-word-sheet__copy { min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .mobile-word-sheet__details .vocab-hebrew { font-family: "Rubik", sans-serif; font-size: 28px; line-height: 1.4; min-height: 1.4em; margin: 0; }
  .mobile-word-sheet__details .vocab-rom { margin: 0; font-size: 14px; line-height: 1.35; min-height: 1.35em; color: var(--learn-muted); }
  .mobile-word-sheet__meaning { margin: 2px 0 0; font-size: 15px; line-height: 1.4; min-height: 1.4em; }
  .mobile-word-sheet__grammar { display: flex; flex-direction: column; gap: 2px; height: calc(1.3em * 2 + 2px); overflow: hidden; margin: 10px 0 12px; margin-inline-start: calc(var(--audio) + 10px); color: var(--text-muted); font-size: 16px; font-weight: 400; line-height: 1.3; }
  .mobile-word-sheet__grammar p { margin: 0; padding: 0; background: none; border-radius: 0; font-size: inherit; line-height: inherit; }
  .mobile-word-sheet .reader-word-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 0; }
  .mobile-word-sheet .reader-word-links .save-word-control { grid-column: auto; grid-row: auto; order: 1; min-width: 0; }
  .mobile-word-sheet .reader-word-links .reader-float__action--sliced::before,
  .mobile-word-sheet .reader-word-links .reader-float__action-shape { display: none; }
  .mobile-word-sheet .reader-word-links .reader-float__action,
  .mobile-word-sheet .reader-word-links .save-word-control .reader-save-word { --btn-h: 44px; height: 44px; min-height: 44px; padding: 0 10px; border-radius: 999px; background: var(--surface-muted); color: var(--text); font-size: 15px; overflow: hidden; }
  .mobile-word-sheet .reader-word-links .reader-float__action--secondary:hover { background: var(--surface-hover); }
  .mobile-word-sheet .reader-word-links .save-word-control .reader-save-word { background: var(--surface-muted); color: var(--text); }
  .mobile-word-sheet .reader-word-links .save-word-control .reader-save-word:hover { background: var(--surface-hover); }
  .mobile-word-sheet .reader-word-links .save-word-control .reader-save-word[aria-pressed="true"],
  .mobile-word-sheet .reader-word-links .save-word-control .reader-save-word[aria-pressed="true"]:hover { background: var(--primary-wash); color: #426334; }
  .mobile-word-sheet .reader-word-links .reader-float__action-label { gap: 6px; white-space: nowrap; font-size: 15px; }
  .mobile-word-sheet .save-word-label { grid-template-columns: 18px auto; gap: 6px; }
  .mobile-word-sheet .save-word-icon,
  .mobile-word-sheet .reader-float__action-label img { width: 18px; height: 18px; }
  .mobile-word-sheet__save { width: 100%; min-height: 48px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font: 700 16px var(--font-sans); }
  .mobile-word-sheet__save:disabled { opacity: .5; }
  .mobile-word-sheet__expand { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; background: transparent; border: 0; color: var(--text-muted); font: 600 13px var(--font-sans); }
  .mobile-word-sheet__expand svg { width: 16px; height: 16px; }
  .mobile-word-sheet__links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 0 8px; }
  .mobile-word-sheet__links a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px; background: var(--surface-muted); color: var(--text); text-decoration: none; font-weight: 600; }
  .mobile-word-sheet__links img, .mobile-word-sheet__links .nav-icon { width: 20px; height: 20px; }
  .mobile-word-sheet.is-picking { display: grid; align-items: center; }
  .mobile-word-sheet__picker { padding: 24px 0; }
  .mobile-word-sheet__picker h2 { font: 700 18px var(--font-sans); text-align: center; margin: 0 0 24px; }
  .mobile-word-sheet__choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .mobile-word-sheet__choices button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px; padding: 10px 2px; border: 2px solid transparent; border-radius: 17px; background: var(--surface-muted); color: var(--text); font-family: var(--font-sans); }
  .mobile-word-sheet__choices button[data-status='new'] { background: var(--status-new-fill); --choice-line: var(--status-new-line); }
  .mobile-word-sheet__choices button[data-status='learning'] { background: var(--status-recognized-fill); --choice-line: var(--status-recognized-line); }
  .mobile-word-sheet__choices button[data-status='known'] { background: var(--status-learned-fill); --choice-line: var(--status-learned-line); }
  .mobile-word-sheet__choices button[aria-pressed='true'] { border-color: var(--choice-line, var(--status-unsaved-line)); }
  .mobile-word-sheet__choices strong { font-size: 28px; line-height: 1; }
  .mobile-word-sheet__choices svg { width: 26px; height: 26px; }
  .mobile-word-sheet__choices span { font-size: 11px; font-weight: 700; }
  .mobile-word-sheet button:active { transform: scale(.97); }
  .mobile-word-sheet button:focus-visible, .mobile-word-sheet a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.mobile-word-sheet .vocabulary-audio { display: inline-grid; place-items: center; padding: 0; border: 0; background: var(--surface-muted); color: var(--text); cursor: pointer; }
.mobile-word-sheet .vocabulary-audio:hover:not(:disabled) { background: var(--surface-hover); }
.mobile-word-sheet .vocabulary-audio:disabled { opacity: .4; cursor: default; }
@keyframes word-sheet-enter { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mobile-word-sheet { animation: none; } }
