.page-class-progress {
  --progress-purple: #5a0a87;
  --progress-green: #1e7d36;
  --progress-red: #bd2626;
  --progress-blue: #173b67;
  --progress-gold: #b9851a;
  --progress-bg: #f7f3fb;
  --progress-border: #d8c7e4;
  --progress-shadow: 0 10px 28px rgba(23, 59, 103, 0.08);
  --progress-header-right-inset: 0px;
}

.page-class-progress .pv-section {
  max-width: 1160px;
  margin: 98px auto 36px;
  padding: 20px;
  position: relative;
}

.page-class-progress #pv-local-menu,
.page-class-progress .pv-local-menu {
  position: absolute;
  top: 66px;
  left: 20px;
  transform: translateY(-100%);
}

.page-class-progress .pv-header-section {
  margin: 0 0 24px;
  text-align: right;
}

.page-class-progress .pv-header-title {
  font-family: "Arial Narrow", "Liberation Sans Narrow", Arial, sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.05;
}

.page-class-progress .pv-header-subtitle {
  font-family: "Arial Narrow", "Liberation Sans Narrow", Arial, sans-serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.05;
  margin: 4px 0 0;
}

.page-class-progress .pv-header-divider {
  margin: 0 0 18px;
  transform: translateY(-38px);
}

.progress-shell {
  display: grid;
  gap: 18px;
}

.progress-topbar,
.progress-panel,
.progress-filter-panel {
  background: #fff;
  border: 1px solid var(--progress-border);
  box-shadow: var(--progress-shadow);
  border-radius: 16px;
}

.progress-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  flex-wrap: wrap;
}

.progress-topbar-copy {
  flex: 1 1 360px;
}


.progress-topbar-copy h2,
.progress-section-head h3,
.progress-bottom-box h2 {
  margin: 0;
  color: var(--progress-purple);
}

.progress-topbar-copy p,
.progress-section-head p,
.progress-bottom-box p {
  margin: 6px 0 0;
  color: #3d3d3d;
}

.progress-control-grid,
.progress-filter-grid {
  display: grid;
  gap: 14px;
}

.progress-control-grid {
  grid-template-columns: minmax(240px, 320px) 140px;
  align-items: end;
}

.progress-filter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.progress-filter-panel {
  padding: 18px;
}

.progress-user-box {
  display: grid;
  gap: 6px;
}

.progress-user-box label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--progress-blue);
}

.progress-input,
.progress-button {
  border-radius: 10px;
  font-size: 1rem;
  box-sizing: border-box;
}

.progress-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #baa0ce;
}

.progress-input-multiselect {
  min-height: 136px;
  padding: 10px 12px;
}

