/* 単語一覧（wordlist）だけの見た目 */
.wordlist-root { -webkit-user-select: text; user-select: text; }
.wordlist-screen { padding: 12px 10px; min-height: 0; }
.wordlist-tabs { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; }
.wordlist-tab { font: inherit; font-weight: 900; font-size: 14.5px; min-height: 40px; padding: 0; border: 2px solid var(--line); border-radius: 9px; background: var(--bg2); color: var(--ink); cursor: pointer; }
.wordlist-tab.on { background: var(--yellow); color: #1d211f; box-shadow: var(--shadow-sm); }
.wordlist-bar { display: grid; grid-template-columns: 1fr auto auto; gap: 5px; margin-top: 8px; }
.wordlist-q { font: inherit; font-size: 16px; min-height: 44px; min-width: 0; border: 2px solid var(--line); border-radius: 10px; padding: 0 10px; background: var(--card); color: var(--ink); }
.wordlist-filt { font: inherit; font-size: 13.5px; font-weight: 700; min-height: 44px; border: 2px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); padding: 0 4px; }
.wordlist-tg { font: inherit; font-size: 13.5px; font-weight: 800; min-height: 44px; padding: 0 10px; border: 2px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); cursor: pointer; white-space: nowrap; }
.wordlist-tg.on { background: var(--r-col); color: #fff; }
.wordlist-row2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.wordlist-info { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink2); }
.wordlist-cardbtn { min-height: 40px; padding: 4px 12px; font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.wordlist-pager { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; align-items: center; margin: 8px 0; }
.wordlist-pager:empty { display: none; }
.wordlist-pbtn { min-height: 44px; padding: 4px 12px; font-size: 14px; }
.wordlist-pbtn:disabled { opacity: .4; cursor: default; }
.wordlist-pnum { display: flex; align-items: center; justify-content: center; gap: 6px; }
.wordlist-psel { font: inherit; font-size: 14px; font-weight: 700; min-height: 40px; border: 2px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); max-width: 130px; }
.wordlist-pnum small { color: var(--ink2); font-size: 12px; white-space: nowrap; }
.wordlist-list { list-style: none; margin: 8px 0 0; padding: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; }
.wordlist-item { display: grid; grid-template-columns: 40px 1fr auto 40px; gap: 6px; align-items: center; padding: 6px 6px; border-bottom: 1.5px solid var(--soft, var(--bg2)); background: var(--card); }
.wordlist-item:nth-child(even) { background: var(--bg); }
.wordlist-item:last-child { border-bottom: 0; }
.wordlist-empty { padding: 20px 12px; text-align: center; color: var(--ink2); display: grid; gap: 10px; justify-items: center; }
.wordlist-main { min-width: 0; }
.wordlist-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.wordlist-w { font-family: var(--en, serif); font-size: 17px; overflow-wrap: anywhere; }
.wordlist-pos, .wordlist-rk { font-size: 11px; font-weight: 800; border: 1.5px solid var(--line); border-radius: 5px; padding: 0 5px; color: var(--ink2); line-height: 1.5; }
.wordlist-rk { background: var(--yellow); color: #1d211f; }
.wordlist-ja { font-size: 13.5px; line-height: 1.45; margin-top: 1px; position: relative; overflow-wrap: anywhere; }
.wordlist-n { text-align: right; line-height: 1.2; white-space: nowrap; }
.wordlist-n b { display: block; font-size: 13px; }
.wordlist-n small { font-size: 11px; color: var(--ink2); }
.wordlist-yoso { color: var(--l-col); }
.wordlist-say { width: 40px; height: 40px; border: 2px solid var(--line); border-radius: 50%; background: var(--yellow); color: #1d211f; font-size: 16px; font-weight: 900; cursor: pointer; padding: 0; }
.wordlist-mk { width: 40px; height: 40px; border: 2px solid var(--line); border-radius: 10px; background: var(--bg2); color: var(--ink2); font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; padding: 0; }
.wordlist-mk.ok { background: var(--ok); color: #fff; border-color: var(--ok); font-size: 15px; }
.wordlist-mk.ng { background: #f8d7d4; color: #311; border-color: var(--ng); font-size: 11.5px; }
/* 赤シート：意味をかくす。タップでその行だけ見える */
.wordlist-red .wordlist-ja { cursor: pointer; }
.wordlist-red .wordlist-ja > span { visibility: hidden; }
.wordlist-red .wordlist-ja::after { content: 'タップで意味'; position: absolute; inset: 0; display: flex; align-items: center; padding-left: 8px; border-radius: 6px; background: var(--r-col); color: rgba(255, 255, 255, .85); font-size: 11.5px; font-weight: 700; }
.wordlist-red .wordlist-open .wordlist-ja > span { visibility: visible; }
.wordlist-red .wordlist-open .wordlist-ja::after { display: none; }
@media (max-width: 360px) { .wordlist-item { grid-template-columns: 36px 1fr auto 36px; gap: 4px; } .wordlist-say, .wordlist-mk { width: 36px; height: 36px; } .wordlist-bar { grid-template-columns: 1fr auto; } .wordlist-tg { grid-column: 1 / -1; } }
