/* Góc phụ huynh: tiến độ, học tiếp, hướng dẫn, sao lưu. */

/* Màn hình chính: Học tiếp */
.pg-continue {
  width: 100%;
  min-height: 110px;
  margin-top: 18px;
  display: flex; align-items: center; gap: 18px;
  text-align: left;
  background: var(--good);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 6px 0 #1fa956, 0 10px 24px rgba(0, 0, 0, .12);
  padding: 18px 26px;
}
.pg-continue:active { transform: translateY(4px); box-shadow: 0 2px 0 #1fa956; }
.pg-continue-icon { font-size: 64px; line-height: 1; }
.pg-continue-label { font-size: 30px; font-weight: 800; }
.pg-continue-sub { font-size: 19px; opacity: .92; }

/* Màn hình chính: cảnh báo thiếu giọng đọc */
.pg-voice-warn {
  margin-top: 18px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  background: #FFF3C4;
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 18px;
}
.pg-voice-warn-text { font-weight: 700; }
.pg-voice-warn-btn {
  background: var(--card);
  border-radius: 14px;
  padding: 10px 16px;
  font-weight: 700;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .08);
}

/* Khung trong Cài đặt */
.pg-panel .pg-h { margin: 0 0 12px; font-size: 24px; }
.pg-panel .pg-h4 { margin: 18px 0 8px; font-size: 20px; }

.pg-lang { margin: 6px 0 16px; }
.pg-lang-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.pg-lang-name { font-weight: 800; }
.pg-lang-stat { color: var(--muted); font-size: 18px; }

.pg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-chip {
  min-width: 44px; height: 40px;
  padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  font-size: 17px; font-weight: 700;
  white-space: nowrap;
}
.pg-s0 { background: #F1F2F6; color: var(--muted); }
.pg-s1 { background: #FFE8B3; color: #8a5a00; }
.pg-s2 { background: #FFC94D; color: #5c3d00; }
.pg-s3 { background: var(--good); color: #fff; }
.pg-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.pg-legend .pg-chip { font-size: 14px; height: 30px; }

.pg-time { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px; }
.pg-time-stats { flex: 1 1 240px; display: grid; gap: 8px; font-size: 19px; }
.pg-bars { flex: 1 1 260px; display: flex; gap: 8px; align-items: flex-end; }
.pg-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pg-bar-track {
  width: 100%; height: 80px;
  display: flex; align-items: flex-end;
  background: #F1F2F6; border-radius: 8px; overflow: hidden;
}
.pg-bar-fill { width: 100%; background: var(--accent); min-height: 0; }
.pg-bar-label { font-size: 14px; color: var(--muted); }

/* Hướng dẫn */
.pg-guide { border-top: 2px solid var(--bg); }
.pg-guide summary {
  padding: 14px 4px;
  font-weight: 700;
  cursor: pointer;
  list-style-position: inside;
}
.pg-guide-body { padding: 0 4px 14px; font-size: 18px; line-height: 1.5; }
.pg-guide-body ol { margin: 4px 0; padding-left: 26px; }
.pg-guide-body li { margin: 4px 0; }

.pg-sounds { width: 100%; border-collapse: collapse; font-size: 17px; }
.pg-sounds th { text-align: left; color: var(--muted); font-weight: 600; padding: 6px; }
.pg-sounds td { padding: 6px; border-top: 1px solid #eee; vertical-align: middle; }
.pg-sound-letter { font-size: 22px; font-weight: 800; color: var(--accent); white-space: nowrap; }
.pg-say { background: var(--bg); border-radius: 12px; padding: 6px 10px; text-align: left; }

/* Sao lưu */
.pg-code {
  display: block;
  width: 100%;
  margin: 10px 0;
  font: 14px/1.4 ui-monospace, Menlo, monospace;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 12px;
  -webkit-user-select: text;
  user-select: text;
  word-break: break-all;
}
.pg-backup-out { margin-top: 10px; }
.panel p.pg-msg { color: var(--bad); font-weight: 700; }
.panel p.pg-msg:empty { display: none; }

@media (max-width: 600px) {
  .pg-continue { min-height: 96px; padding: 16px 18px; }
  .pg-continue-label { font-size: 22px; }
  .pg-continue-icon { font-size: 48px; }
}
