.progress-trigger { margin-left: 0; }
.progress-dialog { width: min(760px, calc(100% - 32px)); max-height: min(850px, calc(100dvh - 40px)); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: white; font-family: inherit; overflow: hidden; box-shadow: 0 24px 80px #14264229; }
.progress-dialog[open] { display: flex; flex-direction: column; }
.progress-dialog::backdrop { background: #17233966; backdrop-filter: blur(3px); }
.progress-header { display: flex; justify-content: space-between; align-items: center; padding: 26px 28px 10px; gap: 16px; flex-shrink: 0; }
.progress-kicker { margin: 0 0 4px; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.progress-header h2 { margin: 0; font-size: 25px; letter-spacing: -.6px; }
.progress-description { margin: 0; padding: 0 28px 22px; color: var(--muted); font-size: 13px; flex-shrink: 0; }
.progress-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 28px 24px; }
.progress-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.progress-period { display: inline-flex; padding: 3px; gap: 3px; border: 1px solid var(--line); border-radius: 9px; background: #f5f7fa; }
.progress-period button { padding: 7px 12px; border: none; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px !important; cursor: pointer; }
.progress-period button[aria-pressed="true"] { background: white; color: var(--ink); box-shadow: 0 1px 4px #1d293d12; font-weight: 600; }
.progress-sort-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.progress-sort-label select { min-height: 34px; max-width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; background: white; color: var(--ink); font: inherit; font-size: 12px; }
.progress-summary { display: grid; grid-template-columns: 1fr .85fr 1.5fr; gap: 10px; }
.progress-summary > div { display: flex; flex-direction: column; gap: 7px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfd; }
.progress-summary-label { color: var(--muted); font-size: 11px; }
.progress-summary strong { font-size: 29px; line-height: 1.2; font-weight: 650; letter-spacing: -.7px; }
.progress-summary span:last-child { color: var(--muted); font-size: 11px; line-height: 1.6; }
.progress-summary strong.progress-confidence { font-size: 16px; letter-spacing: -.3px; line-height: 1.5; }
.progress-window-note { margin: 12px 0 23px; font-size: 11px; color: var(--muted); }
.progress-section-title { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.progress-topic-list { display: grid; gap: 10px; }
.progress-topic { padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px; }
.progress-topic-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.progress-topic-heading .topic-icon { margin-left: 0; flex-basis: 28px; width: 28px; height: 28px; border-radius: 8px; }
.progress-topic-heading .topic-icon svg { width: 19px; height: 19px; }
.progress-topic-heading h4 { flex: 1; min-width: 0; margin: 0; font-size: 13px; font-weight: 600; line-height: 1.5; }
.progress-topic-rate { font-size: 17px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.progress-track { height: 5px; overflow: hidden; border-radius: 5px; background: #edf0f5; }
.progress-track > span { display: block; width: 0; height: 100%; border-radius: inherit; background: #8ba1c8; }
.progress-topic[data-level="strong"] .progress-track > span { background: #4d9e80; }
.progress-topic[data-level="reinforce"] .progress-track > span { background: #d39b61; }
.progress-topic-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; }
.progress-topic-detail { color: var(--muted); font-size: 11px; }
.progress-practice { display: inline-flex; align-items: center; gap: 7px; border: none; padding: 5px 0 5px 8px; background: transparent; color: var(--accent); font-size: 12px !important; white-space: nowrap; cursor: pointer; }
.progress-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 17px 28px; border-top: 1px solid var(--line); background: #fbfcfe; flex-shrink: 0; }
.progress-footer > p { max-width: 400px; margin: 0; font-size: 11px; color: var(--muted); }
.progress-reset { padding: 6px 0; border: none; background: transparent; color: #a45b5b; font-size: 11px !important; cursor: pointer; }
.progress-reset:disabled { color: #939dae; cursor: default; }
.progress-reset-confirm { width: 100%; padding: 13px; border: 1px solid #efceca; border-radius: 9px; background: #fff5f3; }
.progress-reset-confirm[hidden] { display: none; }
.progress-reset-confirm p { margin: 0 0 12px; font-size: 12px; }
.progress-reset-confirm > div { display: flex; justify-content: flex-end; gap: 10px; }
.progress-reset-confirm button { padding: 7px 11px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); font-size: 12px !important; cursor: pointer; }
.progress-reset-confirm #progress-reset-yes { border-color: #b95454; background: #b95454; color: white; }
.progress-notice { padding: 12px; border-radius: 9px; background: #fff5e6; color: #86602b; font-size: 12px; }
.progress-notice[hidden], .progress-save-status[hidden] { display: none; }
.progress-save-status { margin: 8px 0 0; font-size: 12px; color: #86602b; }
.progress-empty-topics { margin: 20px 0 0; color: var(--muted); font-size: 13px; }
@media (max-width: 599px) {
  .progress-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 24px); border-radius: 14px; }
  .progress-header { padding: 20px 18px 9px; }
  .progress-description { padding: 0 18px 17px; }
  .progress-content { padding: 0 16px 18px; }
  .progress-summary { grid-template-columns: 1fr 1fr; }
  .progress-summary > div { padding: 14px; }
  .progress-summary > div:last-child { grid-column: 1 / -1; }
  .progress-summary strong { font-size: 25px; }
  .progress-controls { gap: 12px; }
  .progress-sort-label { width: 100%; justify-content: space-between; }
  .progress-topic { padding: 13px 12px; }
  .progress-topic-heading { gap: 8px; }
  .progress-topic-heading h4 { font-size: 12px; }
  .progress-topic-bottom { gap: 7px; align-items: flex-start; }
  .progress-footer { padding: 13px 18px; }
}