.progress-guideline-card {
  height: 136px;
  padding: 12px;
  border: 1px solid #baa0ce;
  border-radius: 10px;
  background: linear-gradient(180deg, #fcf9ff 0%, #f7f1fb 100%);
  box-sizing: border-box;
  display: grid;
  gap: 10px;
  align-content: start;
}

.progress-guideline-box {
  align-self: start;
}

.progress-points-box {
  grid-column: 3 / 5;
  align-self: start;
  min-height: 136px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-points-note {
  --progress-points-font-size: 1.3rem;
  --progress-points-font-family: "Segoe UI", sans-serif;
  --progress-points-font-weight: 600;
  --progress-points-color: var(--progress-green);
  --progress-points-offset-y: 15px;

  text-align: center;
  font-family: var(--progress-points-font-family);
  font-size: var(--progress-points-font-size);
  font-weight: var(--progress-points-font-weight);
  color: var(--progress-points-color);
  line-height: 1.45;
  transform: translateY(var(--progress-points-offset-y));
}


.progress-guideline-row {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
}

.progress-guideline-row.strong {
  background: #edf9ef;
  color: var(--progress-green);
}

.progress-guideline-row.developing {
  background: #fff6e4;
  color: var(--progress-gold);
}

.progress-guideline-row.revision {
  background: #fff1f1;
  color: var(--progress-red);
}

.progress-filter-help {
  color: #6a5b77;
  font-size: 0.78rem;
  line-height: 1.35;
}

.progress-button {
  border: 0;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}

.progress-button.primary {
  background: var(--progress-purple);
  color: #fff;
}

.progress-button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.progress-status {
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
}

.progress-status-info {
  background: #eef5ff;
  color: var(--progress-blue);
  border: 1px solid #c7dbf5;
}

.progress-status-success {
  background: #edf9ef;
  color: var(--progress-green);
  border: 1px solid #cbe8d2;
}

.progress-status-error {
  background: #fff1f1;
  color: var(--progress-red);
  border: 1px solid #f0c8c8;
}

.progress-panel {
  padding: 18px;
}

.progress-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 14px;
}

.progress-panel-trend .progress-section-head {
  align-items: center;
}

.progress-panel-trend .progress-section-head h3 {
  font-size: 0.92rem;
  line-height: 1.15;
}

.progress-panel-trend .progress-section-head p {
  font-size: 0.83rem;
  line-height: 1.2;
  white-space: nowrap;
}

.progress-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.progress-encouragement-host {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.progress-encouragement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.progress-encouragement-card {
  padding: 14px;
  border: 1px solid #e3d8ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #faf6fe 100%);
}

.progress-encouragement-wide {
  background: linear-gradient(180deg, #f8fbff 0%, #f4f8ff 100%);
}

.progress-encouragement-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6a5b77;
  font-weight: 700;
}

.progress-encouragement-value {
  margin-top: 8px;
  color: var(--progress-purple);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.1;
}

.progress-encouragement-inline {
  font-size: 1.08rem;
}

.progress-encouragement-subtle {
  margin-top: 6px;
  color: #6a5b77;
  font-size: 0.82rem;
}

.progress-badge-strip {
  display: grid;
  gap: 10px;
}

.progress-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.progress-achievement-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--progress-blue);
  font-size: 0.82rem;
  font-weight: 700;
}

.progress-motivation-strip {
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, #edf9ef 0%, #f7fbff 100%);
  border: 1px solid #d8e7da;
  color: #31563d;
  font-weight: 600;
  font-size: 0.92rem;
}

.progress-stat-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e3d8ef;
  background: linear-gradient(180deg, #ffffff 0%, #faf6fe 100%);
}

.progress-stat-card h4 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6a5b77;
}

.progress-stat-card strong {
  display: block;
  color: var(--progress-purple);
  font-size: 1.28rem;
  line-height: 1.05;
}

.progress-stat-card.is-hard-case {
  border-color: #efc2c2;
  background: linear-gradient(180deg, #fffefe 0%, #fff3f3 100%);
}

.progress-stat-card.is-hard-case strong {
  color: var(--progress-red);
}

.progress-chart-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 18px;
}

.progress-chart-host {
  min-height: 360px;
}

.progress-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 12px;
}

.progress-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #5c4f69;
  font-size: 0.82rem;
  font-weight: 700;
}

.progress-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: 0 0 12px;
}

.progress-empty {
  padding: 18px;
  border-radius: 12px;
  border: 1px dashed #ceb6e0;
  background: #fcf9ff;
  text-align: center;
  color: #6a5b77;
}

.progress-svg {
  width: 100%;
  min-height: 340px;
}

.progress-axis,
.progress-grid {
  stroke: #d5cae3;
  stroke-width: 1;
}

.progress-grid-vertical {
  stroke: #e6ddf0;
  stroke-width: 0.8;
}

.progress-axis {
  stroke: #9180a3;
  stroke-width: 1.4;
}

.progress-line {
  fill: none;
  stroke: #8e44ad;
  stroke-width: 2.8;
}

.progress-dot {
  fill: #8e44ad;
  stroke: #ffffff;
  stroke-width: 1.6;
}

.progress-bar {
  fill: rgba(23, 59, 103, 0.18);
}

.progress-size-average {
  font-size: 0.9rem;
  line-height: 1;
  font-weight: 700;
}

.progress-size-average.strong {
  color: var(--progress-green);
}

.progress-size-average.developing {
  color: var(--progress-gold);
}

.progress-size-average.revision {
  color: var(--progress-red);
}

#sizeHost {
  min-height: 0;
}

#sizeHost + * {
  min-height: 0;
}

#sizeHost,
#sizeHost .progress-empty {
  font-size: 0.9rem;
}

