.logo .brand-prefix, .auth-gate .brand-prefix { color: #3f6b35; }
.top-progress > button {
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid #dce7dd;
  border-radius: 7px;
  background: var(--soft);
  color: #111111;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}
.top-progress > button strong { font-size: 14px; }
.top-progress > button:hover { background: #deebde; }
.top-progress > button:focus-visible { outline: 3px solid #27613a; outline-offset: 2px; }
.progress-dialog-open { overflow: hidden; }
@media(max-width:900px) {
  body.header-progress .topbar { height: auto; min-height: 87px; padding-block: 6px; }
}
#progressDetailDialog {
  width: min(640px,calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid #d9e3d9;
  border-radius: 18px;
  background: #fffefa;
  color: #111111;
  overflow: hidden;
  font-size: 16px;
}
#progressDetailDialog::backdrop { background: #15231b80; }
.progress-detail-content { display: flex; flex-direction: column; max-height: calc(100dvh - 34px); }
.progress-detail-header { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #e1e8df; }
.progress-detail-header h2 { margin: 0; color: #111111; font-size: 21px; line-height: 1.4; }
.progress-detail-close { flex: none; min-height: 40px; padding: 7px 12px; border: 1px solid #d5dfd4; border-radius: 9px; background: #fff; color: #111111; font: inherit; font-size: 14px; cursor: pointer; }
.progress-detail-body { overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 22px; }
.progress-detail-round { margin: 0; font-size: 14px; line-height: 1.6; }
.progress-detail-scope { margin: 8px 0 0; font-size: 14px; line-height: 1.65; }
.progress-detail-excluded { margin: 10px 0 0; padding: 12px; background: #f1f4ee; border-radius: 10px; font-size: 14px; }
.progress-detail-excluded h3 { margin: 0 0 8px; font-size: 14px; }
.progress-detail-excluded ul { display: flex; flex-wrap: wrap; gap: 5px 12px; margin: 0; padding: 0; list-style: none; line-height: 1.6; }
.progress-detail-excluded p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; }
.progress-detail-errors { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: -10px 0 10px; }
.progress-detail-errors > div { padding: 13px; border: 1px solid #e1e5de; border-radius: 12px; background: #fff; }
.progress-detail-errors dt { font-size: 14px; }
.progress-detail-errors dd { margin: 6px 0 0; font-size: 23px; font-weight: 800; }
.progress-detail-errors dd small { margin-left: 4px; font-size: 14px; font-weight: 500; }
.progress-detail-error-note { margin: 0 0 22px; font-size: 14px; line-height: 1.65; }
.progress-subject-errors { margin: 8px 0 0; font-size: 14px; line-height: 1.6; }
.progress-detail-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 18px 0 24px; }
.progress-detail-summary > div { padding: 14px 8px; border: 1px solid #e0e7dd; border-radius: 12px; background: #f4f7f0; text-align: center; }
.progress-detail-summary > div:last-child { background: #e6efdf; border-color: #cbdcc3; }
.progress-detail-summary dt { font-size: 14px; }
.progress-detail-summary dd { margin: 7px 0 0; font-size: 26px; font-weight: 850; line-height: 1.3; font-variant-numeric: tabular-nums; }
.progress-detail-summary dd small { display: block; margin-top: 2px; font-size: 14px; font-weight: 500; }
.progress-detail-list-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.progress-detail-list-title h3 { margin: 0; font-size: 18px; }
.progress-detail-list-title span { font-size: 14px; }
.progress-subjects { padding: 0; margin: 0; list-style: none; }
.progress-subject { padding: 17px 0; border-bottom: 1px solid #e0e7dd; }
.progress-subject:last-child { border-bottom: 0; padding-bottom: 0; }
.progress-subject-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.progress-subject-heading h4 { margin: 0; font-size: 16px; font-weight: 750; }
.progress-subject-heading strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.progress-subject-count { margin: 6px 0 9px; font-size: 14px; line-height: 1.5; }
.progress-subject progress { display: block; width: 100%; height: 7px; border: 0; border-radius: 99px; overflow: hidden; background: #e4e9df; accent-color: #4f7651; }
.progress-subject progress::-webkit-progress-bar { background: #e4e9df; border-radius: 99px; }
.progress-subject progress::-webkit-progress-value { background: #4f7651; border-radius: 99px; }
.progress-subject progress::-moz-progress-bar { background: #4f7651; border-radius: 99px; }
#progressDetailEmpty { margin: 20px 0 0; line-height: 1.6; }
@media(max-width:480px) {
  .progress-detail-header { padding: 16px; }
  .progress-detail-header h2 { font-size: 19px; }
  .progress-detail-body { padding: 16px; }
  .progress-detail-summary dd { font-size: 24px; }
}

#progressDetailDialog { position: fixed; inset: 0; margin: auto; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
#progressDetailDialog.study-dialog-fallback { z-index: 1000; box-shadow: 0 0 0 100vmax #15231b80; }
 .progress-detail-body { min-height: 0; -webkit-overflow-scrolling: touch; }
