:root {
  --bg: #070707;
  --bg-2: #101010;
  --bg-3: #181818;
  --bg-4: #222;
  --ink: #f4efe4;
  --muted: #a89b80;
  --dim: #6f6758;
  --gold: #d4af37;
  --gold-2: #f0d56a;
  --line: rgba(212, 175, 55, 0.22);
  --danger: #c45c4a;
  --ok: #7d9a62;
  --font-display: "Bebas Neue", sans-serif;
  --font-head: "Oswald", sans-serif;
  --font-body: "Outfit", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
input, select {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
}
input:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 18px 16px 96px;
}

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}
.brand {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 28px;
  line-height: 1;
}
.brand span { color: var(--gold); }
.sync {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.account {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  max-width: 58%;
}
.account .btn.tiny { width: auto; }
.account .who {
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.04em;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kicker {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 6px;
}
h1, h2 { font-family: var(--font-head); font-weight: 500; margin: 0 0 8px; }
h1 { font-size: 32px; letter-spacing: 0.02em; }
h2 { font-size: 22px; }
p { margin: 0 0 12px; color: var(--muted); }

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}
.card.today { background: linear-gradient(180deg, #1a160c 0%, var(--bg-2) 70%); }

.row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.stat {
  background: var(--bg-3);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}
.stat b { display: block; font-family: var(--font-head); font-size: 18px; color: var(--ink); }
.stat span { display: block; color: var(--dim); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

.days { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.day-chip {
  min-width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  padding: 0 14px;
  text-align: center;
  background: #1a1a1a;
  color: #cfc8b8;
  font-family: var(--font-head);
  font-size: 18px;
}
.day-chip small { display: block; color: var(--dim); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
.day-chip.on { background: var(--gold); color: #111; }
.day-chip.on small { color: #3a3208; }
.day-chip.off { background: #161616; color: #5c574c; }
.day-chip.done { color: var(--ok); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  background: var(--gold);
  color: #111;
  font-family: var(--font-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 15px;
}
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn.tiny { width: auto; min-height: 36px; padding: 0 12px; font-size: 12px; }
.btn + .btn { margin-top: 8px; }
.btn:disabled { opacity: 0.45; }

.nav.three { grid-template-columns: 1fr 1fr 1fr; }
.nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  width: min(398px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #0c0c0c;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px;
  z-index: 20;
}
.nav button {
  padding: 10px 0;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 12px;
}
.nav button.on { color: var(--gold); border-bottom: 2px solid var(--gold); background: transparent; border-radius: 0; }

.lift-head { margin-bottom: 10px; }
.badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 3px 8px;
  margin-right: 6px;
}
.set-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 10px; }
.set-grid.two { grid-template-columns: 1fr 1fr; }
.set-list { margin: 10px 0 0; padding: 0; list-style: none; }
.set-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--ink);
}
.set-list button { color: var(--danger); font-size: 12px; }
.phase {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-top: 12px;
}
.phase .kicker { margin-top: 0; }
.phase.downsets { border-color: rgba(255,255,255,0.14); }

.timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.timer .clock {
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.ok { color: var(--ok); }
.warn { color: var(--gold-2); }
.danger { color: var(--danger); }
.hidden { display: none !important; }
.rules li { margin-bottom: 8px; color: var(--muted); }
.max-grid { display: grid; grid-template-columns: 1fr 110px; gap: 8px; align-items: center; margin-bottom: 8px; }
.max-grid label { color: var(--muted); }
.history-item { cursor: pointer; }
.plates { color: var(--ink); font-size: 14px; }
.tour p { margin-bottom: 14px; }
.tiny { color: var(--dim); font-size: 12px; margin: 4px 0 0; }
.max-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}
.toggle {
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
}
.toggle.on {
  background: #1a160c;
  border-color: var(--gold);
  color: var(--gold-2);
}
.acc-rename { margin-bottom: 10px; font-family: var(--font-head); font-size: 22px; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.chip {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 8px 12px;
  background: var(--bg-3);
  color: var(--ink);
  font-size: 13px;
}
.chip:hover { border-color: var(--gold); color: var(--gold-2); }

.last {
  margin: 4px 0 14px;
  padding: 12px;
  border-radius: 12px;
  background: #14110b;
  border: 1px solid rgba(212, 175, 55, 0.18);
}
.last .kicker { margin-bottom: 8px; }
.last-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pill {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  color: var(--ink);
}
.pill.max {
  border-color: var(--gold);
  color: var(--gold-2);
}
.last-meta { margin: 8px 0 0; color: var(--dim); }
.last-line {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin: -6px 0 12px;
}
.today .last-line { margin-bottom: 10px; }

.hang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}
.days { grid-template-columns: 1fr 1fr; }
@media (min-width: 360px) {
  .days.seven { grid-template-columns: 1fr 1fr; }
}
.max-card .toggle { margin-top: 8px; width: 100%; }

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.sync-pill:before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--gold); display: block; }
.lift-tabs { display: flex; gap: 18px; border-bottom: 1px solid #2a2a2a; margin: 8px 0 16px; }
.lift-tab {
  padding: 8px 0;
  color: #6f6758;
  font-family: var(--font-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
}
.lift-tab.on { color: var(--gold); border-bottom: 2px solid var(--gold); }
.coach { color: var(--gold); margin: 8px 0 14px; }
.big-in {
  background: #141414;
  border: 0;
  border-radius: 14px;
  min-height: 64px;
  font-size: 28px;
  font-family: var(--font-head);
  text-align: center;
}
.max-card {
  background: #121212;
  border: 1px solid #222;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}
.max-card.off-lift { opacity: 0.55; }
.switch {
  width: 48px;
  height: 28px;
  border-radius: 99px;
  background: #2a2a2a;
  position: relative;
}
.switch.on { background: var(--gold); }
.switch:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 99px;
  background: #f4efe4;
}
.switch.on:after { left: 23px; }
.acc-days { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.acc-days button {
  width: 36px; height: 36px; border-radius: 10px;
  background: #1a1a1a; color: #8a8272;
}
.acc-days button.on { background: var(--gold); color: #111; }

.card.lift-now { background: transparent; border: 0; padding: 0; margin-bottom: 8px; }
.coach { color: var(--gold); margin: 10px 0 14px; font-size: 15px; }
.set-grid.labeled label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.big-in {
  background: #141414 !important;
  border: 0 !important;
  border-radius: 14px !important;
  min-height: 64px;
  font-size: 28px !important;
  font-family: var(--font-head);
  text-align: center;
}
.max-row { margin: 18px 0 8px; }
.max-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.quiet-link { color: var(--dim); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.hang-card { background: #121212; border-radius: 16px; }
.hang-two-row input { width: 88px; text-align: center; }
.pill.max { background: var(--gold); color: #111; }

.lift-stack {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 6px 12px;
  width: 100%;
  text-align: left;
  background: #121212;
  border: 1px solid #2a2416;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 10px;
  color: inherit;
}
.lift-stack h2 { font-size: 20px; margin: 0; }
.stack-right { text-align: right; }
.stack-right b { display: block; font-family: var(--font-head); font-size: 18px; }
.open-link { color: var(--gold); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.bar { grid-column: 1 / -1; height: 4px; background: #2a2a2a; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gold); }
.last-tiles { margin: 8px 0 16px; }
.last-label { margin-bottom: 8px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.tile {
  background: #161616;
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
}
.tile b { display: block; font-family: var(--font-head); font-size: 20px; }
.tile span { color: var(--dim); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.field { display: block; margin: 10px 0; color: var(--dim); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.field-row { display: flex; align-items: center; gap: 8px; }
.field-row span { color: var(--dim); text-transform: none; letter-spacing: 0; font-size: 14px; }
.center-note { text-align: center; margin: 12px 0 4px; }
.back-lifts {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.app { padding-bottom: 120px; }

.set-grid.three{grid-template-columns:1fr 1fr 1fr}
.acc-row{display:grid;grid-template-columns:52px 1fr 1fr;gap:8px;margin:6px 0;align-items:center}
