/* Progress report — distinct from the workout deck, scoped to the Progress tab. */
#panel-table { --progress-ink: #202720; --progress-paper: #f1f0e9; --progress-orange: #e4512e; }
#panel-table.on > section { animation: progressSectionIn .5s cubic-bezier(.2,.8,.2,1) backwards; }
#panel-table.on > section:nth-child(2) { animation-delay: .08s; }
#panel-table.on > section:nth-child(3) { animation-delay: .14s; }
@keyframes progressSectionIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

#panel-table .progress-hero { position: relative; background: var(--progress-paper); border: 1px solid #d8d9cc; border-radius: 23px; overflow: hidden; margin-bottom: 34px; padding: 23px 27px 0; }
#panel-table .progress-hero::after { content: ''; position: absolute; width: 380px; height: 380px; border: 1px solid #dedfd2; border-radius: 50%; top: -215px; right: -130px; pointer-events: none; }
#panel-table .progress-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: relative; z-index: 1; }
#panel-table .progress-kicker, #panel-table .progress-hero-index, #panel-table .progress-section-index { font-size: 10px; font-weight: 800; letter-spacing: .14em; line-height: 1.3; }
#panel-table .progress-kicker { display: flex; align-items: center; gap: 9px; color: var(--progress-orange); }
#panel-table .progress-kicker-mark { width: 8px; height: 8px; border: 2px solid currentColor; transform: rotate(45deg); }
#panel-table .progress-hero-index { color: #91988c; }
#panel-table .progress-hero-content { display: flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 238px; padding: 26px 0 30px; position: relative; z-index: 1; }
#panel-table .progress-hero-copy { min-width: 0; }
#panel-table .progress-hero h1 { font: 400 clamp(51px, 8vw, 76px)/.88 'Bebas Neue', Impact, sans-serif; letter-spacing: .015em; color: var(--progress-ink); }
#panel-table .progress-hero h1 em { font-style: normal; color: var(--progress-orange); }
#panel-table .progress-hero-copy p { margin-top: 14px; font-size: 13px; line-height: 1.5; color: #6b7468; }
#panel-table .progress-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; }
#panel-table .progress-hero-actions button { font: 700 12px 'DM Sans', sans-serif; cursor: pointer; transition: transform .22s, background .22s, color .22s; }
#panel-table .progress-log-btn { display: inline-flex; align-items: center; gap: 19px; background: var(--progress-ink); color: #fff; border: 0; border-radius: 10px; min-height: 43px; padding: 0 15px; }
#panel-table .progress-log-btn:hover { background: #445548; transform: translateY(-2px); }
#panel-table .progress-log-btn:active, #panel-table .progress-charts-btn:active { transform: scale(.97); }
#panel-table .progress-log-btn span { font-size: 17px; font-weight: 400; }
#panel-table .progress-charts-btn { border: 0; background: transparent; color: var(--progress-ink); padding: 9px 0; }
#panel-table .progress-charts-btn:hover { color: var(--progress-orange); transform: translateX(3px); }
#panel-table .progress-charts-btn span { margin-left: 5px; font-size: 17px; }
#panel-table button:focus-visible { outline: 3px solid var(--progress-orange); outline-offset: 3px; }
#panel-table .progress-latest { flex: 0 0 156px; min-height: 178px; padding: 16px 18px; border: 1px solid #cfd3c5; border-radius: 14px; background: #fbfbf6; display: flex; flex-direction: column; align-items: flex-start; transform: rotate(3deg); box-shadow: 7px 8px 0 #dfe3d5; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
#panel-table .progress-latest:hover { transform: rotate(0deg) translateY(-3px); }
#panel-table .progress-latest span { font-size: 9px; font-weight: 800; letter-spacing: .14em; color: #899285; }
#panel-table .progress-latest strong { display: block; font: 400 72px/.95 'Bebas Neue', Impact, sans-serif; color: var(--progress-orange); margin: auto 0 5px; white-space: nowrap; }
#panel-table .progress-latest small { color: #687264; font-size: 10px; line-height: 1.3; }
#panel-table .progress-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #d6d9cc; }
#panel-table .progress-hero-stats > div { padding: 15px 8px 17px 0; display: flex; align-items: baseline; gap: 9px; }
#panel-table .progress-hero-stats > div + div { border-left: 1px solid #d6d9cc; padding-left: 20px; }
#panel-table .progress-hero-stats strong { font: 400 32px/1 'Bebas Neue', Impact, sans-serif; color: var(--progress-ink); }
#panel-table .progress-hero-stats span { font-size: 11px; color: #6b7468; font-weight: 600; }

