.recite-words { background: var(--canvas); color: var(--ink); }
.rw-header { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); min-height: 72px; margin-bottom: 32px; }
.rw-header > button { justify-self: start; }
.rw-header > div { justify-self: end; }
.recite-words[data-view=recite-today] .rw-header h1, .recite-words[data-view=recite-today] .rw-header > div { visibility: hidden; }
.recite-words[data-view=recite-today] .rw-header { margin-bottom: 0; }
.recite-words[data-view=recite-today] .rw-today-view { padding-top: 0; }
.rw-header h1 { color: #0876ed; font-size: 38px; font-weight: 700; }
.rw-header h1 span { color: #080b0e; }
.rw-dashboard { grid-template-columns: minmax(0, 1.17fr) minmax(0, 1fr); gap: 28px 22px; max-width: 1300px; margin: auto; }
.rw-current { grid-column: 1; padding: 30px 34px 12px; }
.rw-current-top { align-items: stretch; gap: 30px; }
.rw-current-top > .rw-book-cover { width: 150px; height: 200px; object-fit: contain; align-self: center; border-radius: 8px; }
.rw-book-info { flex: 1; min-width: 0; position: relative; padding-top: 28px; }
.rw-book-info > button { float: right; border: 0; background: #e1f4ff; color: #34485f; min-height: 42px; }
.rw-book-info h2 { clear: both; font-size: 29px; color: #0b0d11; margin: 12px 0 45px; }
.rw-book-info progress { display: block; width: 100%; height: 7px; border: 0; border-radius: 4px; background: #e9f6fd; }
.rw-book-info progress::-webkit-progress-bar { background: #e9f6fd; border-radius: 4px; }
.rw-book-info progress::-webkit-progress-value { background: #58cafa; border-radius: 4px; }
.rw-current dl { margin: 22px 0 0; gap: 8px; }
.rw-current dl > div { display: flex; gap: 2px; align-items: baseline; flex-wrap: wrap; }
.rw-current dt, .rw-current dd { font-size: 18px; margin: 0; color: #387dff; }
.rw-current dt::after { content: ':'; }
.rw-current dl > div:nth-child(2) dt, .rw-current dl > div:nth-child(2) dd { color: #d64218; }
.rw-current dl > div:last-child dt, .rw-current dl > div:last-child dd { color: #555; }
.rw-current > .rw-coverage { margin: 12px 0 0; font-size: 12px; }
.rw-today { grid-column: 1; grid-row: 2; background: white; padding: 28px 40px; border-radius: 8px; }
.rw-today .rw-title { justify-content: center; }
.rw-today .rw-title h2 { font-size: 30px; color: #10151b; }
.rw-counters { margin: 22px 0; gap: 26px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rw-counters > div { width: 100%; aspect-ratio: auto; border-radius: 8px; min-width: 0; min-height: 160px; }
.rw-today .rw-primary { background: #0876ed; border-color: #0876ed; min-width: 230px; }
.rw-memory { grid-column: 2; grid-row: 1 / span 2; min-width: 0; background: white; padding: 10px; border-radius: 8px; }
.rw-memory > img { display: block; width: 100%; height: 100%; max-height: 710px; object-fit: contain; }
.rw-dashboard[data-planned=true] .rw-memory { display: none; }
.rw-dashboard[data-planned=true] .rw-schedule { grid-column: 2; grid-row: 1 / span 2; }
.rw-schedule { min-width: 0; background: white; border: 0; padding: 24px; border-radius: 8px; }
.rw-plan-table { font-size: 15px; }
.rw-plan-table th, .rw-plan-table td { padding: 10px 4px; }
.rw-original-counters { grid-template-columns: 1fr 1fr; }
.rw-today-view { padding-top: 38px; }
.rw-daily-tabs { display: flex; justify-content: center; position: relative; gap: 6px; }
.rw-daily-tabs > button { min-width: 180px; min-height: 70px; border: 0; border-radius: 8px 8px 0 0; font-size: 27px; font-weight: 700; background: white; color: #405370; }
.rw-daily-tabs > button[aria-pressed=true] { border: 6px solid #5ecaf0; border-bottom: 0; z-index: 1; }
.rw-daily-progress { position: absolute; top: -25px; left: calc(50% - 215px); z-index: 2; border: 1px solid #7ca8e5; border-radius: 24px; min-width: 94px; text-align: center; padding: 6px 16px; background: white; color: #405370; }
.rw-daily-body { margin-top: -6px; border: 6px solid #5ecaf0; border-radius: 8px; background: white; overflow: hidden; }
.rw-daily-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 48px; padding: 34px 18px; min-height: 520px; align-content: start; }
.rw-daily-grid > article { min-width: 0; position: relative; }
.recite-words .rw-daily-word { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 1.7fr); gap: 12px; width: 100%; min-height: 138px; text-align: left; padding: 24px 38px; border: 1px solid #b8c1c8; border-radius: 8px; color: #405370; box-shadow: 0 3px 8px #1736500b; }
.recite-words .rw-daily-word[aria-pressed=true] { border-color: #54b9e5; background: #fbfeff; }
.rw-daily-name { grid-column: 1 / -1; font-size: 27px; color: #2e3e55; overflow-wrap: anywhere; padding-right: 40px; }
.rw-daily-phonetic { font-size: 20px; overflow-wrap: anywhere; }
.rw-daily-meaning { font-size: 20px; text-align: right; overflow-wrap: anywhere; align-self: end; }
.rw-daily-done { grid-column: 1 / -1; font-size: 14px; color: #157851; display: inline-flex; gap: 4px; align-items: center; }
.rw-daily-grid > article > button:not(.rw-daily-word) { position: absolute; right: 14px; top: 14px; padding: 8px; min-width: 44px; min-height: 44px; border: 0; background: transparent; color: #2e80aa; }
.rw-daily-body > footer { display: flex; justify-content: center; padding: 15px; background: #e3f7ff; }
.recite-words [data-rw=daily-start] { background: #ffb748; border-color: #ffb748; color: #282a31; min-width: 260px; min-height: 54px; font-size: 22px; font-weight: 700; }
.rw-session[data-phase=test] .rw-session-body { min-height: 570px; padding-top: 40px; background: #fff url('/assets/original-ui/bg_recitewords_test_content.webp') center / cover; }
.rw-options [data-result=correct] { background: #d8f8e2; border-color: #16834b; opacity: 1; }
.rw-options [data-result=wrong] { background: #ffe9ea; border-color: #c53343; opacity: 1; }
.recite-words .rw-quick-books { width: min(474px, calc(100% - 32px)); padding: 0; max-height: calc(100dvh - 40px); }
.rw-quick-books header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid #d6dce2; }
.rw-quick-books h2 { margin: 0; font-size: 26px; }
.rw-quick-books header > button { width: 44px; padding: 8px; border: 0; }
.rw-quick-books > div { padding: 14px 20px; }
.rw-quick-books > div > button { width: 100%; display: flex; justify-content: space-between; text-align: left; border: 0; padding: 16px 20px; min-height: 66px; gap: 16px; }
.rw-quick-books button > span { font-size: 20px; overflow-wrap: anywhere; }
.rw-quick-books small { font-size: 12px; color: #677e87; white-space: nowrap; }
.recite-words .rw-quick-books footer { margin: 0; padding: 0 24px 18px; }
@media (max-width: 1100px) {
  .rw-dashboard { grid-template-columns: 1fr 1fr; }
  .rw-current { padding: 22px 20px 12px; }
  .rw-current-top { gap: 18px; }
  .rw-current-top > .rw-book-cover { width: 100px; height: 150px; }
  .rw-book-info { padding-top: 0; }
  .rw-book-info h2 { font-size: 23px; margin-bottom: 28px; }
  .rw-current dt, .rw-current dd { font-size: 15px; }
  .rw-today { padding: 24px; }
  .rw-daily-grid { gap: 24px; }
  .recite-words .rw-daily-word { padding: 22px; }
}
@media (max-width: 760px) {
  .rw-header { margin-bottom: 20px; grid-template-columns: 38px minmax(0, 1fr) auto; }
  .rw-header h1 { font-size: 24px; }
  .rw-dashboard { display: flex; flex-direction: column; gap: 20px; }
  .rw-current-top > .rw-book-cover { width: 80px; height: 125px; }
  .rw-book-info h2 { font-size: 21px; }
  .rw-current dt, .rw-current dd { font-size: 14px; }
  .rw-memory { max-width: 560px; align-self: center; }
  .rw-memory > img { max-height: 600px; }
  .rw-schedule { padding: 18px; }
  .rw-today .rw-title h2 { font-size: 24px; }
  .rw-counters { gap: 12px; }
  .rw-counters > div { padding: 16px 12px; }
  .rw-today-view { padding-top: 28px; }
  .rw-daily-tabs > button { min-width: 110px; min-height: 58px; font-size: 22px; }
  .rw-daily-progress { left: calc(50% - 125px); top: -24px; font-size: 14px; }
  .rw-daily-grid { grid-template-columns: 1fr; min-height: 330px; gap: 16px; padding: 20px 12px; }
  .recite-words .rw-daily-word { min-height: 132px; padding: 20px; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
  .rw-daily-name { font-size: 24px; }
  .rw-daily-phonetic, .rw-daily-meaning { font-size: 17px; }
  .recite-words [data-rw=daily-start] { min-width: 0; width: min(260px, 100%); }
  .rw-quick-books > div { padding: 10px; }
  .rw-quick-books > div > button { padding: 14px 10px; }
  .rw-quick-books button > span { font-size: 17px; }
}
