.rep-app { max-width: 760px; margin: 0 auto; }
.rep-tabs { position: sticky; top: 72px; z-index: 20; display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--shadow-1); margin-bottom: 24px; overflow-x: auto; }
.rep-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); font-weight: 650; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.rep-tab svg { width: 20px; height: 20px; flex: none; }
.rep-tab:hover { background: var(--field); }
.rep-tab[aria-current="page"] { background: var(--brand); color: #fff; }
.view-h { font-size: 30px; margin: 4px 0 16px; }
.rep-step { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; margin: 4px 0 18px; }
.rep-step .step-n { font-size: 56px; }
.rep-step .step-h { margin-bottom: 4px; }
.rep-step .step-sub { margin: 0; }
.rep-app .card { padding: 18px; margin-bottom: 12px; }
.rep-app h3 { font-size: 17px; margin: 0 0 6px; }
.rep-app .btn:not([class*="btn-"]) { background: #fff; color: var(--ink); border: 1.5px solid var(--line-2); }
.rep-app .btn:not([class*="btn-"]):hover { border-color: #cfccd9; background: var(--paper); }
.rep-app .btn-block { width: 100%; }
.rep-app .btn-danger { border: 1.5px solid #fecdd3; min-height: 48px; }
.rep-app .fine { font-size: 13px; color: var(--muted); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.log-btn { width: 100%; min-height: 64px !important; font-size: 19px !important; border-radius: var(--r-lg) !important; }
.example-card { margin-top: 20px; background: var(--paper) !important; border-color: transparent !important; box-shadow: none !important; }
.example-caption { margin: 0 0 12px; }
.last-time { background: var(--soft) !important; border-color: transparent !important; box-shadow: none !important; }
.last-time h3 { color: var(--brand); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.set-line { font: 600 20px/1.35 var(--display); margin: 2px 0; font-variant-numeric: tabular-nums; }
.pr-line { font-size: 14px; color: var(--ink-2); margin: 6px 0 0; }
.pr-chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: linear-gradient(135deg, #fde68a, #f59e0b); color: #78350f; font: 800 12px/1.5 var(--body); letter-spacing: .04em; vertical-align: 2px; }
.ex-name { font-size: 28px; }
.exercise-search { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r); border: 1.5px solid var(--line-2); font-size: 17px; margin-bottom: 12px; background: #fff; }
.exercise-search:focus { outline: none; border-color: var(--c2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c2) 16%, transparent); }
.exercise-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.exercise-list button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 56px; padding: 0 16px; border-radius: var(--r); border: 1.5px solid var(--line); background: #fff; font: 600 16px/1.2 var(--body); text-align: left; cursor: pointer; transition: border-color .15s, transform .15s var(--ease), background .15s; }
.exercise-list button:hover { border-color: var(--c1); background: var(--soft); transform: translateY(-1px); }
.group-tag { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 10px; }
.stepper label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.stepper-controls { display: grid; grid-template-columns: 56px 1fr 56px; gap: 6px; }
.stepper-controls input { min-width: 0; width: 100%; min-height: 64px; text-align: center; font: 800 30px/1 var(--display); border-radius: var(--r); border: 1.5px solid var(--line-2); background: #fff; -moz-appearance: textfield; }
.stepper-controls input::-webkit-outer-spin-button, .stepper-controls input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-controls input:focus { outline: none; border-color: var(--c2); }
.step-btn { min-height: 64px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: #fff; font: 500 28px/1 var(--body); color: var(--ink); cursor: pointer; }
.step-btn:hover { background: var(--soft); border-color: var(--c1); }
.step-btn:active { transform: scale(.96); }
.rpe-row select { min-height: 44px; padding: 8px 36px 8px 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font-size: 14px; }
.err-line { color: var(--bad) !important; min-height: 1.2em; }
.session-sets { list-style: none; padding: 0; margin: 0; }
.session-sets li { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px; border-bottom: 1px dashed var(--line); font: 600 17px/1.3 var(--display); font-variant-numeric: tabular-nums; }
.set-del { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.set-del:hover { background: #fff1f2; color: var(--bad); }
.session-tally { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.session-tally svg { width: 30px; height: 26px; }
.tally-stroke, .tally-five { stroke: var(--brand); }
.tally-five { stroke: var(--c1); }
.just-logged .tally-stroke:last-of-type, .just-logged .tally-five { stroke-dasharray: 30; animation: draw .5s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
.tally-divider { display: flex; justify-content: center; opacity: .35; margin: 14px 0; }
.payoff-pop { animation: pop .4s var(--ease); border-color: var(--c1) !important; }
.session-item summary { display: flex; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; }
.session-item summary::-webkit-details-marker { display: none; }
.session-meta { color: var(--muted); font-size: 14px; }
.session-body .set-line { font-size: 16px; }
.seg button { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; font-weight: 650; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.setting-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.rep-app .stack > * + * { margin-top: 10px; }
.rep-app select[aria-label="Exercise"] { min-height: 48px; padding: 10px 40px 10px 14px; border-radius: var(--r); border: 1.5px solid var(--line-2); font-size: 16px; margin-bottom: 12px; max-width: 100%; }
.metric-tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--field); margin-bottom: 12px; flex-wrap: wrap; }
.metric-tabs button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; font-weight: 650; color: var(--ink-2); cursor: pointer; }
.metric-tabs button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.chart-wrap { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg text { fill: var(--muted); font: 12px var(--body); }
.gridline { stroke: var(--line); } .axisline { stroke: var(--line-2); }
.series-line { fill: none; stroke: var(--c2); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.series-dot, .hover-dot { fill: var(--c2); stroke: #fff; stroke-width: 2; }
.series-bar { fill: var(--c1); }
.crosshair { stroke: var(--muted); stroke-dasharray: 3 3; }
.chart-tip { position: absolute; pointer-events: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 13px; box-shadow: var(--shadow-2); }
.chart-table summary { cursor: pointer; margin-top: 8px; }
.rest-timer { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: var(--shadow-3); animation: rise .35s var(--ease); }
.rest-ring .track { stroke: rgba(255,255,255,.2); } .rest-ring .left { stroke: var(--c1); transition: stroke-dashoffset 1s linear; }
.rest-label { font-size: 13px; opacity: .7; }
.rest-clock { font: 800 22px/1 var(--display); font-variant-numeric: tabular-nums; min-width: 52px; }
.rest-timer .btn-soft { background: rgba(255,255,255,.14); color: #fff; } .rest-timer .btn-quiet { color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 640px) {
  .rep-tabs { top: 64px; margin-left: -4px; margin-right: -4px; }
  .rep-tab { padding: 0 10px; font-size: 13.5px; gap: 5px; }
  .rep-tab svg { display: none; }
  .rep-step { grid-template-columns: 1fr; gap: 0; }
  .rep-step .step-n { font-size: 44px; }
  .exercise-list { grid-template-columns: 1fr; }
  .stepper-controls { grid-template-columns: 48px 1fr 48px; }
  .stepper-controls input { font-size: 26px; }
}
#view-today { min-height: 520px; }
