.catalog-progress-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.catalog-progress-period {
  margin: 0;
  color: var(--text-sub);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.catalog-progress-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.catalog-progress-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
  line-height: 1.55;
}
.progress-project-col { width: 25%; }
.progress-week-col { width: 19%; }
.progress-current-col { width: 21%; }
.progress-next-col { width: 22%; }
.progress-delivery-col { width: 13%; }
.catalog-progress-table th {
  padding: 12px 16px;
  text-align: left;
  color: var(--text);
  font-weight: 600;
  background: var(--brand-surface);
  border-bottom: 1px solid var(--border);
}
.catalog-progress-table td { padding: 14px 16px; vertical-align: top; overflow-wrap: anywhere; }
.catalog-progress-row + .catalog-progress-timeline + .catalog-progress-row > td {
  border-top: 1px solid var(--border);
}
.catalog-progress-project > .catalog-project-link { font-size: 14px; }
.catalog-progress-meta, .catalog-progress-muted { color: var(--text-sub); font-size: 12px; }
.catalog-progress-meta { margin: 4px 0 6px; }
.catalog-progress-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.catalog-progress-category {
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-sub);
  font-size: 11px;
  white-space: nowrap;
}
.catalog-progress-category[data-category="structure"] { color: var(--brand-ink); background: var(--brand-surface); border-color: var(--brand-line); }
.catalog-progress-category[data-category="bag"] { color: #315d8a; background: #eff6ff; border-color: #cfe2f9; }
.catalog-progress-category[data-category="purchased"] { color: #375e4e; background: #eef7f2; border-color: #cfebdc; }
.catalog-progress-summary { margin: 7px 0 0; color: var(--text); font-size: 12px; }
.catalog-progress-summary:empty { display: none; }
.catalog-delivery-date { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
p.catalog-progress-muted { margin: 5px 0 0; }
.catalog-progress-mobile-label { display: none; }
.catalog-week-summary { margin: 0 0 4px; color: var(--text); font-weight: 600; }
.catalog-week-records, .catalog-progress-stages { margin: 0; padding: 0; list-style: none; }
.catalog-week-records li { display: flex; gap: 8px; padding: 2px 0; }
.catalog-week-records time { flex: none; color: var(--text-sub); font-size: 12px; }
.catalog-progress-stages li + li { margin-top: 7px; }
.catalog-progress-stages li > span { display: block; color: var(--text-sub); font-size: 12px; }
.catalog-progress-stages strong { font-weight: 600; }
.catalog-timeline-button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  border: 0;
  margin-top: 5px;
  background: none;
  color: var(--brand-link);
  font: inherit;
  cursor: pointer;
}
.catalog-timeline-button:hover { text-decoration: underline; }
.catalog-timeline-button[aria-expanded="true"] span { transform: rotate(180deg); }
.catalog-progress-table .catalog-progress-timeline > td { padding: 0 16px 14px; }
.catalog-timeline-body {
  padding: 13px 16px;
  border: 1px solid var(--brand-line);
  border-radius: 9px;
  background: var(--brand-wash);
}
.catalog-timeline-body h3 { margin: 0 0 9px; font-size: 14px; }
.catalog-timeline-body .catalog-history { margin: 0; border: 0; padding: 0; }
.catalog-timeline-body .catalog-history-list { max-height: 380px; }
.catalog-timeline-body .catalog-history-list li { white-space: normal; }
.catalog-milestone-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 9px; }
.catalog-milestone-heading strong { color: var(--text); }
.catalog-milestone-heading time { color: var(--text-sub); font-variant-numeric: tabular-nums; }
.catalog-milestone-heading span, .catalog-milestone-detail { font-size: 12px; color: var(--text-sub); }
.catalog-milestone-detail { white-space: pre-line; margin-top: 2px; }

@media (max-width: 768px) {
  .catalog-progress-wrap { background: none; border: 0; border-radius: 0; overflow: visible; }
  .catalog-progress-table, .catalog-progress-table tbody { display: block; min-width: 0; }
  .catalog-progress-table colgroup { display: none; }
  .catalog-progress-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .catalog-progress-row {
    display: block;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 10px;
    overflow: hidden;
  }
  .catalog-progress-table .catalog-progress-row > td { display: block; padding: 10px 13px; border-top: 1px solid var(--border); }
  .catalog-progress-table .catalog-progress-row > .catalog-progress-project { background: var(--brand-surface); border-top: 0; }
  .catalog-progress-mobile-label { display: block; font-weight: 600; margin-bottom: 3px; }
  .catalog-progress-timeline, .catalog-progress-timeline td { display: block; }
  .catalog-progress-table .catalog-progress-timeline > td { padding: 8px 0 0; }
}
