.account-nav { display: flex; align-items: center; gap: 5px; margin-inline-start: auto; }
.account-nav a { font-size: 14px; font-weight: 680; white-space: nowrap; padding: 7px 10px; border-radius: 8px; }
.account-nav a:hover { background: var(--soft); }
.account-nav a:last-child { border: 1px solid var(--edge); background: var(--paper); }
.account-page { padding: clamp(20px, 5vw, 62px) 0 38px; }
.account-card { max-width: 560px; margin: 0 auto; border: 1px solid var(--edge); border-radius: 20px; padding: clamp(20px, 5vw, 36px); background: var(--paper); box-shadow: 0 12px 28px #6746280c; }
.account-card h1 { margin: 0 0 8px; font-size: clamp(24px, 5vw, 34px); letter-spacing: -.04em; }
.account-card > p { color: var(--muted); margin-bottom: 12px; }
.account-card > a { display: inline-block; padding-top: 8px; font-weight: 680; }
.account-card.collection { max-width: 840px; }
.account-form { display: grid; gap: 12px; margin-top: 19px; }
.account-form label { display: grid; gap: 4px; font-size: 14px; font-weight: 680; }
.account-form input { min-height: 44px; width: 100%; padding: 8px 10px; color: var(--ink); border: 1px solid var(--edge); border-radius: 9px; background: #fffaf2; }
.account-form .text-button { justify-self: center; }
.account-error, .practice-message { color: #9c3b31; font-size: 14px; margin-bottom: 10px; }
.account-error:empty { display: none; }
.account-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 15px; margin-top: 14px; }
.account-actions a { font-size: 14px; font-weight: 680; }
.account-actions .primary { padding-inline: 13px; }
.checkout-status { margin-top: 13px; color: var(--muted); }
.checkout-status img { display: block; margin-top: 8px; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.account-card.purchase-card { max-width: 950px; padding: clamp(20px, 4vw, 44px); }
.purchase-back { margin-bottom: 13px; font-size: 14px; }
.purchase-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); align-items: start; gap: 20px; margin-top: 24px; }
.purchase-features, .purchase-plan { border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.purchase-plan { background: #fbefdb; }
.purchase-heading { margin: 0; font-size: 15px; font-weight: 730; }
h2.purchase-heading { font-size: 20px; margin-bottom: 10px; }
.purchase-feature { padding: 11px 0; border-top: 1px solid var(--line); }
.purchase-feature:last-child { padding-bottom: 0; }
.purchase-feature p, .purchase-plan > p:not(.purchase-price) { color: var(--muted); margin-top: 4px; font-size: 14px; }
.purchase-price { display: flex; gap: 4px; align-items: baseline; color: var(--accent); line-height: 1.15; }
.purchase-price strong { font-size: 45px; letter-spacing: -.055em; }
.purchase-price span { font-size: 19px; font-weight: 700; }
.purchase-plan a:not(.purchase-link) { display: block; margin-top: 12px; font-size: 14px; }
.purchase-link { display: inline-flex; justify-content: center; align-items: center; padding-inline: 16px; }
.purchase-plan .purchase-link { width: 100%; margin-top: 18px; }
.purchase-total { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-top: 1px solid var(--edge); margin-top: 15px; padding-top: 12px; }
.purchase-total .purchase-price strong { font-size: 35px; }
.purchase-methods { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.purchase-method { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 9px; border-radius: 9px; color: var(--ink); font-size: 14px; }
.purchase-method:has(input:checked) { border-color: var(--accent); }
.purchase-method input { accent-color: var(--accent); margin: 0; }
.purchase-method small { margin-inline-start: auto; color: var(--muted); }
.purchase-mark { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 6px; background: #0872d2; color: white; }
.purchase-mark.wechat { background: #277742; }
.payment-status { min-height: 22px; }
.book-list { display: grid; gap: 9px; margin-top: 15px; }
.book-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fffaf2; }
.book-item summary { cursor: pointer; font-weight: 670; }
.book-state { display: inline-flex; margin-inline: 3px 8px; border-radius: 9px; background: var(--soft); color: var(--accent); font-size: 12px; padding: 2px 7px; }
.book-meta { font-size: 13px; color: var(--muted); margin: 7px 0; }
.book-material { margin-bottom: 9px; color: var(--accent); }
.book-material audio { display: block; max-width: 100%; margin: 7px 0; }
.book-context { max-height: 270px; overflow: auto; padding: 5px 9px 5px 25px; color: var(--ink); font-size: 14px; }
.book-context li { margin-bottom: 6px; white-space: pre-line; }
.book-context.has-letters { list-style-type: upper-alpha; }
.book-choices { display: grid; gap: 5px; border: 0; margin: 0; padding: 0; }
.book-choices label { display: flex; align-items: start; gap: 7px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.book-choices label:has(input:checked) { border-color: var(--edge); background: var(--soft); }
.book-choices input { margin-top: 4px; accent-color: var(--accent); }
.book-feedback, .book-explanation { margin-top: 7px; white-space: pre-line; }
.book-feedback { color: var(--accent); font-weight: 720; }
.book-explanation:empty, .book-feedback:empty { display: none; }
.vocabulary-item { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.vocabulary-item h2 { font-size: 21px; line-height: 1.25; overflow-wrap: anywhere; }
.vocabulary-item p { color: var(--muted); margin-top: 6px; }
.vocabulary-item button { flex-shrink: 0; }
.word-picker { position: fixed; z-index: 15; display: flex; align-items: center; gap: 8px; border: 1px solid var(--edge); border-radius: 10px; padding: 6px 7px 6px 10px; background: var(--paper); box-shadow: 0 6px 22px #51371c30; max-width: calc(100vw - 20px); }
.word-picker span { color: var(--ink); font-size: 13px; font-weight: 690; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.word-picker button { min-height: 33px; white-space: nowrap; }
.account-toast { position: fixed; z-index: 16; bottom: 16px; right: 16px; padding: 9px 12px; border: 1px solid var(--edge); border-radius: 9px; background: var(--paper); color: var(--ink); box-shadow: 0 8px 25px #51371c22; }
@media (max-width: 510px) {
  .account-nav { gap: 1px; flex-wrap: wrap; justify-content: end; }
  .account-nav a { font-size: 12px; padding: 6px; }
  .purchase-layout { grid-template-columns: 1fr; }
}
.vocabulary-item .word-meaning {
  color: #74451f;
  font-weight: 700;
  margin: 4px 0 7px;
}
.word-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
