:root {
  --ink: #213326;
  --muted: #7c7a70;
  --paper: #fffdf8;
  --cream: #f3efe6;
  --line: #ddd7ca;
  --green: #315c40;
  --green-dark: #244831;
  --accent: #d66b4c;
  --good: #2f7045;
  --bad: #b44d40;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 20% 10%, rgba(255,255,255,.75), transparent 35%), var(--cream); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .22; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E"); }
.profile-gate { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 10%, rgba(255,255,255,.86), transparent 38%), var(--cream); }
.profile-gate[hidden], .shell[hidden] { display: none; }
.profile-gate-card { width: min(680px, 100%); padding: clamp(30px, 6vw, 58px); border: 1px solid var(--line); background: var(--paper); box-shadow: 0 24px 70px rgba(42,53,42,.14); text-align: center; }
.profile-gate-logo { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 18px 6px; background: var(--green); color: #fff; font: italic 700 31px Georgia, serif; }
.profile-gate-card > p:first-of-type { margin: 0; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.profile-gate-card h1 { margin: 9px 0 8px; font: 500 clamp(30px, 5vw, 44px) Georgia, "Songti SC", serif; }
.profile-gate-intro { margin: 0 auto 26px; color: var(--muted); font-size: 12px; }
.profile-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.profile-options button { padding: 22px 12px; border: 1px solid var(--line); background: #f8f5ee; cursor: pointer; transition: .16s ease; }
.profile-options button:hover { transform: translateY(-2px); border-color: #9faf9e; box-shadow: 0 10px 22px rgba(49,92,64,.1); }
.profile-options button span { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 10px; border-radius: 50%; background: var(--green); color: #fff; font: 20px Georgia, serif; }
.profile-options button strong, .profile-options button small { display: block; }
.profile-options button strong { font: 18px Georgia, serif; }
.profile-options button small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 24px 0 18px; border-bottom: 1px solid var(--line); }
.auth-tabs button { padding: 11px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; }
.auth-tabs button.active { border-bottom-color: var(--green); color: var(--green-dark); }
.auth-form { display: grid; gap: 14px; text-align: left; }
.auth-form [hidden] { display: none !important; }
.auth-form label { display: grid; gap: 6px; color: var(--green-dark); font-size: 11px; font-weight: 700; }
.auth-form input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); outline: none; font: inherit; }
.auth-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(49,92,64,.1); }
.auth-message { min-height: 18px; margin: 0; color: #a03d32; font-size: 11px; text-align: center; }
.auth-submit { padding: 13px; border: 0; border-radius: 4px; background: var(--green); color: #fff; cursor: pointer; font-weight: 800; }
.auth-submit:disabled { cursor: wait; opacity: .65; }
.forgot-password-button { border: 0; background: transparent; color: var(--green-dark); cursor: pointer; font-size: 11px; text-decoration: underline; }
.auth-dialog { width: min(480px, 100%); }
.auth-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-note { margin: 14px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
button, input { font: inherit; }
button { color: inherit; }
.shell { width: min(920px, calc(100% - 36px)); margin: 0 auto; padding: 25px 0 40px; position: relative; }
.topbar { display: flex; align-items: center; justify-content: space-between; position: relative; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.profile-button { border: 1px solid #b9c8b9; border-radius: 3px; background: #edf1e9; color: var(--green-dark); padding: 9px 11px; cursor: pointer; font-size: 10px; }
.profile-button:hover { background: #e2eae1; }
.top-actions > .study-entry-button, .top-actions > .dictation-entry-button, .top-actions > .level-button { display: none; }
.history-button { border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--green); padding: 9px 13px; cursor: pointer; font-size: 11px; font-weight: 700; }
.history-button:hover { background: #edf1e9; }
.vocabulary-button { border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--green); padding: 9px 13px; cursor: pointer; font-size: 11px; font-weight: 700; }
.vocabulary-button:hover { background: #edf1e9; }
.mastered-button { border: 1px solid #b9c8b9; border-radius: 3px; background: #edf1e9; color: var(--green-dark); padding: 9px 13px; cursor: pointer; font-size: 11px; font-weight: 700; }
.mastered-button span { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-left: 4px; border-radius: 20px; background: var(--green); color: #fff; font-size: 9px; }
.mastered-button:hover { background: #e2eae1; }
.study-entry-button { display: flex; align-items: center; gap: 6px; border: 0; border-radius: 100px; background: var(--green); color: #fff; padding: 9px 13px; cursor: pointer; font-size: 12px; font-weight: 700; }
.study-entry-button span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.16); font-family: Georgia, serif; font-size: 9px; }
.study-entry-button:hover { background: var(--green-dark); }
.dictation-entry-button { border: 1px solid var(--green); border-radius: 100px; background: transparent; color: var(--green); padding: 8px 13px; cursor: pointer; font-size: 12px; font-weight: 700; }
.dictation-entry-button:hover { background: #e9efe8; }
.import-button { border: 0; background: transparent; color: var(--green); font-size: 12px; font-weight: 700; cursor: pointer; padding: 9px 10px; }
.import-button:hover { color: var(--accent); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { position: relative; display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px 4px 12px 4px; background: var(--green); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 4px 12px rgba(49,92,64,.15); transform: rotate(-2deg); }
.z-glyph { color: #f7f2e7; font: italic 700 27px/1 Georgia, serif; text-shadow: 2px 2px 0 rgba(217,203,167,.3); transform: rotate(2deg); }
.brand b { display: block; font-family: Georgia, "Songti SC", serif; font-size: 21px; letter-spacing: .06em; }
.brand small { display: block; font-size: 8px; letter-spacing: .16em; color: var(--muted); margin-top: 2px; }
.level-button { border: 1px solid var(--line); background: rgba(255,253,248,.75); border-radius: 100px; padding: 9px 13px; display: flex; gap: 8px; align-items: center; cursor: pointer; font-size: 13px; }
.level-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.level-menu { position: absolute; z-index: 4; right: 0; top: 48px; width: 210px; padding: 7px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 16px 40px rgba(43,50,38,.14); display: none; }
.level-menu.open { display: grid; animation: pop .16s ease-out; }
.level-menu button { text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: 9px; cursor: pointer; }
.level-menu button:hover { background: #f1eee5; }
.level-menu button:disabled { opacity: .4; cursor: not-allowed; }
.level-menu button:disabled:hover { background: transparent; }
.level-menu small { float: right; color: var(--muted); }
.menu-divider { display: block; height: 1px; margin: 5px 4px; background: var(--line); }
.level-menu .danger-menu-item { color: var(--bad); }
.level-menu .danger-menu-item small { color: inherit; opacity: .7; }
@keyframes pop { from { transform: translateY(-4px); opacity: 0; } }
.hero { text-align: center; padding: 52px 0 30px; }
.dashboard { padding: 54px 0 18px; }
.dashboard-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding-bottom: 30px; }
.dashboard-eyebrow { justify-content: flex-start; margin: 0; }
.dashboard-intro h1 { margin: 11px 0 7px; font: 500 clamp(38px, 6vw, 62px)/1.08 Georgia, "Songti SC", serif; letter-spacing: -.035em; }
.dashboard-intro > div > p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.dashboard-z { display: grid; place-items: center; width: 76px; height: 76px; flex: 0 0 76px; border-radius: 22px 7px 22px 7px; background: var(--green); color: #fff; font: italic 700 36px Georgia, serif; box-shadow: 0 12px 30px rgba(49,92,64,.2); transform: rotate(-2deg); }
.dashboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--paper); box-shadow: 0 12px 36px rgba(59,57,45,.07); }
.dashboard-stats article { min-height: 132px; padding: 24px 28px; }
.dashboard-stats article + article { border-left: 1px solid var(--line); }
.dashboard-stats small, .dashboard-stats span { display: block; color: var(--muted); font-size: 10px; }
.dashboard-stats small { font-weight: 700; letter-spacing: .1em; }
.dashboard-stats strong { display: inline-block; margin: 8px 5px 2px 0; color: var(--green-dark); font: 48px/1 Georgia, serif; }
.dashboard-detail-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-top: 0; background: rgba(255,253,248,.78); }
.dashboard-detail-stats article { min-height: 76px; padding: 15px 20px; }
.dashboard-detail-stats article + article { border-left: 1px solid var(--line); }
.dashboard-detail-stats small { display: block; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.dashboard-detail-stats strong { display: inline-block; margin: 7px 4px 0 0; color: var(--green-dark); font: 27px/1 Georgia, serif; }
.dashboard-detail-stats span { color: var(--muted); font-size: 10px; }
.dashboard-detail-stats .correct-stat strong { color: var(--good); }
.dashboard-detail-stats .wrong-stat strong { color: var(--bad); }
.dashboard-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 18px; }
.dashboard-action { min-height: 130px; display: grid; grid-template-columns: 47px 1fr 24px; gap: 16px; align-items: center; padding: 22px 24px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,253,248,.82); text-align: left; cursor: pointer; transition: .18s ease; }
.dashboard-action:hover { transform: translateY(-2px); box-shadow: 0 13px 30px rgba(42,53,42,.1); border-color: #c8c0b2; }
.dashboard-action .action-icon { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 50%; background: var(--green); color: #fff; font: 16px Georgia, serif; }
.dashboard-action > span:nth-child(2) > * { display: block; }
.dashboard-action small { color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.dashboard-action strong { margin: 4px 0; font: 500 22px Georgia, "Songti SC", serif; }
.dashboard-action em { color: var(--muted); font-size: 10px; font-style: normal; }
.dashboard-action > b { color: var(--green); font-size: 20px; }
.wrong-learn-action .action-icon, .wrong-test-action .action-icon { background: #a9654d; }
.choose-group-action .action-icon { background: #6d7d67; }
.choose-dictation-action .action-icon { background: #aa7650; }
.cloze-action .action-icon { background: #6f5d86; }
.choose-cloze-action .action-icon { background: #7c6b91; }
.cloze-wrong-action .action-icon { background: #a85f55; }
.wrong-learn-action em b { display: inline; color: #a54f38; font-size: inherit; }
.dictate-action .action-icon { background: var(--accent); }
.dashboard-note { margin: 17px 0 0; text-align: center; color: #999388; font-size: 10px; }
.legacy-home[hidden] { display: none; }
.eyebrow { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.eyebrow span { width: 24px; height: 1px; background: var(--accent); }
.hero h1 { margin: 13px 0 10px; font-family: Georgia, "Songti SC", serif; font-size: clamp(38px, 5.4vw, 61px); line-height: 1.1; font-weight: 500; letter-spacing: -.04em; }
.hero h1 em { color: var(--accent); font-weight: 500; }
.hero p { color: var(--muted); margin: 0; font-size: 14px; }
.practice-card { border: 1px solid #d7d0c2; border-radius: 4px; background: var(--paper); box-shadow: 0 18px 50px rgba(59,57,45,.1); overflow: hidden; }
.card-head, .card-foot { min-height: 58px; padding: 0 25px; display: flex; align-items: center; justify-content: space-between; background: rgba(246,242,233,.72); }
.card-head { border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.score { display: flex; align-items: baseline; gap: 6px; }
.score strong { font: 25px Georgia, serif; color: var(--accent); }
.score i { font-style: normal; }
.card-body { padding: 34px clamp(24px, 7vw, 72px) 30px; text-align: center; }
.hint-label { margin: 0 0 8px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.card-body h2 { margin: 0 0 5px; font: 500 clamp(25px, 4vw, 36px) Georgia, "Songti SC", serif; }
.phonetic { margin: 0 0 10px; color: var(--green); font: 15px/1.4 Georgia, "Times New Roman", serif; letter-spacing: .02em; }
.word-history { margin: 0 auto 22px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--muted); font-size: 10px; }
.word-history > i { width: 2px; height: 2px; border-radius: 50%; background: #aaa397; }
.word-history strong { color: var(--ink); font-size: 11px; }
.word-history .history-correct strong { color: var(--good); }
.word-history .history-wrong strong { color: var(--bad); }
.sound-button { margin: 0 auto 12px; width: min(100%, 350px); border: 0; border-radius: 3px; background: var(--green); color: #fff; padding: 14px 24px; display: flex; justify-content: center; align-items: center; gap: 17px; cursor: pointer; box-shadow: 0 7px 14px rgba(49,92,64,.17); transition: .18s ease; }
.sound-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.sound-button:active { transform: translateY(1px); }
.sound-button b, .sound-button small { display: block; text-align: left; }
.sound-button b { font-size: 15px; }
.sound-button small { opacity: .72; font-size: 10px; margin-top: 2px; }
.sound-icon { height: 25px; display: flex; align-items: center; gap: 3px; }
.sound-icon i { width: 2px; height: 10px; background: #fff; border-radius: 2px; }
.sound-icon i:nth-child(2) { height: 21px; } .sound-icon i:nth-child(3) { height: 16px; } .sound-icon i:nth-child(4) { height: 7px; }
.sound-button.playing .sound-icon i { animation: wave .55s ease-in-out infinite alternate; }
.sound-button.playing .sound-icon i:nth-child(2) { animation-delay: .15s; } .sound-button.playing .sound-icon i:nth-child(3) { animation-delay: .3s; }
@keyframes wave { to { transform: scaleY(.45); } }
.audio-controls { min-height: 30px; margin: 0 auto 24px; display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.accent-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 100px; padding: 2px; background: #f6f2e9; }
.accent-switch button { border: 0; border-radius: 100px; background: transparent; color: var(--muted); padding: 5px 10px; cursor: pointer; font-size: 10px; }
.accent-switch button.active { background: #fff; color: var(--green); box-shadow: 0 1px 4px rgba(34,51,38,.12); font-weight: 700; }
.audio-controls label { margin-left: 4px; }
.audio-controls select { border: 1px solid var(--line); border-radius: 100px; background: #fff; color: var(--ink); padding: 5px 22px 5px 9px; outline: none; font-size: 10px; }
.voice-status { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-status.error { color: var(--bad); }
form label { display: block; text-align: left; color: var(--muted); font-size: 11px; margin-bottom: 7px; }
.answer-row { display: grid; grid-template-columns: 1fr 150px; }
.answer-row input { min-width: 0; border: 1px solid #cfc8ba; border-right: 0; border-radius: 3px 0 0 3px; background: #fff; padding: 15px 17px; outline: none; font-size: 16px; letter-spacing: .03em; }
.answer-row input:focus { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.answer-row input.correct { border-color: var(--good); background: #f2f8f3; }
.answer-row input.wrong { border-color: var(--bad); background: #fff3f0; }
.answer-row button { border: 0; border-radius: 0 3px 3px 0; background: #1f2e23; color: #fff; cursor: pointer; font-weight: 700; font-size: 13px; }
.answer-row button:hover { background: #111d15; }
.answer-row button span { margin-left: 6px; opacity: .6; }
.feedback { min-height: 31px; padding-top: 10px; font-size: 13px; font-weight: 650; }
.feedback.good { color: var(--good); } .feedback.bad { color: var(--bad); }
.example-card { margin-top: 3px; padding: 13px 16px; border-left: 3px solid var(--accent); background: #f7f3ea; text-align: left; animation: pop .18s ease-out; }
.example-card[hidden] { display: none; }
.example-card > span { color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.example-card p { margin: 5px 0 0; color: #4e574f; font: italic 14px/1.5 Georgia, serif; }
.example-card .example-definition { margin: 5px 0 12px; color: var(--green-dark); font: 13px/1.55 Georgia, serif; }
.example-card .example-translation { margin-top: 4px; color: var(--muted); font: 12px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; }
.example-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 9px; padding-top: 8px; border-top: 1px solid #e5ded1; }
.example-meta small { color: #aaa397; font-size: 9px; }
.example-meta a { color: var(--green); font-size: 10px; font-weight: 700; text-decoration: none; }
.card-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.card-foot > span { margin-right: 22px; }
kbd { border: 1px solid #cfc8bb; border-bottom-width: 2px; border-radius: 3px; background: #fff; padding: 2px 5px; font-size: 9px; }
#skipButton { margin-left: auto; border: 0; background: transparent; color: var(--green); cursor: pointer; font-size: 11px; font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; border: 1px solid var(--line); background: rgba(255,253,248,.48); }
.stats article { min-height: 82px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.stats article + article { border-left: 1px solid var(--line); }
.stat-icon { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #bcb5a7; border-radius: 50%; color: var(--green); }
.stats small { display: block; color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.stats strong { display: block; margin-top: 2px; font: 25px Georgia, serif; }
footer { text-align: center; color: #999388; font-size: 10px; padding: 0 20px 24px; }
footer a { color: var(--green); text-decoration: none; }
.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(24,35,27,.48); backdrop-filter: blur(4px); }
#forgotPasswordModal { z-index: 110; }
.modal-backdrop[hidden] { display: none; }
.import-modal { width: min(580px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--paper); border: 1px solid #d7d0c2; border-radius: 6px; padding: clamp(22px, 5vw, 36px); box-shadow: 0 26px 80px rgba(18,31,22,.28); animation: modal-in .2s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.modal-head p { margin: 0 0 5px; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.modal-head h2 { margin: 0; font: 500 30px Georgia, "Songti SC", serif; }
.modal-head > button { border: 0; background: transparent; color: var(--muted); font: 30px/1 Georgia, serif; cursor: pointer; }
.modal-intro { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 17px 0 20px; }
.import-label { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 700; }
#wordListInput { width: 100%; resize: vertical; min-height: 135px; border: 1px solid #cfc8ba; border-radius: 3px; background: #fff; padding: 14px; color: var(--ink); font: 14px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; outline: none; }
#wordListInput:focus { border-color: var(--green); box-shadow: 0 0 0 2px rgba(49,92,64,.1); }
.format-tip { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.format-tip code { color: var(--green); }
.import-result { min-height: 32px; padding-top: 11px; font-size: 12px; font-weight: 650; }
.import-result.good { color: var(--good); } .import-result.bad { color: var(--bad); }
.library-summary { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 14px 0; color: var(--muted); font-size: 11px; }
.library-summary strong { color: var(--ink); }
.library-summary button { border: 0; background: transparent; color: var(--bad); cursor: pointer; font-size: 11px; }
.modal-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.modal-actions button { min-height: 46px; border-radius: 3px; cursor: pointer; font-weight: 700; font-size: 12px; }
.secondary-button { border: 1px solid var(--line); background: transparent; }
.primary-button { border: 0; background: var(--green); color: #fff; }
.primary-button:hover { background: var(--green-dark); }
.library-modal { width: min(650px, 100%); }
.library-title-row { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding: 11px 13px; border: 1px solid var(--line); border-bottom: 0; background: #f6f2e9; color: var(--muted); font-size: 10px; letter-spacing: .06em; }
.library-title-row strong { color: var(--green); font-size: 11px; }
.word-list { max-height: min(430px, 48vh); overflow-y: auto; border: 1px solid var(--line); background: #fff; }
.word-row { display: grid; grid-template-columns: 34px minmax(120px, .8fr) 1.2fr; gap: 14px; align-items: center; min-height: 52px; padding: 8px 14px; }
.word-row + .word-row { border-top: 1px solid #ece7dd; }
.word-number { color: #aaa397; font: 11px Georgia, serif; }
.word-english { color: var(--green-dark); font: 600 15px Georgia, serif; overflow-wrap: anywhere; }
.word-meaning { color: #5f625b; font-size: 13px; overflow-wrap: anywhere; }
.word-pos { display: inline-block; margin-right: 7px; border-radius: 12px; background: #edf1e9; color: var(--green-dark); padding: 3px 7px; font-size: 9px; font-weight: 750; white-space: nowrap; }
.word-phonetic { grid-column: 2; color: var(--green); font: 11px/1.35 Georgia, serif; }
.word-definition { grid-column: 3; color: #465249; font: 12px/1.5 Georgia, serif; }
.word-example { grid-column: 3; color: #858078; font: italic 11px/1.45 Georgia, serif; }
.word-example-translation { grid-column: 3; color: #999388; font-size: 10px; line-height: 1.45; }
.word-example-source { grid-column: 3; color: #b0aaa0; font-size: 8px; }
.empty-library { display: none; min-height: 230px; border: 1px solid var(--line); place-items: center; align-content: center; text-align: center; background: #fff; }
.empty-library.show { display: grid; }
.empty-library span { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; background: #edf1e9; color: var(--green); font-family: Georgia, serif; }
.empty-library h3 { margin: 12px 0 4px; font: 500 19px Georgia, "Songti SC", serif; }
.empty-library p { margin: 0; color: var(--muted); font-size: 11px; }
.library-actions { margin-top: 16px; }
.mastered-modal { width: min(760px, 100%); }
.mastered-word-list { max-height: min(520px, 55vh); }
.mastered-row { grid-template-columns: minmax(100px, .6fr) minmax(120px, .75fr) 1.4fr 78px; align-items: start; padding-top: 13px; padding-bottom: 13px; }
.mastered-row .mastered-example { color: #60675f; font: italic 12px/1.5 Georgia, serif; }
.mastered-mark-wrong { justify-self: end; min-height: 30px; border: 1px solid #d5b7ac; border-radius: 3px; background: #fff8f5; color: #a54f38; padding: 6px 9px; cursor: pointer; white-space: nowrap; font-size: 9px; font-weight: 750; }
.mastered-mark-wrong:hover { border-color: #b87a65; background: #f9ebe5; }
.mastered-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.mastered-pagination[hidden] { display: none; }
.mastered-pagination button { min-width: 92px; min-height: 36px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--green); cursor: pointer; font-size: 10px; font-weight: 700; }
.mastered-pagination button:hover:not(:disabled) { background: #edf1e9; }
.mastered-pagination button:disabled { color: #b8b3aa; cursor: default; }
.mastered-pagination span { color: var(--muted); font-size: 10px; }
.mastered-pagination strong { color: var(--green-dark); }
.mastered-empty { min-height: 280px; }
.vocabulary-row { grid-template-columns: minmax(100px, .6fr) minmax(130px, .8fr) 1.4fr 82px; align-items: start; padding-top: 13px; padding-bottom: 13px; }
.vocabulary-status { justify-self: end; display: inline-flex; align-items: center; min-height: 28px; border-radius: 20px; padding: 5px 10px; white-space: nowrap; font-size: 9px; font-weight: 750; }
.vocabulary-status.learned { background: #e6efe5; color: var(--green-dark); }
.vocabulary-status.unlearned { background: #f2efe8; color: #8d877c; }
.history-modal { width: min(720px, 100%); }
.group-selection-modal { width: min(820px, 100%); }
.group-selection-summary { display: flex; justify-content: space-between; gap: 14px; margin: 18px 0 12px; padding: 11px 14px; border: 1px solid var(--line); background: #f6f2e9; color: var(--muted); font-size: 10px; }
.group-selection-summary strong { color: var(--green-dark); }
.group-selection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; max-height: min(540px, 58vh); overflow-y: auto; padding-right: 3px; }
.group-choice { min-height: 88px; padding: 13px; border: 1px solid var(--line); border-radius: 4px; background: #fff; text-align: left; cursor: pointer; }
.group-choice:hover { border-color: #9eac9b; background: #f4f7f1; }
.group-choice:disabled { opacity: .5; cursor: not-allowed; background: #f4f1eb; }
.group-choice:disabled:hover { border-color: var(--line); }
.group-choice-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.group-choice-head strong { color: var(--green-dark); font: 17px Georgia, "Songti SC", serif; }
.group-choice-head span { color: #999388; font-size: 9px; }
.group-choice.learned .group-choice-head span { color: var(--good); font-weight: 750; }
.group-choice small { display: block; margin-top: 8px; color: #999388; font-size: 9px; line-height: 1.45; }
.dictation-filter-option { display: flex; align-items: center; gap: 11px; margin: 18px 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: #f6f2e9; cursor: pointer; }
.dictation-filter-option input { width: 18px; height: 18px; accent-color: var(--green); }
.dictation-filter-option span, .dictation-filter-option strong, .dictation-filter-option small { display: block; }
.dictation-filter-option strong { color: var(--green-dark); font-size: 11px; }
.dictation-filter-option small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.history-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 14px; border: 1px solid var(--line); background: #f6f2e9; }
.history-summary article { padding: 13px 16px; }
.history-summary article + article { border-left: 1px solid var(--line); }
.history-summary small { display: block; color: var(--muted); font-size: 9px; }
.history-summary strong { display: block; margin-top: 3px; color: var(--green-dark); font: 22px Georgia, serif; }
.history-list { max-height: min(470px, 52vh); overflow-y: auto; border: 1px solid var(--line); background: #fff; }
.history-day { padding: 18px 20px; }
.history-day + .history-day { border-top: 1px solid var(--line); }
.history-day-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.history-day-head h3 { margin: 0; color: var(--green-dark); font: 500 18px Georgia, "Songti SC", serif; }
.history-day-head span { color: var(--muted); font-size: 10px; }
.history-day-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 9px; color: #676b64; font-size: 11px; }
.history-scores { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 13px; padding-top: 12px; border-top: 1px dashed #e3ddd2; }
.history-scores > small { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.score-chip { min-width: 34px; padding: 5px 8px; border-radius: 100px; background: #edf1e9; color: var(--green-dark); text-align: center; font: 600 11px Georgia, serif; }
.score-chip.cloze-score { background: #eee8f3; color: #5f4c76; }
.score-chip.legacy-score { background: #f3efe7; color: #827b70; }
.cloze-history-scores { margin-top: 8px; }
.history-no-score { color: #aaa397; font-size: 10px; }
.history-empty { min-height: 260px; }
.history-actions { display: block; margin-top: 15px; }
.history-actions button { width: 100%; }
body.modal-open { overflow: hidden; }
.study-backdrop { background: rgba(23,35,27,.64); }
.study-modal { width: min(720px, 100%); max-height: calc(100vh - 30px); overflow-y: auto; background: var(--paper); border-radius: 8px; box-shadow: 0 30px 90px rgba(15,28,19,.32); }
.study-head { min-height: 70px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #f6f2e9; }
.study-brand { display: flex; align-items: center; gap: 10px; }
.study-brand > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font-family: Georgia, serif; }
.study-brand small, .study-brand strong { display: block; }
.study-brand small { color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.study-brand strong { margin-top: 2px; font: 18px Georgia, "Songti SC", serif; }
.study-head > button { border: 0; background: transparent; color: var(--muted); font: 30px/1 Georgia, serif; cursor: pointer; }
#studyContent { padding: 22px clamp(18px, 6vw, 54px) 26px; }
.study-progress-row { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; }
.study-progress-row strong { color: var(--green); }
.study-progress-track { height: 4px; margin: 9px 0 20px; border-radius: 4px; background: #e5dfd3; overflow: hidden; }
.study-progress-track i { display: block; height: 100%; width: 5%; border-radius: inherit; background: var(--accent); transition: width .25s ease; }
.study-word-card { padding: 28px clamp(20px, 6vw, 44px); border: 1px solid var(--line); background: #fff; text-align: center; }
.study-kicker { margin: 0; color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .18em; }
.study-word-card h2 { margin: 8px 0 2px; color: var(--green-dark); font: 500 clamp(38px, 7vw, 58px) Georgia, serif; overflow-wrap: anywhere; }
.study-phonetic { margin: 0; color: var(--green); font: 16px Georgia, serif; }
.study-sound-button { margin: 14px 0 20px; border: 1px solid var(--line); border-radius: 100px; background: #f7f4ed; color: var(--green); padding: 8px 15px; cursor: pointer; font-size: 11px; font-weight: 700; }
.study-definition, .study-meaning, .study-example { border-top: 1px solid #ece6dc; padding-top: 17px; text-align: left; }
.study-definition small, .study-meaning small, .study-example small { display: block; margin-bottom: 5px; color: #aaa397; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.study-definition p { margin: 0; color: #39493e; font: 15px/1.55 Georgia, serif; }
.study-definition span { display: block; margin-top: 5px; color: #aaa397; font-size: 8px; }
.study-meaning { margin-top: 17px; }
.study-meaning strong { font: 500 22px Georgia, "Songti SC", serif; }
.study-meaning-content { display: flex; align-items: baseline; gap: 10px; }
.study-meaning-content > span, .dictation-meaning-row > span { border-radius: 14px; background: #edf1e9; color: var(--green-dark); padding: 4px 9px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.study-example { margin-top: 17px; }
.study-example p { margin: 4px 0; line-height: 1.55; }
.study-example p:first-of-type { color: #39493e; font: italic 15px/1.55 Georgia, serif; }
.study-example p:nth-of-type(2) { color: var(--muted); font-size: 12px; }
.study-example span { color: #aaa397; font-size: 8px; }
.study-navigation { display: grid; grid-template-columns: minmax(130px, .42fr) 1fr; gap: 10px; margin-top: 16px; }
.previous-word-button { min-height: 52px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--green); cursor: pointer; font-size: 12px; font-weight: 750; }
.previous-word-button:hover:not(:disabled) { background: #edf1e9; }
.previous-word-button:disabled { color: #b8b3aa; background: #f4f1eb; cursor: default; }
.learned-button { width: 100%; min-height: 52px; border: 0; border-radius: 3px; background: var(--green); color: #fff; cursor: pointer; font-size: 14px; font-weight: 750; }
.learned-button:hover { background: var(--green-dark); }
.learned-button span { margin-left: 8px; opacity: .7; }
.study-tip { margin: 9px 0 0; text-align: center; color: #aaa397; font-size: 9px; }
.study-complete { padding: 62px 30px; text-align: center; }
.study-complete[hidden] { display: none; }
.completion-mark { display: grid; place-items: center; width: 64px; height: 64px; margin: auto; border-radius: 50%; background: #e8f0e8; color: var(--good); font-size: 28px; }
.study-complete > p { margin: 18px 0 5px; color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .18em; }
.study-complete h2 { margin: 0 0 12px; font: 500 32px Georgia, "Songti SC", serif; }
.study-complete > div { margin-bottom: 24px; color: var(--muted); font-size: 12px; }
.study-complete > div strong, .study-complete > div b { color: var(--green); }
.study-complete .primary-button { min-width: 210px; min-height: 46px; border-radius: 3px; cursor: pointer; }
.study-secondary-button { display: block; min-width: 210px; min-height: 42px; margin: 9px auto 0; border-radius: 3px; cursor: pointer; }
.text-button { display: block; margin: 13px auto 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; }
.dictation-brand > span { background: var(--accent); }
#groupDictationContent { padding: 22px clamp(18px, 6vw, 54px) 26px; }
.dictation-pronunciation-toggle { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 13px; border: 1px solid var(--line); background: #f6f2e9; cursor: pointer; }
.dictation-pronunciation-toggle input { width: 17px; height: 17px; accent-color: var(--green); }
.dictation-pronunciation-toggle span, .dictation-pronunciation-toggle strong, .dictation-pronunciation-toggle small { display: block; }
.dictation-pronunciation-toggle strong { color: var(--green-dark); font-size: 10px; }
.dictation-pronunciation-toggle small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.dictation-word-card { padding: 30px clamp(20px, 6vw, 44px); border: 1px solid var(--line); background: #fff; text-align: center; }
.dictation-prompt-definition { margin: 16px 0 20px; padding: 14px 16px; border: 1px solid #e5dfd4; background: #f8f5ee; text-align: left; }
.dictation-prompt-definition small { display: block; margin-bottom: 6px; color: #aaa397; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.dictation-prompt-definition p { margin: 0; color: var(--green-dark); font: 14px/1.55 Georgia, serif; }
.dictation-word-card > small { display: block; margin-top: 19px; color: #aaa397; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.dictation-word-card h2 { margin: 6px 0 20px; font: 500 clamp(27px, 5vw, 39px) Georgia, "Songti SC", serif; }
.dictation-meaning-row { display: flex; justify-content: center; align-items: baseline; gap: 10px; }
.dictation-meaning-row h2 { margin-bottom: 20px; }
.dictation-sound-button { margin-bottom: 24px; }
.dictation-sound-button[hidden] { display: none; }
.dictation-word-card form { text-align: left; }
.dictation-answer-detail { margin-top: 5px; padding: 14px 16px; border-left: 3px solid var(--accent); background: #f7f3ea; text-align: left; }
.dictation-answer-detail[hidden] { display: none; }
.dictation-answer-detail strong { color: var(--green-dark); font: 22px Georgia, serif; }
.dictation-answer-detail > span { margin-left: 9px; color: var(--green); font: 13px Georgia, serif; }
.dictation-answer-detail p { margin: 7px 0 0; color: #505a51; font: italic 12px/1.45 Georgia, serif; }
.dictation-answer-detail .dictation-definition { color: var(--green-dark); font: 12px/1.5 Georgia, serif; }
.dictation-answer-detail p:last-child { color: var(--muted); font: 11px/1.45 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; }
.dictation-complete .final-score { margin: 15px auto; color: var(--muted); }
.dictation-complete .final-score strong { color: var(--accent); font: 64px/1 Georgia, serif; }
.dictation-complete .final-score span { font-size: 13px; }
.dictation-complete > p:not(:first-of-type) { margin: 0 0 22px; color: var(--muted); font-size: 12px; letter-spacing: 0; }
.cloze-brand > span { background: #6f5d86; }
#clozeContent { padding: 22px clamp(18px, 6vw, 54px) 26px; }
.cloze-card { padding: 30px clamp(20px, 6vw, 44px); border: 1px solid var(--line); background: #fff; }
.cloze-card blockquote { margin: 18px 0 12px; color: var(--green-dark); font: 500 clamp(20px, 3vw, 28px)/1.55 Georgia, serif; text-align: center; overflow-wrap: anywhere; }
.cloze-translation { margin: 0 0 24px; color: var(--muted); font-size: clamp(12px, 1.4vw, 14px); line-height: 1.55; text-align: center; }
.cloze-card form { text-align: left; }
.cloze-answer-detail { margin-top: 8px; padding: 14px 16px; border-left: 3px solid #6f5d86; background: #f7f3ea; }
.cloze-answer-detail[hidden] { display: none; }
.cloze-answer-detail small { display: block; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.cloze-answer-detail strong { display: block; margin-top: 4px; color: var(--green-dark); font: 24px Georgia, serif; }
.cloze-answer-detail p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

/* Fluid layout: use the viewport as the scrolling surface instead of nested scroll boxes. */
html { font-size: clamp(14px, .32vw + 12.8px, 17px); }
body { overflow-x: hidden; }
.shell { width: min(1120px, calc(100% - clamp(22px, 5vw, 64px))); padding-block: clamp(14px, 2.5vw, 30px) clamp(28px, 5vw, 56px); }
.dashboard { padding-top: clamp(30px, 6vw, 62px); }
.dashboard-intro h1 { font-size: clamp(34px, 5.4vw, 64px); }
.dashboard-intro > div > p:last-child, .modal-intro { font-size: clamp(12px, 1.2vw, 14px); }
.dashboard-action strong { font-size: clamp(19px, 2.2vw, 24px); }
.dashboard-action em, .dashboard-note, footer { font-size: clamp(10px, 1vw, 12px); }
.modal-backdrop { place-items: start center; overflow-y: auto; overscroll-behavior: contain; padding: clamp(10px, 3vw, 28px); }
.import-modal, .study-modal { max-height: none; overflow: visible; margin-block: auto; }
.word-list, .mastered-word-list, .group-selection-grid, .history-list { max-height: none; overflow: visible; }
.word-meaning { font-size: clamp(12px, 1.2vw, 14px); line-height: 1.55; }
.study-definition p, .study-example p:first-of-type { font-size: clamp(13px, 1.7vw, 16px); }
.study-meaning strong { font-size: clamp(13px, 1.7vw, 16px); line-height: 1.55; overflow-wrap: anywhere; }
.dictation-prompt-definition p { font-size: clamp(13px, 1.5vw, 15px); }
.dictation-word-card h2 { font-size: clamp(22px, 4vw, 38px); line-height: 1.3; overflow-wrap: anywhere; }
.dictation-word-card .dictation-meaning-row h2 { font-size: clamp(13px, 1.5vw, 15px); line-height: 1.55; }
.study-meaning-content, .dictation-meaning-row { flex-wrap: wrap; justify-content: center; }
.study-meaning-content { justify-content: flex-start; }
.profile-gate { min-height: 100dvh; overflow-y: auto; }

@media (max-width: 980px) {
  .topbar { align-items: flex-start; gap: 16px; }
  .top-actions { flex-wrap: wrap; justify-content: flex-end; }
  .dashboard-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dashboard-detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-detail-stats article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .dashboard-detail-stats article:nth-child(4) { border-top: 1px solid var(--line); }
  .dashboard-action { min-height: 112px; padding: 18px; }
  .word-row { grid-template-columns: 28px minmax(105px, .7fr) 1.3fr; gap: 10px; }
  .mastered-row, .vocabulary-row { grid-template-columns: minmax(95px, .55fr) minmax(120px, .8fr) 1.35fr 76px; }
}

@media (max-height: 760px) and (min-width: 621px) {
  .profile-gate-card { padding-block: 24px; }
  .profile-gate-logo { width: 48px; height: 48px; margin-bottom: 10px; font-size: 24px; }
  .profile-gate-intro { margin-bottom: 16px; }
  .profile-options button { padding-block: 14px; }
  .study-head { min-height: 58px; }
  #studyContent, #groupDictationContent, #clozeContent { padding-top: 15px; padding-bottom: 18px; }
  .study-word-card, .dictation-word-card { padding-block: 20px; }
}

@media (max-width: 620px) {
  .profile-options { grid-template-columns: 1fr; }
  .profile-options button { display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; padding: 13px 16px; text-align: left; }
  .profile-options button span { grid-row: 1 / 3; width: 36px; height: 36px; margin: 0; }
  .shell { width: min(100% - 22px, 920px); padding-top: 14px; }
  .topbar { align-items: center; flex-wrap: wrap; }
  .top-actions { width: 100%; justify-content: center; }
  .brand b { font-size: 17px; }
  .brand small { display: none; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .z-glyph { font-size: 22px; }
  .top-actions { gap: 6px; }
  .hero { padding: 38px 0 24px; }
  .dashboard { padding-top: 36px; }
  .dashboard-z { width: 54px; height: 54px; flex-basis: 54px; border-radius: 16px 5px 16px 5px; font-size: 26px; }
  .dashboard-stats { grid-template-columns: 1fr; }
  .dashboard-stats article { min-height: 92px; padding: 18px 22px; }
  .dashboard-stats article + article { border-left: 0; border-top: 1px solid var(--line); }
  .dashboard-stats strong { font-size: 38px; }
  .dashboard-actions { grid-template-columns: 1fr; }
  .dashboard-action { min-height: 108px; }
  .dashboard-intro { align-items: center; gap: 14px; padding-bottom: 20px; }
  .dashboard-intro h1 { font-size: clamp(30px, 10vw, 42px); }
  .history-summary { grid-template-columns: 1fr; }
  .group-selection-grid { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 0; background: var(--cream); }
  .import-modal, .study-modal { width: 100%; min-height: 100dvh; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .import-modal { padding: 20px 14px 28px; }
  .study-word-card, .dictation-word-card { padding: 22px 16px; }
  #studyContent, #groupDictationContent, #clozeContent { padding-inline: 12px; }
  .study-meaning-content, .dictation-meaning-row { align-items: flex-start; gap: 7px; }
  .history-summary article + article { border-left: 0; border-top: 1px solid var(--line); }
  .history-day-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .import-button { font-size: 0; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; padding: 0; }
  .import-button::before { content: "+"; font-size: 20px; }
  .profile-button, .history-button, .vocabulary-button, .mastered-button { width: 38px; height: 38px; padding: 0; border-radius: 50%; font-size: 0; }
  .profile-button::before { content: "♙"; font-size: 15px; }
  .history-button::before { content: "◷"; font-size: 16px; }
  .vocabulary-button::before { content: "▤"; font-size: 15px; }
  .mastered-button::before { content: "✓"; font-size: 15px; }
  .mastered-button span { position: absolute; margin: -27px 0 0 22px; min-width: 16px; height: 16px; font-size: 8px; }
  .study-entry-button { font-size: 0; width: 38px; height: 38px; padding: 0; justify-content: center; }
  .study-entry-button span { font-size: 9px; }
  .dictation-entry-button { font-size: 0; width: 38px; height: 38px; padding: 0; }
  .dictation-entry-button::before { content: "✎"; font-size: 16px; }
  .answer-row { grid-template-columns: 1fr; gap: 8px; }
  .study-navigation { grid-template-columns: 1fr; }
  .audio-controls { flex-wrap: wrap; }
  .voice-status { flex-basis: 100%; max-width: none; }
  .word-row { grid-template-columns: 24px 1fr; gap: 8px; }
  .word-meaning { grid-column: 2; }
  .word-phonetic { grid-column: 2; }
  .word-definition { grid-column: 2; }
  .word-example { grid-column: 2; }
  .word-example-translation { grid-column: 2; }
  .mastered-row { grid-template-columns: 1fr; }
  .mastered-row .word-english, .mastered-row .word-meaning, .mastered-row .mastered-example, .mastered-row .mastered-mark-wrong { grid-column: 1; }
  .vocabulary-row { grid-template-columns: 1fr; }
  .vocabulary-row .word-english, .vocabulary-row .word-meaning, .vocabulary-row .mastered-example, .vocabulary-row .vocabulary-status { grid-column: 1; }
  .vocabulary-status { justify-self: start; }
  .mastered-mark-wrong { justify-self: start; margin-top: 3px; }
  .mastered-pagination button { min-width: 74px; padding: 0 8px; }
  .word-example-source { grid-column: 2; }
  .answer-row input { border-right: 1px solid #cfc8ba; border-radius: 3px; }
  .answer-row button { min-height: 48px; border-radius: 3px; }
  .card-head, .card-foot { padding: 0 16px; }
  .card-foot > span { display: none; }
  #skipButton { margin: auto; }
  .stats { grid-template-columns: 1fr; }
  .stats article { min-height: 65px; }
  .stats article + article { border-left: 0; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
