/* Sổ tay học tập: cùng ngôn ngữ hình ảnh với cổng game nhưng điềm tĩnh hơn (ít hiệu ứng, nhiều chữ). */
.notebook .page { max-width: 920px; }
.nb-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.nb-intro__text { flex: 1 1 320px; min-width: 0; }
.nb-title { font-size: var(--fs-xl); font-weight: 900; line-height: 1.2; margin-bottom: var(--sp-1); }
.nb-h2 { font-size: var(--fs-l); font-weight: 900; margin-bottom: var(--sp-3); }
.nb-h3 { font-size: var(--fs-xs); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); margin: var(--sp-4) 0 var(--sp-2); }
.nb-stats { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.nb-tile { display: flex; align-items: center; gap: var(--sp-3); text-align: left; padding: var(--sp-3); }
.nb-tile > .ico { width: 38px; height: 38px; }
.nb-tile .ico--star .s-fill { fill: var(--c-star); }
.nb-tile > div { min-width: 0; }
.nb-day { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--sp-4); }
.nb-big { font-size: 1.7rem; font-weight: 900; line-height: 1.2; font-variant-numeric: tabular-nums; }
.nb-unit { font-size: var(--fs-s); font-weight: 800; color: var(--c-muted); }
.nb-day .progress { margin: 6px 0; }
.nb-history { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: end; }
.nb-history__day { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.nb-history__n { font-size: var(--fs-xs); font-weight: 800; min-height: 1.2em; font-variant-numeric: tabular-nums; }
.nb-history__d { font-size: .68rem; font-weight: 700; color: var(--c-muted); white-space: nowrap; }
.nb-history__day.is-today .nb-history__d { color: var(--c-text); font-weight: 900; }
.nb-bar { display: flex; align-items: flex-end; width: 100%; max-width: 34px; height: 90px; border-radius: 8px; background: var(--c-surface-2); border: 2px solid var(--c-line); overflow: hidden; }
.nb-bar__all { display: flex; align-items: flex-end; width: 100%; height: var(--h, 0%); background: var(--c-surface-3); }
.nb-bar__ok { display: block; width: 100%; height: var(--h, 0%); background: var(--c-good-fill); }
.nb-topics { display: grid; gap: var(--sp-3); }
.nb-topic { display: flex; align-items: center; gap: var(--sp-3); }
.nb-topic__icon { font-size: 1.9rem; line-height: 1; flex: none; width: 44px; text-align: center; }
.nb-topic__body { flex: 1 1 auto; min-width: 0; }
.nb-topic__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px var(--sp-3); margin-bottom: 4px; font-size: var(--fs-s); }
.nb-topic__head strong { font-size: var(--fs-m); }
.nb-filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.nb-search { flex: 1 1 240px; min-width: 0; }
.nb-status { justify-content: flex-start; margin-top: var(--sp-3); }
.nb-status .chip { min-height: 44px; box-shadow: 0 2px 0 var(--c-ink); }
.nb-count { margin: var(--sp-2) 0; font-size: var(--fs-s); font-weight: 700; }
.nb-words { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow-y: auto; border: 2.5px solid var(--c-ink); border-radius: var(--radius-m); background: var(--c-surface-2); }
.nb-word { display: grid; grid-template-columns: 44px minmax(120px, 1.2fr) auto minmax(0, 1fr) 48px; align-items: center; gap: var(--sp-2) var(--sp-3); padding: 6px var(--sp-3); border-bottom: 2px dashed var(--c-line); }
.nb-word:last-child { border-bottom: 0; }
.nb-word__emoji { font-size: 1.7rem; line-height: 1; text-align: center; }
.nb-word__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.nb-word__text strong { font-size: 1.08rem; font-weight: 900; }
.nb-word__text .muted { font-size: var(--fs-s); }
.nb-word__badges { display: flex; flex-wrap: wrap; gap: 4px; }
.nb-word__nums { font-size: var(--fs-xs); font-weight: 700; text-align: right; }
.nb-word .btn--icon { min-width: 44px; min-height: 44px; box-shadow: 0 2px 0 var(--c-ink); }
.nb-st { font-size: var(--fs-xs); padding: 1px 9px; border-width: 2px; white-space: nowrap; }
.nb-st--new { background: transparent; color: var(--c-muted); border-style: dashed; border-color: var(--c-line); }
.nb-st--learning { background: var(--c-warn-soft); color: var(--c-warn); }
.nb-st--review { background: var(--c-primary-soft); color: var(--c-text); }
.nb-st--mastered { background: var(--c-good-soft); color: var(--c-good); }
.nb-st--weak { background: var(--c-bad-soft); color: var(--c-bad); }
.nb-note { font-size: var(--fs-s); margin-top: var(--sp-2); }
.backup__row { margin: var(--sp-3) 0; }
select.input { cursor: pointer; }
@media (max-width: 640px) {
  .nb-day { grid-template-columns: 1fr; }
  .nb-word { grid-template-columns: 40px minmax(0, 1fr) 48px; }
  .nb-word__badges { grid-column: 2; }
  .nb-word__nums { grid-column: 2; text-align: left; }
  .nb-word .btn--icon { grid-column: 3; grid-row: 1 / span 3; }
  .nb-history { gap: 3px; }
  .nb-history__d { font-size: .56rem; }
  .nb-history__day:nth-child(odd) .nb-history__d { visibility: hidden; }
}
