.progress-main { max-width: 1200px; }
.progress-heading, .progress-section-heading, .progress-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.progress-heading { margin-bottom: 28px; }
.progress-panel { padding: 28px; border-radius: 24px; margin-bottom: 24px; min-width: 0; }
.progress-section-heading { margin-bottom: 22px; flex-wrap: wrap; }
.progress-section-heading h2 { font-size: 20px; font-weight: 650; color: #292b35; }
.progress-overview { display: grid; grid-template-columns: repeat(3, 1fr); padding: 24px 28px; border-radius: 24px; margin-bottom: 24px; }
.progress-overview > div + div { border-left: 1px solid rgba(83,92,125,.12); }
.progress-overview > div { min-width: 0; padding-inline: 12px; text-align: center; }
.progress-overview span { display: block; color: #656773; font-size: 11px; white-space: nowrap; }
.progress-overview strong { display: block; font-size: 30px; line-height: 1.3; color: #292b35; margin: 8px 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress-overview strong small { display: inline; color: #656773; font-size: 15px; font-weight: 400; }
.progress-range { display: flex; gap: 4px; background: rgba(255,255,255,.4); padding: 4px; border-radius: 12px; }
.progress-range button { padding: 7px 12px; font-size: 13px; color: #656773; border-radius: 9px; }
.progress-range button[aria-pressed="true"] { color: #365caf; background: rgba(255,255,255,.85); box-shadow: 0 2px 8px rgba(55,65,90,.06); }
.progress-range button, .progress-range button:hover, .progress-range button:active { transform: none; transition: none; animation: none; }
.progress-chart { height: 320px; position: relative; }
.progress-chart-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: #656773; font-size: 14px; pointer-events: none; padding: 20px; }
.progress-chart-empty[hidden] { display: none; }
.progress-field { display: block; font-size: 14px; color: #4f5260; margin-bottom: 18px; }
/* Field colors, borders and backgrounds follow the shared glass theme. */
.progress-field input, .progress-field textarea, .progress-field select, .progress-delete-form input { display: block; width: 100%; min-width: 0; margin-top: 7px; border-radius: 10px; padding: 10px 12px; }
.progress-field input[type="date"] { padding-right: 12px; }
.progress-field input[type="date"]::-webkit-calendar-picker-indicator { margin: 0; padding: 0; cursor: pointer; }
.progress-field textarea { resize: vertical; }
.progress-set-labels, .progress-set-row { display: grid; grid-template-columns: 24px minmax(0,1.3fr) minmax(0,1fr) 30px; gap: 8px; align-items: center; }
.progress-set-labels { font-size: 12px; color: #656773; margin-bottom: 8px; }
.progress-set-row { margin-bottom: 10px; }
.progress-set-row input[type="number"] { width: 100%; min-width: 0; padding: 10px 8px; border-radius: 10px; border: 1px solid rgba(83,92,125,.18); background: rgba(255,255,255,.6); font-size: 14px; }
.progress-set-row > span { color: #656773; font-size: 13px; font-variant-numeric: tabular-nums; }
.progress-remove-set { height: 36px; color: #9c4b5d; font-size: 22px; border-radius: 8px; }
.progress-add-set { width: 100%; margin: 4px 0 16px; }
.progress-form-actions { display: flex; gap: 10px; }
.progress-form-actions > button { flex: 1; }
.progress-history-entry { padding: 22px 0; border-bottom: 1px solid rgba(83,92,125,.1); scroll-margin-top: 85px; }
.progress-history-entry:last-child { border-bottom: 0; padding-bottom: 0; }
.progress-history-heading { align-items: start; }
.progress-history-heading > div:first-child { flex: 1; min-width: 0; }
.progress-history-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.progress-history-heading h3 { color: #292b35; font-size: 15px; font-weight: 600; }
.progress-history-heading p { color: #656773; font-size: 13px; margin-top: 8px; line-height: 1.7; }
.progress-set-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.progress-set-chips > span { font-size: 13px; padding: 6px 10px; color: #bf486e; border: 1px solid rgba(100,133,195,.15); background: rgba(235,241,251,.7); border-radius: 8px; }
.progress-notes { white-space: pre-wrap; overflow-wrap: anywhere; color: #656773; font-size: 14px; margin-top: 12px; }
.progress-delete-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 12px; }
.progress-delete-form[hidden] { display: none; }
.progress-delete-form label { font-size: 13px; color: #656773; }
.progress-history-empty { padding: 34px 12px; text-align: center; color: #656773; font-size: 14px; line-height: 1.8; }
.progress-history-empty i { font-size: 28px; margin-bottom: 12px; opacity: .5; }
.progress-message { background: rgba(238,248,243,.9); color: #2e6853; padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; }
.progress-message--error { background: rgba(255,238,241,.9); color: #9c4b5d; }
.progress-main :focus-visible { outline: 2px solid #6485c3; outline-offset: 3px; }
.progress-main button:disabled { opacity: .45; cursor: not-allowed; }
#sessionForm { scroll-margin-top: 85px; }
@media (max-width: 767px) {
    .progress-main { padding-top: 80px !important; }
    .progress-heading { align-items: start; }
    .progress-heading > a { padding: 8px 12px; flex-shrink: 0; font-size: 13px; }
    .progress-heading p { font-size: 13px; line-height: 1.8; }
    .progress-panel { padding: 20px 16px; border-radius: 20px; }
    .progress-overview { padding: 18px 6px; }
    .progress-overview > div { padding-inline: 2px; }
    .progress-overview span { font-size: 10px; }
    .progress-overview strong { font-size: clamp(20px, 5.6vw, 24px); }
    .progress-overview strong small { font-size: 13px; }
    .progress-history-heading { gap: 10px; }
    .progress-history-actions { gap: 6px; }
    .progress-history-actions .ui-btn { font-size: 12px; padding: 7px 9px; }
    .progress-chart { height: 280px; }
    .progress-section-heading { gap: 12px; }
    .progress-set-labels, .progress-set-row { gap: 6px; }
}

/* fit-progress-clear-chips-20261009_clearchips1 */
:root .progress-set-chips > span {
  color: #bf486e;
  background: rgba(18,20,24,.10);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  filter: none;
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active) {
  :root .progress-set-chips > span { background: #f5f8fa; border-color: #7c91a6; }
}

/* fit-progress-clear-range-20261009_clearrange1 */
:root .progress-range,
:root .progress-range button,
:root .progress-range button:hover {
  background: rgba(18,20,24,.10);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  filter: none;
}
:root .progress-range button { color: var(--ink); }
:root .progress-range button[aria-pressed="true"],
:root .progress-range button[aria-pressed="true"]:hover {
  color: #bf486e;
  background: rgba(255,255,255,.10);
  border-color: rgba(234,117,154,.75);
  box-shadow: inset 0 0 0 1px rgba(234,117,154,.32), inset 0 1px 1px rgba(255,255,255,.22);
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active) {
  :root .progress-range, :root .progress-range button, :root .progress-range button:hover {
    background: #f5f8fa; border-color: #7c91a6;
  }
  :root .progress-range button[aria-pressed="true"],
  :root .progress-range button[aria-pressed="true"]:hover { background: #fce9ef; border-color: #962d56; }
}

/* fit-progress-range-no-frame-20261009_rangeframe0 */
:root .progress-range {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

/* fit-progress-range-crisp-20261009_crisprange1 */
:root .progress-range button[aria-pressed="true"],
:root .progress-range button[aria-pressed="true"]:is(:hover,:focus,:focus-visible,:active) {
  color: #bf486e;
  background: rgba(18,20,24,.10) !important;
  border-color: #bf486e;
  box-shadow: none !important;
  text-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  filter: none !important;
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active) {
  :root .progress-range button[aria-pressed="true"],
  :root .progress-range button[aria-pressed="true"]:is(:hover,:focus,:focus-visible,:active) {
    background: #f5f8fa !important; border-color: #962d56;
  }
}
