/* Reading progress mode */

.layout.is-progress-mode .toc-panel-days,
.layout.is-progress-mode .toc-panel-articles {
  display: none;
}
.layout.is-progress-mode .toc-panel-progress {
  display: block;
}
.layout:not(.is-progress-mode) .toc-panel-progress {
  display: none;
}

.wa-prog-toc-hint {
  margin: 0;
  padding: 4px 12px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #94a3b8;
}

#wa-progress-root[hidden] {
  display: none !important;
}

.wa-prog-head h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.wa-prog-sub {
  margin: 0 0 16px;
  color: var(--muted, #64748b);
  font-size: 13px;
  line-height: 1.5;
}

.wa-prog-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.wa-prog-filters button {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: transparent;
  color: inherit;
  border-radius: 8px;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.wa-prog-filters button.is-on {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.12);
}

.wa-prog-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa-prog-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.wa-prog-main {
  text-decoration: none;
  color: inherit;
}
.wa-prog-main:hover h3 {
  color: #38bdf8;
}
.wa-prog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
}
.wa-prog-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.18);
  color: #c7d2fe;
}
.wa-prog-status.is-done {
  color: #86efac;
}
.wa-prog-status.is-prog {
  color: #93c5fd;
}
.wa-prog-time {
  color: var(--muted, #64748b);
  margin-left: auto;
}
.wa-prog-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.35;
}
.wa-prog-heading {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted, #94a3b8);
}
.wa-prog-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.wa-prog-act {
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: transparent;
  color: inherit;
  border-radius: 8px;
  padding: 5px 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.wa-prog-act:hover {
  border-color: rgba(56, 189, 248, 0.45);
}
.wa-prog-act-muted {
  opacity: 0.75;
}
.wa-prog-empty,
.wa-prog-boot,
.wa-prog-error {
  padding: 28px 12px;
  text-align: center;
  color: var(--muted, #64748b);
  font-size: 14px;
}
.wa-prog-linkish {
  border: 0;
  background: none;
  color: #38bdf8;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

html[data-theme="light"] .wa-prog-card {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .wa-prog-pill {
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
}
html[data-theme="light"] .wa-prog-status.is-done {
  color: #15803d;
}
html[data-theme="light"] .wa-prog-status.is-prog {
  color: #0369a1;
}
