/* ============================================================
 * workout.css — Matches the MOTTO mockup exactly
 * ============================================================ */

/* ── WORKOUT SCREEN SHELL ── */
.workout-screen { background:#f5f4f0; }
.workout-screen .status-bar { background:#f5f4f0; }

/* ── WORKOUT HEADER ── */
.workout-header { padding: calc(env(safe-area-inset-top) + 4px) 20px 16px; max-width:500px; margin:0 auto; }
.wh-label { font-size:9px; font-weight:500; letter-spacing:.18em; text-transform:uppercase; color:#aaa; margin-bottom:6px; }
.wh-day { font-size:22px; font-weight:300; color:#000; letter-spacing:-.01em; }

/* ── SCROLL AREA ── */
#workout-scroll { flex:1 1 0%; overflow-y:auto; padding:0 0 120px; }

/* ── PROGRESS BAR (bottom of exercise area) ── */
.workout-progress { padding:0 20px 12px; max-width:500px; margin:0 auto; }
.wp-bar { height:1px; background:#ddd; overflow:hidden; position:relative; }
.wp-fill { height:1px; background:#000; transition:width .4s; }
.workout-progress-row { display:flex; justify-content:space-between; align-items:center; padding:10px 20px 0; max-width:500px; margin:0 auto; }
.wp-label { font-size:11px; color:#aaa; font-weight:400; }
.wp-pct { font-size:11px; color:#aaa; font-weight:400; }

/* ── EXERCISE BLOCK ── */
.ex-card {
  background:#f5f4f0;
  padding: 20px 20px 0;
  max-width:500px;
  margin:0 auto;
}
.ex-card + .ex-card { border-top:0.5px solid #e0ddd8; }

/* small section label above exercise name */
.ex-section-label {
  font-size:9px;
  font-weight:500;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#aaa;
  margin-bottom:4px;
}

/* exercise name row + prev aligned right */
.ex-name-row {
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  margin-bottom:2px;
}
.ex-card-name {
  font-size:22px;
  font-weight:300;
  color:#000;
  letter-spacing:-.01em;
  line-height:1.2;
}
.ex-prev-label {
  font-size:11px;
  color:#aaa;
  font-weight:400;
  flex-shrink:0;
  margin-left:12px;
}

/* metadata line: 2 SETS · 4–6 REPS */
.ex-meta {
  font-size:9px;
  font-weight:500;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#aaa;
  margin-bottom:12px;
}

/* SETS / HISTORY / NOTES tabs */
.ex-tabs {
  display:flex;
  gap:20px;
  border-bottom:0.5px solid #e0ddd8;
  margin-bottom:0;
}
.ex-tab {
  font-size:10px;
  font-weight:500;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#bbb;
  padding-bottom:8px;
  border:none;
  background:transparent;
  cursor:pointer;
  position:relative;
}
.ex-tab.active {
  color:#000;
  font-weight:600;
}
.ex-tab.active::after {
  content:'';
  position:absolute;
  bottom:-1px;
  left:0;right:0;
  height:1.5px;
  background:#000;
}

/* ── SET ROWS ── */
.ex-set-rows { padding:4px 0; }

.ex-set-row {
  display:grid;
  grid-template-columns:36px 1fr 10px 1fr 36px;
  gap:6px;
  padding:10px 0;
  align-items:center;
  border-bottom:0.5px solid #e8e5e0;
}
.ex-set-row:last-child { border-bottom:none; }
.ex-set-row.row-done { opacity:0.6; }

.set-n {
  font-size:10px;
  color:#bbb;
  font-weight:400;
  text-align:left;
  line-height:1.3;
}
.set-n span { display:block; font-size:8px; color:#ccc; }

.set-field {
  background:#fff;
  border:0.5px solid #e0ddd8;
  border-radius:4px;
  font-family:'Inter',sans-serif;
  font-size:14px;
  font-weight:400;
  color:#000;
  text-align:center;
  padding:9px 6px;
  outline:none;
  width:100%;
  -webkit-appearance:none;
  -moz-appearance:textfield;
}
.set-field:focus { border-color:#000; }
.set-field.f-done { background:#efefef; color:#999; }
.set-field::placeholder { color:#ccc; font-weight:300; }

.set-x {
  font-size:13px;
  color:#bbb;
  text-align:center;
}

.set-check {
  width:32px;
  height:32px;
  border:0.5px solid #d8d5d0;
  border-radius:4px;
  background:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all .15s;
  flex-shrink:0;
}
.set-check:active { transform:scale(.9); }
.set-check.checked { background:#000; border-color:#000; }
.set-check svg { opacity:0; transition:opacity .15s; }
.set-check.checked svg { opacity:1; color:#fff; }

/* ADD SET */
.ex-add-set {
  padding:10px 0 20px;
}
.ex-add-set button {
  font-size:11px;
  color:#aaa;
  letter-spacing:.06em;
  background:transparent;
  border:none;
  cursor:pointer;
  padding:0;
  font-family:'Inter',sans-serif;
}
.ex-add-set button:active { color:#000; }

/* ── FINISH BTN ── */
.finish-workout-bar {
  position:fixed;
  bottom:68px;
  left:20px;right:20px;
  z-index:99;
  max-width:460px;
  margin:0 auto;
  left:50%;
  transform:translateX(-50%);
  width:calc(100% - 40px);
}
#finish-btn, .finish-btn {
  width:100%;
  background:#e8450a;
  color:#fff;
  border:none;
  padding:16px;
  font-family:'Inter',sans-serif;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  display:none;
  letter-spacing:.06em;
  text-transform:uppercase;
  flex-shrink:0;
}
#finish-btn.visible, .finish-btn.visible { display:block; }

/* ── DAY DETAIL CARDS (used in home screen preview) ── */
.dds-ex-card{background:#fff;border:0.5px solid #e0e0e0;margin-bottom:6px;overflow:hidden;}
.dds-set-row{display:flex;justify-content:space-between;align-items:center;padding:9px 14px;border-bottom:0.5px solid #f5f5f5;}
.dds-set-row:last-child{border-bottom:none;}
.dds-set-num{font-size:11px;color:#bbb;width:28px;font-weight:300;}
.dds-set-weight{font-size:15px;font-weight:600;color:#000;}
.dds-set-reps{font-size:12px;color:#666;font-weight:400;}
.dds-set-pr{font-size:9px;font-weight:500;background:#000;color:#fff;padding:2px 5px;margin-left:4px;letter-spacing:.06em;}
.dds-future-ex-card{background:#fff;border:0.5px solid #e0e0e0;padding:12px 14px;margin-bottom:5px;display:flex;justify-content:space-between;align-items:center;}