#panel-table .progress-comparison { margin-bottom: 30px; }
#panel-table .progress-section-head { display: flex; align-items: flex-end; gap: 15px; margin-bottom: 16px; }
#panel-table .progress-section-index { color: var(--progress-orange); }
#panel-table .progress-section-head h2, #panel-table .progress-activity-head h2 { margin: 7px 0 4px; font: 400 35px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: .02em; }
#panel-table .progress-section-head p, #panel-table .progress-activity-head p { color: #798276; font-size: 12px; line-height: 1.4; }
#panel-table .progress-head-rule { flex: 1; border-bottom: 1px solid #d8dcd3; margin-bottom: 7px; }
#panel-table .progress-table-shell { background: #fff; border: 1px solid #dfe3dc; border-radius: 17px; padding: 7px; overflow: hidden; }
#panel-table .tbl-wrap { border: 0; border-radius: 12px; box-shadow: none; background: #fff; }
#panel-table .ptbl { min-width: 390px; border-collapse: separate; border-spacing: 0; }
#panel-table .ptbl thead th { background: var(--progress-ink); color: #e3e9de; height: 43px; font: 700 10px 'DM Sans', sans-serif; letter-spacing: .1em; text-transform: uppercase; padding: 9px 16px; }
#panel-table .ptbl thead th:first-child { background: var(--progress-ink); left: 0; text-align: left; border-radius: 10px 0 0 0; width: 46%; }
#panel-table .ptbl thead th:last-child { border-radius: 0 10px 0 0; }
#panel-table .ptbl tbody tr { animation: progressRowIn .32s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--progress-row) * 30ms); }
@keyframes progressRowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
#panel-table .ptbl tbody th, #panel-table .ptbl tbody td { height: 61px; border: 0; border-bottom: 1px solid #edf0e9; background: #fff; padding: 10px 16px; color: var(--progress-ink); }
#panel-table .ptbl tbody tr:last-child th, #panel-table .ptbl tbody tr:last-child td { border-bottom: 0; }
#panel-table .ptbl tbody th { position: sticky; left: 0; z-index: 1; text-align: left; font-family: 'DM Sans', sans-serif; font-weight: 600; border-right: 1px solid #edf0e9; }
#panel-table .progress-part-inner { display: flex; align-items: center; gap: 10px; }
#panel-table .progress-part-icon { flex: 0 0 30px; height: 30px; display: grid; place-items: center; background: #f1f3ed; border-radius: 9px; color: #6a786b; }
#panel-table .progress-part-icon svg { width: 17px; height: 17px; fill: currentColor; }
#panel-table .progress-part-copy { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
#panel-table .progress-part-copy strong { color: var(--progress-ink); font-size: 12px; line-height: 1.15; white-space: normal; }
#panel-table .progress-part-copy small { color: #9ba49a; font-size: 10px; font-weight: 500; }
#panel-table .ptbl tbody td { text-align: center; white-space: nowrap; font-size: 13px; }
#panel-table .progress-current strong { font: 400 24px/1 'Bebas Neue', Impact, sans-serif; }
#panel-table .progress-current small, #panel-table .progress-change small { display: inline-block; font-size: 10px; color: #9ba49a; margin-left: 3px; }
#panel-table .progress-change-value { font: 400 23px/1 'Bebas Neue', Impact, sans-serif; }
#panel-table .ptbl td.cup { background: #ecf4e2; color: #315b37; }
#panel-table .ptbl td.cdn { background: #fbece8; color: #ab4632; }
#panel-table .ptbl td.cup small { color: #57885b; }
#panel-table .ptbl td.cdn small { color: #bd7464; }
#panel-table .progress-no-change { color: #a9b1a5; font-size: 19px; }
#panel-table .progress-empty-cell { height: 208px !important; text-align: center !important; }
#panel-table .progress-empty-cell > span, #panel-table .progress-empty-cell strong { display: block; }
#panel-table .progress-empty-cell .progress-empty-mark { color: var(--progress-orange); font-size: 37px; line-height: 1; margin-bottom: 13px; }
#panel-table .progress-empty-cell strong { font-size: 16px; margin-bottom: 6px; }
#panel-table .progress-empty-cell > span:last-child { font-size: 12px; color: #8b9589; }
#panel-table .progress-table-hint { display: none; padding: 8px 9px 4px; color: #90998e; font-size: 10px; text-align: right; }
#panel-table .tlegend { margin: 13px 0 0; gap: 8px 18px; }
#panel-table .tleg { color: #687367; font-size: 11px; font-weight: 600; }
#panel-table .tleg-dot { width: 9px; height: 9px; border-radius: 50%; }
#panel-table .tleg-up { background: #7ba974; }
#panel-table .tleg-down { background: #d97963; }
#panel-table .tleg-neutral { background: #cbd2c8; }

