html.qx-account-required #statistics-root { visibility: hidden; }
#statistics-root { min-height: 100vh; color: #2d2a26; background: radial-gradient(circle at 8% 5%, rgba(74,113,103,.11), transparent 28rem), #f7f3ec; font-family: "Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif; }
#statistics-root[hidden] { display: none; }
.statistics-course-card { color: var(--ink); text-align: left; cursor: pointer; flex-direction: column; transition: transform .17s,border-color .17s,box-shadow .17s; display: flex; box-shadow: 0 12px 28px rgba(54,43,26,.08); }
.statistics-course-card:hover,.statistics-course-card:focus-visible { border-color: var(--ink); outline: none; transform: translateY(-4px); box-shadow: 0 18px 36px rgba(54,43,26,.13); }
.statistics-course-card .course-card-icon { display: grid; place-items: center; background: #e4efeb !important; color: #356b5c !important; font: 700 27px/1 Georgia,serif; }
.statistics-course-card .course-card-topline b { color: #356b5c !important; background: #e4efeb !important; }

.stats-topbar { display: flex; align-items: center; gap: 14px; min-height: 92px; border-bottom: 1px solid rgba(90,75,58,.14); background: rgba(255,253,248,.88); padding: 16px max(24px,calc((100vw - 1120px)/2)); backdrop-filter: blur(12px); }
.stats-brand { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #376d5f; color: #fff; box-shadow: inset 0 0 0 4px rgba(255,255,255,.15); font: 600 24px/1 serif; cursor: pointer; }
.stats-topbar p { margin: 0 0 2px; color: #82776b; font-size: 12px; letter-spacing: .14em; }
.stats-topbar h1 { margin: 0; font: 600 26px/1.2 Georgia,"Songti SC",serif; }
.stats-page { width: min(calc(100% - 32px),1080px); margin: 0 auto; padding: 50px 0 80px; }
.stats-hero { width: min(820px,100%); margin: 22px auto 46px; text-align: center; }
.stats-hero > span,.stats-section-head > span { color: #a53c32; font-size: 12px; font-weight: 700; letter-spacing: .2em; }
.stats-hero h2 { margin: 12px 0; font: 600 clamp(34px,5vw,54px)/1.22 Georgia,"Songti SC",serif; }
.stats-hero p { margin: 0 auto; max-width: 720px; color: #766d64; font-size: 16px; line-height: 1.9; }
.stats-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.stats-mode-card { display: grid; min-height: 290px; align-content: start; border: 1px solid #dfd6ca; border-radius: 25px; background: rgba(255,253,248,.96); box-shadow: 0 16px 46px rgba(57,46,35,.08); padding: 31px; text-align: left; cursor: pointer; transition: transform .2s,box-shadow .2s,border-color .2s; }
.stats-mode-card:hover { transform: translateY(-4px); border-color: #9bb5ac; box-shadow: 0 22px 54px rgba(50,67,58,.13); }
.stats-mode-card > span { color: #376d5f; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.stats-mode-card strong { margin: 42px 0 12px; font: 600 31px/1.3 Georgia,"Songti SC",serif; }
.stats-mode-card p { margin: 0; color: #746b62; line-height: 1.8; }
.stats-mode-card em { align-self: end; margin-top: 28px; color: #376d5f; font-style: normal; font-weight: 700; }
.stats-mode-card.is-test { background: #365f55; color: #fff; }
.stats-mode-card.is-test > span,.stats-mode-card.is-test p,.stats-mode-card.is-test em { color: rgba(255,255,255,.78); }
.stats-scope-note,.stats-feedback { margin-top: 26px; border: 1px solid #e2d9ce; border-radius: 18px; background: rgba(255,253,248,.82); padding: 23px 25px; }
.stats-scope-note h3,.stats-feedback h3 { margin: 0 0 8px; font: 600 19px/1.4 Georgia,"Songti SC",serif; }
.stats-scope-note p,.stats-feedback p { margin: 0; color: #6f675f; line-height: 1.8; }
.stats-scope-note small { display: block; margin-top: 8px; color: #8b8176; }
.stats-feedback button { border: 1px solid #d8cec2; background: #fff; color: #514b45; cursor: pointer; }
.stats-feedback-inline { display: grid; grid-template-columns: minmax(240px,1fr) auto; align-items: center; gap: 16px 24px; }
.stats-feedback-copy { display: grid; gap: 4px; }
.stats-feedback-copy strong { color: #262d38; font-size: 18px; }
.stats-feedback-copy span { color: #68717e; font-size: 13px; }
.stats-feedback-actions { display: flex; align-items: stretch; gap: 16px; }
.stats-feedback-button-group,.stats-difficulty-feedback { display: flex; }
.stats-feedback-button-group { gap: 8px; }
.stats-feedback-button-group button { border-radius: 12px; padding: 10px 16px; font-size: 15px; }
.stats-feedback-button-group button b { margin-left: 4px; }
.stats-difficulty-feedback button { border-right-width: 0; padding: 10px 14px; font-weight: 700; }
.stats-difficulty-feedback button:first-child { border-radius: 12px 0 0 12px; }
.stats-difficulty-feedback button:last-child { border-right-width: 1px; border-radius: 0 12px 12px 0; }
.stats-feedback button.is-selected { border-color: #8e342c; background: #8e342c; color: #fff; }
.stats-feedback button:disabled { cursor: default; opacity: .62; }
.stats-feedback button.is-selected:disabled { opacity: 1; }
.stats-feedback-inline > small { grid-column: 1 / -1; color: #8e342c; }
@media (max-width:900px) { .stats-feedback-inline { grid-template-columns: 1fr; } .stats-feedback-actions { flex-wrap: wrap; } }
@media (max-width:520px) { .stats-feedback-actions { display: grid; } .stats-feedback-button-group button { flex: 1; } }
.stats-back,.stats-link-button { border: 0; background: none; padding: 0; color: #8e342c; font-size: 14px; cursor: pointer; }
.stats-link-button { display: block; margin: 24px auto 0; text-decoration: underline; text-underline-offset: 4px; }
.stats-section-head { margin: 30px 0; }
.stats-section-head h2 { margin: 9px 0; font: 600 38px/1.25 Georgia,"Songti SC",serif; }
.stats-section-head p { margin: 0; color: #766d64; line-height: 1.75; }
.stats-form-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.stats-form-grid button { display: grid; min-height: 220px; align-content: space-between; border: 1px solid #ded5ca; border-radius: 20px; background: #fffdf9; padding: 22px; text-align: left; cursor: pointer; transition: transform .2s,border-color .2s; }
.stats-form-grid button:hover { transform: translateY(-3px); border-color: #719689; }
.stats-form-grid span { color: #a53c32; font: 700 12px/1 Georgia,serif; }
.stats-form-grid strong { font: 600 25px/1.3 Georgia,"Songti SC",serif; }
.stats-form-grid small { color: #7b7269; line-height: 1.65; }
.stats-chapter-list { display: grid; gap: 16px; }
.stats-chapter-card { display: grid; grid-template-columns: minmax(190px,.8fr) minmax(0,2.2fr); gap: 22px; align-items: center; border: 1px solid #ded5ca; border-radius: 20px; background: rgba(255,253,249,.92); padding: 22px; box-shadow: 0 10px 30px rgba(54,43,26,.05); }
.stats-chapter-heading span { color: #a53c32; font: 700 11px/1 Georgia,serif; letter-spacing: .14em; }
.stats-chapter-heading h3 { margin: 9px 0 0; font: 600 21px/1.45 Georgia,"Songti SC",serif; }
.stats-chapter-forms { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
.stats-chapter-forms button { display: grid; gap: 6px; min-width: 0; min-height: 92px; align-content: center; border: 1px solid #ddd4c9; border-radius: 13px; background: #fff; padding: 12px; color: #39342f; text-align: left; cursor: pointer; transition: transform .18s,border-color .18s,background .18s; }
.stats-chapter-forms button:hover,.stats-chapter-forms button:focus-visible { transform: translateY(-2px); border-color: #568174; background: #edf4f1; outline: none; }
.stats-chapter-forms b { font-size: 14px; }
.stats-chapter-forms span { overflow: hidden; color: #776f67; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.stats-chapter-forms em { color: #376d5f; font-size: 11px; font-style: normal; font-weight: 700; }
.stats-question-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; color: #756c63; font-size: 13px; }
.stats-current-chapter { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; padding: 0 4px; }
.stats-current-chapter span { color: #a53c32; font-size: 12px; font-weight: 700; }
.stats-current-chapter strong { font: 600 18px/1.4 Georgia,"Songti SC",serif; }
.stats-practice-tabs { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 0 0 15px; border: 1px solid #ded5ca; border-radius: 15px; background: rgba(255,253,248,.78); padding: 7px; }
.stats-practice-tabs button { min-height: 43px; border: 0; border-radius: 10px; background: transparent; color: #70675f; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .18s,color .18s,box-shadow .18s; }
.stats-practice-tabs button:hover { background: #f0ebe4; }
.stats-practice-tabs button.is-active { background: #376d5f; color: #fff; box-shadow: 0 5px 14px rgba(55,109,95,.2); }
.stats-question-card { border: 1px solid #ded5ca; border-radius: 24px; background: #fffdf9; box-shadow: 0 18px 54px rgba(52,43,35,.08); padding: clamp(24px,5vw,48px); }
.stats-question-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stats-question-meta span { color: #376d5f; font-size: 13px; font-weight: 700; }
.stats-question-meta em { border-radius: 999px; background: #f1ece4; padding: 7px 11px; color: #776e65; font-size: 12px; font-style: normal; }
.stats-question-card h2 { margin: 28px 0; font: 600 clamp(22px,3vw,30px)/1.65 Georgia,"Songti SC",serif; }
.stats-options { display: grid; gap: 11px; }
.stats-options button { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 12px; min-height: 58px; border: 1px solid #ddd4ca; border-radius: 13px; background: #fff; padding: 8px 14px; color: #38332f; text-align: left; cursor: pointer; }
.stats-options button:hover,.stats-options button.is-selected { border-color: #547f72; background: #edf4f1; }
.stats-options button b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #eee8df; color: #645d56; }
.stats-options button.is-selected b { background: #376d5f; color: #fff; }
.stats-options.is-binary { grid-template-columns: 1fr 1fr; }
.stats-answer-field { display: grid; gap: 8px; }
.stats-answer-field > span { font-size: 14px; font-weight: 700; }
.stats-answer-field textarea,.stats-answer-field input { width: 100%; box-sizing: border-box; border: 1px solid #d8cec2; border-radius: 13px; background: #fff; padding: 14px; color: #2d2a26; font: 16px/1.75 inherit; outline: none; }
.stats-answer-field input { min-height: 52px; }
.stats-answer-field textarea:focus,.stats-answer-field input:focus { border-color: #568174; box-shadow: 0 0 0 3px rgba(55,109,95,.12); }
.stats-auto-note,.stats-test-note { color: #857b70; font-size: 12px; line-height: 1.7; }
.stats-hint-area { margin-top: 18px; }
.stats-hint-toggle { border: 0; background: transparent; padding: 4px 0; color: #8e342c; font-size: 14px; font-weight: 700; cursor: pointer; }
.stats-hint-toggle::before { content: "◇"; margin-right: 7px; color: #b98a45; }
.stats-hint-panel { margin-top: 10px; border: 1px solid #dfcfaa; border-radius: 13px; background: #fbf4e3; padding: 15px 17px; color: #5e554c; }
.stats-hint-panel b { color: #7a332c; font-size: 13px; }
.stats-hint-panel p { margin: 7px 0 0; font-size: 14px; line-height: 1.75; }
.stats-question-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; }
.stats-primary,.stats-secondary { min-height: 46px; border: 0; border-radius: 11px; padding: 0 22px; font-size: 14px; font-weight: 700; cursor: pointer; }
.stats-primary { background: #376d5f; color: #fff; }
.stats-secondary { background: #eee8df; color: #5f574f; }
.stats-explanation { margin-top: 26px; border-left: 4px solid #3d7867; border-radius: 12px; background: #edf5f1; padding: 18px 20px; }
.stats-explanation.is-wrong { border-left-color: #a64036; background: #f9ece9; }
.stats-explanation h3 { margin: 0 0 9px; font-size: 17px; }
.stats-explanation p { margin: 6px 0 0; line-height: 1.75; }
.stats-progress { height: 7px; margin-bottom: 16px; overflow: hidden; border-radius: 999px; background: #ddd6cd; }
.stats-progress i { display: block; height: 100%; border-radius: inherit; background: #376d5f; transition: width .25s; }
.stats-test-note { text-align: center; }
.stats-result { display: grid; justify-items: center; max-width: 720px; margin: 20px auto; border: 1px solid #ded5ca; border-radius: 25px; background: #fffdf9; box-shadow: 0 18px 56px rgba(54,44,36,.09); padding: 48px 28px; text-align: center; }
.stats-result > span { color: #376d5f; font-weight: 700; letter-spacing: .12em; }
.stats-result > strong { margin: 25px 0 8px; color: #a33a30; font: 700 78px/1 Georgia,serif; }
.stats-result > strong small { margin-left: 5px; font-size: 20px; }
.stats-result h2 { margin: 12px 0; font: 600 27px/1.5 Georgia,"Songti SC",serif; }
.stats-result p { color: #746b62; }
.stats-result > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.stats-result .stats-link-button { margin: 0 8px; }
.stats-review-list { display: grid; gap: 15px; }
.stats-review-list article { border: 1px solid #dfd6cb; border-radius: 17px; background: #fffdf9; padding: 22px; }
.stats-review-list article > div { display: flex; justify-content: space-between; gap: 10px; color: #376d5f; font-size: 12px; font-weight: 700; }
.stats-review-list em { color: #a13b32; font-style: normal; }
.stats-review-list h3 { margin: 13px 0; font: 600 19px/1.65 Georgia,"Songti SC",serif; }
.stats-review-list p { margin: 7px 0; color: #625b54; line-height: 1.75; }
.stats-empty { border: 1px dashed #d5cabd; border-radius: 17px; padding: 38px; color: #7e7469; text-align: center; }

.stats-mode-grid.has-final { grid-template-columns: repeat(3,1fr); }
.stats-mode-card.is-final { border-color: #dec8be; background: linear-gradient(180deg, rgba(255,252,247,.98), rgba(252,243,237,.96)); }
.stats-mode-card.is-final:hover { border-color: #a53c32; }
.stats-mode-card.is-final > span,.stats-mode-card.is-final em { color: #8e342c; }
.stats-final-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.stats-final-card { display: grid; gap: 10px; min-height: 210px; align-content: start; border: 1px solid #ded5ca; border-radius: 20px; background: rgba(255,253,249,.95); padding: 24px; text-align: left; cursor: pointer; box-shadow: 0 10px 30px rgba(54,43,26,.06); transition: transform .18s,border-color .18s,box-shadow .18s; }
.stats-final-card:hover,.stats-final-card:focus-visible { transform: translateY(-3px); border-color: #8e342c; box-shadow: 0 16px 36px rgba(54,43,26,.11); outline: none; }
.stats-final-index { color: #a53c32; font: 700 12px/1 Georgia,serif; letter-spacing: .08em; }
.stats-final-card strong { margin-top: 8px; font: 600 24px/1.35 Georgia,"Songti SC",serif; color: #2d2a26; }
.stats-final-card p { margin: 0; color: #746b62; font-size: 14px; line-height: 1.7; }
.stats-final-card em { align-self: end; margin-top: auto; padding-top: 12px; color: #376d5f; font-size: 13px; font-style: normal; font-weight: 700; }
.stats-final-tabs { grid-template-columns: repeat(5,1fr); }
.stats-final-tabs button em { margin-left: 5px; font-size: 11px; font-style: normal; opacity: .78; }
.stats-final-toolbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stats-order-toggle { border: 1px solid #d8cec2; border-radius: 999px; background: #fffdf9; padding: 5px 12px; color: #5b534b; font-size: 12px; font-weight: 600; cursor: pointer; transition: border-color .15s,color .15s; }
.stats-order-toggle:hover { border-color: #376d5f; color: #376d5f; }
.stats-self-grade { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(90,75,58,.2); }
.stats-self-grade > span { color: #675e56; font-size: 13px; font-weight: 600; }
.stats-self-btn { border: 1px solid #d5cbc0; border-radius: 9px; background: #fff; padding: 7px 14px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s,border-color .15s,color .15s; }
.stats-self-btn.is-ok:hover { border-color: #376d5f; background: #376d5f; color: #fff; }
.stats-self-btn.is-bad:hover { border-color: #a64036; background: #a64036; color: #fff; }
.stats-secondary:disabled { opacity: .45; cursor: default; }

@media (max-width: 960px) {
  .stats-mode-grid.has-final { grid-template-columns: 1fr; }
  .stats-final-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .stats-form-grid { grid-template-columns: 1fr 1fr; }
  .stats-chapter-card { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 620px) {
  .stats-topbar { min-height: 76px; padding: 12px 16px; }
  .stats-brand { width: 42px; height: 42px; }
  .stats-topbar h1 { font-size: 21px; }
  .stats-page { width: min(calc(100% - 22px),1080px); padding: 28px 0 90px; }
  .stats-hero { margin: 12px auto 28px; text-align: left; }
  .stats-hero h2 { font-size: 35px; }
  .stats-mode-grid,.stats-form-grid,.stats-final-grid { grid-template-columns: 1fr; }
  .stats-chapter-card { padding: 18px 15px; }
  .stats-chapter-forms { grid-template-columns: 1fr 1fr; }
  .stats-chapter-forms button { min-height: 86px; }
  .stats-mode-card { min-height: 230px; padding: 24px; }
  .stats-mode-card strong { margin-top: 28px; }
  .stats-form-grid button { min-height: 150px; }
  .stats-question-card { border-radius: 18px; padding: 22px 17px; }
  .stats-practice-tabs { display: flex; overflow-x: auto; padding: 6px; scrollbar-width: none; }
  .stats-practice-tabs::-webkit-scrollbar { display: none; }
  .stats-practice-tabs button { flex: 0 0 96px; }
  .stats-question-meta { align-items: flex-start; flex-direction: column; }
  .stats-options.is-binary { grid-template-columns: 1fr; }
  .stats-question-actions { align-items: stretch; flex-direction: column-reverse; }
  .stats-primary,.stats-secondary { width: 100%; }
  .stats-result { padding: 36px 18px; }
}
