/* Memory appears only over the original IPA; card and detail layouts stay intact. */
[data-memory-word] { cursor:help; }
[data-memory-word]:focus-visible { outline:2px solid #6b95d2; outline-offset:3px; border-radius:3px; }
.phonetic-memory-tooltip { position:fixed; z-index:10002; width:360px; max-width:calc(100vw - 24px); padding:15px 17px; box-sizing:border-box; background:#fff; border:1px solid #e5eaf1; border-radius:12px; box-shadow:0 8px 30px rgba(30,48,75,.16); pointer-events:none; }
.phonetic-memory-tooltip[hidden] { display:none; }
.sound-memory { width:100%; text-align:left; }
.sound-memory-label { color:#8a96a6; font-size:11px; font-weight:600; margin-bottom:9px; }
.sound-memory-pairs { display:flex; flex-wrap:wrap; justify-content:center; align-items:start; gap:7px 5px; }
.sound-memory-word { display:inline-flex; flex-wrap:wrap; justify-content:center; align-items:start; gap:7px 5px; max-width:100%; }
.sound-memory-pair { display:inline-flex; flex-direction:column; align-items:center; gap:5px; min-width:24px; padding:5px 4px; border-radius:6px; }
.sound-memory-spelling { font-size:18px; font-weight:650; color:#334155; line-height:1.2; white-space:pre; }
.sound-memory-ipa { font-size:14px; color:#7b8798; line-height:1.2; white-space:nowrap; }
.sound-memory-pair.is-focus { background:#edf4ff; }
.sound-memory-pair.is-focus .sound-memory-spelling, .sound-memory-pair.is-focus .sound-memory-ipa { color:#2d66b1; }
.sound-memory-pair.is-silent .sound-memory-ipa { color:#a4adba; }
.sound-memory-note { margin:10px 0 0; color:#66758a; font-size:12px; line-height:1.6; }