#panel-table .heatmap-section { background: var(--progress-ink); color: #f7f8f0; border-radius: 21px; padding: 22px 24px 20px; margin-top: 0; position: relative; overflow: hidden; }
#panel-table .heatmap-section::after { content: ''; position: absolute; width: 190px; height: 190px; border: 1px solid rgba(215,238,161,.12); border-radius: 50%; right: -95px; top: -115px; pointer-events: none; }
#panel-table .progress-activity-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 21px; position: relative; z-index: 1; }
#panel-table .progress-activity-head .progress-section-index { color: #d8f16f; }
#panel-table .progress-activity-head h2 { color: #fff; }
#panel-table .progress-activity-head p { color: #aab9a9; }
#panel-table .progress-active-count { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 77px; min-height: 65px; border: 1px solid rgba(216,241,111,.4); border-radius: 12px; }
#panel-table .progress-active-count strong { font: 400 29px/1 'Bebas Neue', Impact, sans-serif; color: #d8f16f; }
#panel-table .progress-active-count span { margin-top: 4px; font-size: 8px; font-weight: 800; letter-spacing: .1em; color: #aab9a9; }
#panel-table .heatmap-wrap { background: #29352c; border: 1px solid #39483b; padding: 15px 12px 9px; border-radius: 13px; animation: progressCalendarIn .5s .16s cubic-bezier(.2,.8,.2,1) backwards; }
@keyframes progressCalendarIn { from { opacity: 0; clip-path: inset(0 12% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
#panel-table .hm-day-label, #panel-table .hm-mlabel { color: #a7b5a4; }
#panel-table .hm-cell, #panel-table .hm-cell-sm { border-radius: 3px; }
#panel-table .hm-0 { background: #455348; }
#panel-table .hm-active { background: #d8f16f; }
#panel-table .hm-future { background: #455348; opacity: .38; }
#panel-table .hm-legend { margin-top: 15px; gap: 18px; }
#panel-table .hm-legend-item { color: #aab9a9; font-size: 11px; }
#panel-table .hm-empty { color: #b7c4b4; padding: 11px 3px; }

@media (max-width: 600px) {
  #panel-table .progress-hero { padding: 19px 19px 0; border-radius: 19px; margin-bottom: 29px; }
  #panel-table .progress-hero-index { display: none; }
  #panel-table .progress-hero-content { gap: 8px; min-height: 210px; padding: 26px 0; }
  #panel-table .progress-hero h1 { font-size: clamp(42px, 11vw, 57px); }
  #panel-table .progress-hero-copy p { font-size: 11px; max-width: 205px; margin-top: 11px; }
  #panel-table .progress-hero-actions { gap: 8px; margin-top: 17px; }
  #panel-table .progress-log-btn { min-height: 39px; padding: 0 10px; gap: 8px; }
  #panel-table .progress-charts-btn { font-size: 11px !important; }
  #panel-table .progress-latest { flex-basis: 114px; min-height: 141px; padding: 12px; box-shadow: 5px 6px 0 #dfe3d5; }
  #panel-table .progress-latest strong { font-size: 56px; }
  #panel-table .progress-latest span { font-size: 8px; }
  #panel-table .progress-latest small { font-size: 9px; }
  #panel-table .progress-hero-stats > div { flex-direction: column; gap: 2px; padding: 12px 4px 15px 0; }
  #panel-table .progress-hero-stats > div + div { padding-left: 12px; }
  #panel-table .progress-hero-stats strong { font-size: 29px; }
  #panel-table .progress-hero-stats span { font-size: 9px; }
  #panel-table .progress-section-head h2, #panel-table .progress-activity-head h2 { font-size: 31px; }
  #panel-table .ptbl { min-width: 390px; }
  #panel-table .progress-table-hint { display: block; }
  #panel-table .progress-table-shell.is-empty .progress-table-hint { display: none; }
  #panel-table .heatmap-section { padding: 20px 18px; }
}
@media (max-width: 370px) {
  #panel-table .progress-hero-content { align-items: flex-start; }
  #panel-table .progress-latest { flex-basis: 100px; min-height: 125px; }
  #panel-table .progress-latest strong { font-size: 49px; }
  #panel-table .progress-hero-copy p { max-width: 170px; }
  #panel-table .progress-charts-btn { padding: 4px 0; }
}
@media (prefers-reduced-motion: reduce) {
  #panel-table.on > section, #panel-table .ptbl tbody tr, #panel-table .heatmap-wrap { animation: none !important; }
  #panel-table .progress-latest, #panel-table .progress-hero-actions button { transition: none !important; }
}
