/* ShapeUp — Exercise Log: Progress tab (React-only, greenfield — the vanilla
 * app never built this tab). Reuses the :root tokens from exercise.css
 * (loaded first) and mirrors SummaryPanel's .xls-* chip/pill visual language
 * so the three data-tab surfaces (Summary/History/Progress) feel like one
 * system, under a dedicated xlp-* prefix. */

.xlp-wrap { display: flex; flex-direction: column; gap: 16px; }

.xlp-empty,
.xlp-empty-state {
  text-align: center; padding: 32px 16px; color: var(--muted); font-size: 13px;
}
.xlp-empty-icon svg { width: 32px; height: 32px; opacity: .4; margin: 0 auto 10px; display: block; }
.xlp-empty-title { font-size: 14px; font-weight: 600; color: var(--slate); margin-bottom: 4px; }
.xlp-empty-sub { font-size: 12px; color: var(--muted); }

.xlp-controls {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 10px;
}
.xlp-control-label {
  font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); margin-top: 4px;
}
.xlp-control-label:first-child { margin-top: 0; }

.xlp-select {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: inherit; color: var(--ink); background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
  padding-right: 34px;
}
.xlp-select:focus { outline: none; border-color: var(--blue); }

.xlp-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.xlp-pill {
  padding: 6px 12px; border-radius: 16px; font-size: 11px; font-weight: 500;
  background: #fff; border: 1px solid var(--border); color: var(--slate);
  cursor: pointer; transition: all .15s ease; font-family: inherit;
}
.xlp-pill:hover:not(:disabled) { background: #f0f2f5; }
.xlp-pill.active { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 600; }
.xlp-pill:disabled { opacity: .35; cursor: not-allowed; }

.xlp-chart-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px;
}
.xlp-chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.xlp-chart-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.xlp-expand-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; color: var(--slate); cursor: pointer;
}
.xlp-expand-btn:hover:not(:disabled) { background: #f0f2f5; }
.xlp-expand-btn:disabled { opacity: .35; cursor: not-allowed; }
.xlp-expand-btn svg { width: 15px; height: 15px; }

.xlp-chart { width: 100%; }

.xlp-modal-scrim {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.xlp-modal {
  background: #fff; border-radius: 16px; padding: 18px; width: 100%; max-width: 720px;
  max-height: calc(100vh - 40px); overflow: auto;
}
.xlp-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.xlp-modal-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; color: var(--slate); cursor: pointer;
}
.xlp-modal-close:hover { background: #f0f2f5; }
.xlp-modal-close svg { width: 15px; height: 15px; }