.progress-chart-grid > .progress-panel:last-child .progress-section-head h3 {
  font-size: 0.84rem;
  line-height: 1.05;
}

.progress-chart-grid > .progress-panel:last-child .progress-section-head p {
  font-size: 0.72rem;
  line-height: 1.12;
}

.progress-bar-label,
.progress-axis-label {
  fill: #6a5b77;
  font-size: 10px;
}

.progress-table-wrap {
  overflow-x: auto;
}

.progress-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.progress-table th,
.progress-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e7deef;
  text-align: left;
  font-size: 0.84rem;
  vertical-align: top;
}

.progress-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--progress-blue);
  background: #faf6fe;
  text-align: center;
}

.progress-sort-button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  padding: 0;
}

.progress-sort-priority {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  height: 14px;
  margin-left: 4px;
  border-radius: 999px;
  background: #eadff5;
  color: var(--progress-purple);
  font-size: 0.62rem;
  vertical-align: middle;
}

.progress-subject-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  margin: 0 6px 6px 0;
  white-space: nowrap;
}

.progress-subject-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 8px;
}

.subject-psychology {
  background: #eef5ff;
  color: #1f77b4;
}

.subject-sociology {
  background: #fff3e7;
  color: #ff7f0e;
}

.subject-economics {
  background: #edf9ef;
  color: #2ca02c;
}

.subject-english {
  background: #fff0f0;
  color: #d62728;
}

.subject-combined {
  background: #f4eef8;
  color: #6a5b77;
}

.progress-chapter-cell {
  display: grid;
  gap: 4px;
}

.progress-subject-cell {
  display: grid;
  gap: 4px;
}

.progress-chapter-stars {
  display: inline-flex;
  gap: 2px;
  font-size: 0.78rem;
  color: #d8cfe3;
}

.progress-chapter-stars .filled {
  color: #d5a11e;
}

.progress-table-mastery td:nth-child(4),
.progress-table-mastery td:nth-child(5),
.progress-table-mastery td:nth-child(6),
.progress-table-mastery td:nth-child(7),
.progress-table-mastery td:nth-child(8),
.progress-table-mastery td:nth-child(9) {
  text-align: center;
}

.progress-table-attempts td:nth-child(4),
.progress-table-attempts td:nth-child(5),
.progress-table-attempts td:nth-child(6),
.progress-table-attempts td:nth-child(7),
.progress-table-attempts td:nth-child(8),
.progress-table-attempts td:nth-child(9) {
  text-align: center;
}

.progress-mastery {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.progress-mastery.strong {
  background: #edf9ef;
  color: var(--progress-green);
}

.progress-mastery.developing {
  background: #fff6e4;
  color: var(--progress-gold);
}

.progress-mastery.revision {
  background: #fff1f1;
  color: var(--progress-red);
}

.progress-bottom-box {
  padding: 18px 22px;
  text-align: center;
}

.page-class-progress .back-to-top {
  right: 18px;
  bottom: 20px;
  z-index: 1001;
}

.page-class-progress .back-to-top-secondary {
  right: 80px;
  width: auto;
  min-width: 72px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1040px) {
  .progress-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .progress-encouragement-grid {
    grid-template-columns: 1fr;
  }

  .progress-chart-grid,
  .progress-filter-grid {
    grid-template-columns: 1fr;
  }

  .progress-panel-trend .progress-section-head {
    display: grid;
    gap: 6px;
  }

  .progress-panel-trend .progress-section-head p {
    white-space: normal;
  }

  .progress-points-box {
    grid-column: auto;
    min-height: auto;
    justify-content: flex-start;
  }

}

@media (max-width: 760px) {
  .progress-control-grid {
    grid-template-columns: 1fr;
  }

  .progress-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-class-progress .back-to-top-secondary {
    right: 72px;
    min-width: 64px;
    padding: 0 10px;
    font-size: 0.74rem;
  }
}

@media (min-width: 901px) {
  .page-class-progress {
    --progress-header-right-inset: max(24px, calc((min(100vw, 1200px) - min(100vw, 960px)) / 2));
  }

  .page-class-progress .pv-header-section {
    margin-right: var(--progress-header-right-inset);
  }
}
