/* gymplates.css — My Gym and the Plates sheet (the plates + My Gym upgrade; plateArt.js,
 * gymMyGym.js, gymPlateSheet.js), plus the exercise drawer's EQUIPMENT line and pins.
 *
 * The look the owner approved over eight rounds of live mockups: a wooden header plaque
 * on a cream card, umber outlines, hard pixel shadows. Colours are the skin's palette
 * tokens (palette.css) with their values as fallbacks, like cardio.css. Every class is
 * `gp-` so nothing here can reach another sheet.
 */

/* every gp- piece sizes border-box itself, so the centring maths holds on any page */
[class*="gp-"], [class*="gp-"]::before, [class*="gp-"]::after { box-sizing: border-box; }

/* ---------- the frame ---------- */
.gp-veil { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(20, 28, 14, .58); }
.gp-veil.up { z-index: 62; }
.gp-sheet { position: relative; width: min(100%, 460px); max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain;
  padding: 0 10px calc(14px + env(safe-area-inset-bottom)); color: var(--tol-umber, #3a2c23); font-weight: 700; }
.gp-wbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 14px;
  background: var(--tol-wood-light, #c9975b); border: 3px solid var(--tol-umber, #3a2c23); border-radius: 14px 14px 0 0;
  box-shadow: inset 0 3px 0 #ddb07a, inset 0 -3px 0 var(--tol-wood-dark, #8a5a35); }
.gp-title { font-size: 17px; letter-spacing: 2px; text-shadow: 0 1px 0 rgba(255, 233, 196, .55); }
.gp-gap { flex: 1; }
.gp-tag { padding: 4px 7px; font: inherit; font-size: 10px; font-weight: 800; letter-spacing: .5px; white-space: nowrap; color: var(--tol-umber, #3a2c23);
  background: #e8c48f; border: 2px solid var(--tol-umber, #3a2c23); border-radius: 3px; box-shadow: inset 0 -2px 0 #b07a4a; }
button.gp-tag { cursor: pointer; }
.gp-x { width: 32px; height: 32px; padding: 0; font: inherit; font-size: 15px; font-weight: 800; line-height: 1; color: var(--tol-umber, #3a2c23);
  background: #d9a76b; border: 3px solid var(--tol-umber, #3a2c23); border-radius: 4px; box-shadow: inset 0 -3px 0 #b07a4a; }
.gp-card { background: #f6eee4; border: 3px solid var(--tol-umber, #3a2c23); border-top: 0; border-radius: 0 0 14px 14px; padding: 12px 10px; }
.gp-lbl { display: flex; align-items: center; gap: 6px; margin: 14px 0 6px; font-size: 10px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: #7a6a5c; }
.gp-lbl:first-child { margin-top: 0; }
.gp-tip { margin: -3px 0 8px; font-size: 10px; font-weight: 700; color: #7a6a5c; }

/* ---------- buttons, chips, the number box ---------- */
.gp-pq { padding: 0 10px; font: inherit; font-weight: 800; color: var(--tol-umber, #3a2c23); background: #d9a76b;
  border: 2px solid var(--tol-umber, #3a2c23); border-radius: 4px; box-shadow: inset 0 -3px 0 #b07a4a, 2px 2px 0 rgba(58, 44, 35, .25); cursor: pointer; }
.gp-pq:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 #b07a4a; }
.gp-pq:disabled { opacity: .4; cursor: default; transform: none; }
.gp-pq.go { color: var(--tol-cream, #f8f3e4); letter-spacing: 1px; background: #4f8f53; box-shadow: inset 0 -3px 0 #3a6b3e, 2px 2px 0 rgba(58, 44, 35, .25); }
/* the three that must never be mistaken for one another (owner O2): wood · plain · red */
.gp-pq.plain { color: #7a6a5c; background: #fffaf0; border-color: rgba(58, 44, 35, .45); box-shadow: none; }
.gp-pq.red { color: var(--tol-cream, #f8f3e4); background: #c0442e; box-shadow: inset 0 -3px 0 #8e2f1f, 2px 2px 0 rgba(58, 44, 35, .25); }
.gp-chip { padding: 4px 8px; font: inherit; font-size: 11px; font-weight: 800; white-space: nowrap; color: var(--tol-umber, #3a2c23);
  background: #fffaf0; border: 2px solid rgba(58, 44, 35, .5); border-radius: 3px; cursor: pointer; }
.gp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gp-box { padding: 5px 6px; font: inherit; font-size: 13px; font-weight: 800; color: var(--tol-umber, #3a2c23); background: #fff;
  border: 2px solid rgba(58, 44, 35, .4); border-radius: 3px; }
.gp-box:focus { outline: none; border-color: var(--tol-terracotta, #c96f4a); }
.gp-box::placeholder { color: rgba(58, 44, 35, .35); font-weight: 700; }

/* ---------- the lb ⇄ kg pill (look A) ---------- */
.gp-unit { position: relative; display: flex; align-items: stretch; width: 100%; height: 32px; margin: -2px 0 10px; padding: 0; font: inherit;
  background: #fffaf0; border: 2px solid var(--tol-umber, #3a2c23); border-radius: 999px; cursor: pointer; }
.gp-unit b { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; letter-spacing: 3px; color: #7a6a5c; transition: color .2s; }
.gp-unit b.on { color: var(--tol-cream, #f8f3e4); }
.gp-thumb { position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px); border-radius: 999px;
  background: var(--tol-umber, #3a2c23); }
.gp-unit.kg .gp-thumb { left: 50%; }

/* ---------- the bar, side-on ---------- */
.gp-stage { position: relative; padding: 28px 6px 0; cursor: pointer; background: #36503f; border: 2px solid #1d2b22;
  background-image: linear-gradient(rgba(0, 0, 0, .06) 1px, transparent 1px); background-size: 100% 6px; }
.gp-floor { height: 12px; margin: 0 -6px; background: var(--tol-wood-light, #c9975b); border-top: 2px solid #1d2b22; box-shadow: inset 0 2px 0 #ddb07a; }
/* the starting weight, written on the wall — hold it 1 s to change it for today */
.gp-base { position: absolute; left: 50%; top: 5px; transform: translateX(-50%); display: flex; align-items: center; gap: 5px;
  padding: 1px 6px 2px; font-size: 10.5px; letter-spacing: 1px; white-space: nowrap; color: var(--tol-warm-tan, #e3d5b8);
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: pointer; }
.gp-base::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: #f0b48f; }
.gp-base.holding::after { width: 100%; transition: width 1s linear; }
.gp-base .today { color: #f0b48f; }
.gp-base input { width: 64px; padding: 1px 5px; font: inherit; font-size: 12px; font-weight: 800; color: var(--tol-umber, #3a2c23);
  background: #fff; border: 2px solid var(--tol-terracotta, #c96f4a); border-radius: 3px; }
.gp-barhint { margin-top: 4px; font-size: 8.6px; letter-spacing: -.1px; text-align: center; white-space: nowrap; overflow: hidden; color: #7a6a5c; }
.gp-bb { display: flex; align-items: center; justify-content: center; height: var(--H); }
.gp-side { position: relative; flex: 0 0 var(--S); height: 100%; display: flex; align-items: center; gap: 1px; }
.gp-side::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 8px; margin-top: -4px;
  background: #b9b4aa; border: 2px solid var(--tol-umber, #3a2c23); }
.gp-side.L { flex-direction: row-reverse; }
.gp-side.L::before { border-right: 0; }
.gp-side.R::before { border-left: 0; }
.gp-side.pivot::before { left: 60%; background: #6c6863; }
.gp-side.pivot::after { content: ''; position: absolute; left: calc(60% - 12px); top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%; background: #8f8a83; border: 2px solid var(--tol-umber, #3a2c23); }
.gp-collar { flex: 0 0 7px; height: 22px; background: #8f8a83; border: 2px solid var(--tol-umber, #3a2c23); }
.gp-shaft { flex: 0 0 var(--shaft); height: 5px; background: #a7a298; border-top: 2px solid var(--tol-umber, #3a2c23); border-bottom: 2px solid var(--tol-umber, #3a2c23); }
.gp-bb.machine .gp-shaft { height: 16px; background: #5d4636; }
.gp-sp { position: relative; flex: 0 0 auto; background: #4a4642; border: 2px solid var(--tol-umber, #3a2c23); border-radius: 2px;
  box-shadow: inset 0 5px 0 var(--rim), inset 0 -5px 0 var(--rim), inset 2px 0 0 rgba(255, 255, 255, .2), inset -2px 0 0 rgba(0, 0, 0, .25); }

/* ---------- a plate, face-on ---------- */
.gp-fp { position: relative; flex: 0 0 auto; border-radius: 50%; background: #4a4642; border: 3px solid var(--tol-umber, #3a2c23);
  box-shadow: inset 0 0 0 var(--rw, 6px) var(--rim), inset 0 0 0 calc(var(--rw, 6px) + 2px) var(--tol-umber, #3a2c23), 0 3px 0 rgba(20, 12, 8, .35); }
/* placed by exact px from JS (not 50% / translate), so it never lands on a half pixel */
.gp-hub { position: absolute; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  font-weight: 800; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--tol-umber, #3a2c23);
  background: var(--tol-cream, #f8f3e4); border: 2px solid var(--tol-umber, #3a2c23); }
.gp-num { display: block; line-height: 1; }

/* ---------- the Plates sheet ---------- */
.gp-tot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.gp-numrow { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.gp-numrow .gp-box { width: 116px; height: 40px; padding: 0 8px; font-size: 20px; font-variant-numeric: tabular-nums; }
.gp-pqs { display: flex; gap: 6px; }
.gp-pqs .gp-pq { width: 44px; height: 40px; padding: 0; font-size: 15px; }
.gp-near { margin-top: 8px; padding: 7px 8px; font-size: 11px; color: var(--tol-terracotta, #c96f4a);
  border: 2px solid rgba(201, 111, 74, .55); border-radius: 4px; background: rgba(201, 111, 74, .06); }
.gp-near .gp-chips { margin-top: 5px; }
.gp-tree { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 100px; gap: 8px 2px; margin-top: 10px;
  padding: 26px 4px 10px; color: var(--tol-cream, #f8f3e4); background: #5d4636; border: 3px solid var(--tol-umber, #3a2c23); box-shadow: inset 0 3px 0 #7a5c45; }
/* ↻ — just the glyph, small, in the corner above the badges */
.gp-reset { position: absolute; top: 3px; right: 6px; z-index: 3; width: 20px; height: 20px; padding: 0; font: inherit; font-size: 15px; font-weight: 800;
  line-height: 20px; color: var(--tol-warm-tan, #e3d5b8); background: none; border: 0; cursor: pointer; }
.gp-reset:active { color: #fff; }
/* every plate in its own square, dead centre */
.gp-peg { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0;
  font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.gp-peg .gp-fp { transition: transform .15s, opacity .2s, filter .2s; }
.gp-peg.dim .gp-fp { opacity: .5; filter: saturate(.45); }
.gp-peg:active .gp-fp { transform: scale(.94); }
.gp-bwrap { position: relative; }
.gp-badge { position: absolute; top: -6px; right: -6px; z-index: 2; padding: 1px 5px; font-size: 11px; font-weight: 800;
  color: var(--tol-cream, #f8f3e4); background: var(--tol-terracotta, #c96f4a); border: 2px solid var(--tol-umber, #3a2c23); border-radius: 3px; }
.gp-hint { margin-top: 6px; font-size: 10.5px; text-align: center; color: #7a6a5c; }
.gp-enter { display: block; width: 100%; margin-top: 10px; padding: 11px; font-size: 14px; }

/* ---------- My Gym ---------- */
.gp-gympop { position: absolute; top: 46px; right: 54px; z-index: 8; width: 230px; padding: 6px; background: #f6eee4;
  border: 3px solid var(--tol-umber, #3a2c23); border-radius: 4px; box-shadow: 4px 4px 0 rgba(20, 12, 8, .4); }
.gp-gymrow { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 6px; font: inherit; font-size: 12.5px; font-weight: 800; text-align: left;
  color: var(--tol-umber, #3a2c23); background: none; border: 0; border-bottom: 1px solid rgba(58, 44, 35, .15); cursor: pointer;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.gp-gymrow .dot { flex: 0 0 12px; height: 12px; border-radius: 50%; border: 2px solid var(--tol-umber, #3a2c23); }
.gp-gymrow.on .dot { background: #4f8f53; }
.gp-gymrow small { margin-left: auto; font-size: 9.5px; letter-spacing: .5px; color: #7a6a5c; }
.gp-gymrow.add { color: var(--tol-terracotta, #c96f4a); border-bottom: 0; }
.gp-gymacts { display: flex; gap: 6px; padding: 6px 2px 8px; border-bottom: 1px solid rgba(58, 44, 35, .15); }
.gp-gymacts .gp-pq { flex: 1; height: 30px; font-size: 11.5px; }
.gp-gymacts input { flex: 1; min-width: 0; }
.gp-confirm { display: flex; align-items: center; gap: 6px; padding: 6px 2px 8px; font-size: 11.5px; border-bottom: 1px solid rgba(58, 44, 35, .15); }
.gp-confirm b { flex: 1; }
.gp-confirm .gp-pq { height: 28px; min-width: 50px; font-size: 11.5px; }
.gp-body { position: relative; }
.gp-lockcover { position: absolute; inset: -12px -10px; z-index: 4; border-radius: 0 0 11px 11px;
  background: rgba(246, 238, 228, .74); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.gp-bigpad { position: sticky; top: 170px; display: flex; flex-direction: column; align-items: center; padding-top: 150px; }
.gp-pad { position: relative; width: 84px; height: 84px; overflow: hidden; font-size: 38px; cursor: pointer; background: #d9a76b;
  border: 3px solid var(--tol-umber, #3a2c23); border-radius: 6px; box-shadow: inset 0 -5px 0 #b07a4a, 4px 4px 0 rgba(20, 12, 8, .35);
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.gp-pad::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 0; background: rgba(79, 143, 83, .55); }
.gp-pad.holding::after { height: 100%; transition: height .6s linear; }
.gp-bigpad b { margin-top: 10px; font-size: 18px; letter-spacing: 3px; }
.gp-bigpad small { font-size: 11px; letter-spacing: .5px; color: #7a6a5c; }
.gp-inv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gp-slot { position: relative; overflow: hidden; display: grid; grid-template-rows: 84px auto; justify-items: center; align-items: center; gap: 2px;
  padding: 6px 2px; font: inherit; color: var(--tol-umber, #3a2c23); background: #fffaf0; border: 2px solid rgba(58, 44, 35, .3); border-radius: 4px;
  cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.gp-slot > small { font-size: 9px; letter-spacing: .8px; color: #7a6a5c; }
.gp-slot.off { background: repeating-linear-gradient(-45deg, #f1e8da 0 6px, #e9dfcf 6px 12px); }
.gp-slot.off .gp-fp { opacity: .3; filter: grayscale(1); }
.gp-slot::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background: var(--tol-terracotta, #c96f4a); }
.gp-slot.holding::after { width: 100%; transition: width 1s linear; }
.gp-slot.editing { background: #fff6ec; border-color: var(--tol-terracotta, #c96f4a); }
.gp-slot .gp-pedit { width: 72px; height: 26px; padding: 0 4px; font-size: 13px; text-align: center; border-color: var(--tol-terracotta, #c96f4a); }
.gp-item { display: flex; gap: 10px; padding: 8px; color: var(--tol-umber, #3a2c23); background: #fffaf0; border: 2px solid rgba(58, 44, 35, .3); border-radius: 4px; }
.gp-item + .gp-item { margin-top: 8px; }
.gp-none { font-size: 10px; color: #7a6a5c; }
.gp-glyph { flex: 0 0 46px; position: relative; display: flex; align-items: center; justify-content: center; }
.gp-stack { position: relative; display: flex; flex-direction: column; gap: 2px; width: 46px; height: 64px; padding: 4px;
  background: #4a4642; border: 2px solid var(--tol-umber, #3a2c23); border-radius: 2px; }
.gp-stack i { display: block; height: 5px; background: #8f8a83; border: 1.5px solid var(--tol-umber, #3a2c23); box-shadow: inset 0 1.5px 0 #b9b4aa; }
.gp-stack::after { content: ''; position: absolute; left: 50%; top: 2px; bottom: 2px; width: 3px; margin-left: -1.5px; background: #b9b4aa; border: 1px solid var(--tol-umber, #3a2c23); }
.gp-pinm { position: absolute; right: -9px; top: 26px; width: 12px; height: 5px; background: var(--tol-terracotta, #c96f4a); border: 1.5px solid var(--tol-umber, #3a2c23); }
.gp-horn { display: flex; align-items: center; gap: 2px; }
.gp-horn .gp-sp { width: 6px; }
.gp-post { width: 8px; height: 8px; background: #b9b4aa; border: 2px solid var(--tol-umber, #3a2c23); }
.gp-seat { width: 12px; height: 26px; background: #5d4636; border: 2px solid var(--tol-umber, #3a2c23); }
.gp-minibar { display: flex; align-items: center; }
.gp-minibar i { width: 5px; height: 14px; background: #8f8a83; border: 2px solid var(--tol-umber, #3a2c23); }
.gp-minibar b { width: 26px; height: 5px; background: #b9b4aa; border-top: 2px solid var(--tol-umber, #3a2c23); border-bottom: 2px solid var(--tol-umber, #3a2c23); }
.gp-ibody { flex: 1; min-width: 0; }
.gp-itop { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.gp-itop input { flex: 1; min-width: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 800; color: var(--tol-umber, #3a2c23);
  background: none; border: 0; border-bottom: 2px solid transparent; }
.gp-itop input:focus { outline: none; border-bottom-color: var(--tol-terracotta, #c96f4a); }
.gp-rm { padding: 0 2px; font: inherit; font-size: 14px; color: #7a6a5c; background: none; border: 0; cursor: pointer; }
.gp-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 6px; }
.gp-fields.two { grid-template-columns: 1fr 1.4fr; }
.gp-fields.one { grid-template-columns: 1fr 1fr; }
.gp-mf { display: flex; flex-direction: column; gap: 2px; font-size: 8.5px; letter-spacing: .8px; color: #7a6a5c; }
/* the boxes and the side buttons share one height (owner, round 7) */
.gp-mf .gp-box { width: 100%; height: 32px; }
.gp-seg { display: flex; }
.gp-seg button { flex: 1; height: 32px; padding: 0 2px; font: inherit; font-size: 10.5px; font-weight: 800; white-space: nowrap; color: #7a6a5c;
  background: #fff; border: 2px solid rgba(58, 44, 35, .4); cursor: pointer; }
.gp-seg button:first-child { border-radius: 3px 0 0 3px; }
.gp-seg button:last-child { border-radius: 0 3px 3px 0; }
.gp-seg button + button { border-left: 0; }
.gp-seg button.on { color: var(--tol-cream, #f8f3e4); background: var(--tol-umber, #3a2c23); border-color: var(--tol-umber, #3a2c23); }
/* a stack's weights: the count, then both ends — nothing cut off */
.gp-pinline { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 11px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gp-pinline .cnt { flex: 0 0 auto; padding: 1px 5px; font-size: 8.5px; letter-spacing: .8px; color: #7a6a5c; border: 1.5px solid rgba(58, 44, 35, .3); border-radius: 2px; }
.gp-pinline .run { overflow: hidden; text-overflow: ellipsis; }
.gp-pinline .run i { padding: 0 3px; font-style: normal; color: rgba(58, 44, 35, .35); }
.gp-iconfirm { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding-top: 7px; font-size: 11.5px; border-top: 1px solid rgba(58, 44, 35, .15); }
.gp-iconfirm b { flex: 1; }
.gp-iconfirm .gp-pq { height: 28px; min-width: 50px; font-size: 11.5px; }
.gp-addline { display: block; width: 100%; margin-top: 16px; padding: 12px; font: inherit; font-size: 13px; font-weight: 800; text-align: center;
  color: var(--tol-terracotta, #c96f4a); background: none; border: 2px solid rgba(201, 111, 74, .55); border-radius: 4px; cursor: pointer; }
/* the Add panel (style B): kind → pick → details */
.gp-steps { display: flex; gap: 4px; margin-bottom: 10px; font-size: 9.5px; letter-spacing: 1px; }
.gp-steps span { flex: 1; padding: 3px 0; text-align: center; color: #7a6a5c; border-bottom: 3px solid rgba(58, 44, 35, .18); }
.gp-steps span.on { color: var(--tol-umber, #3a2c23); border-color: var(--tol-terracotta, #c96f4a); }
.gp-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gp-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 10px; font: inherit; font-size: 12px; font-weight: 800;
  color: var(--tol-umber, #3a2c23); background: #fffaf0; border: 2px solid rgba(58, 44, 35, .4); border-radius: 4px; cursor: pointer; }
.gp-tile .gp-glyph { height: 64px; }
.gp-tile small { font-size: 9.5px; font-weight: 700; color: #7a6a5c; }
.gp-plist { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gp-plist button { padding: 9px 6px; font: inherit; font-size: 11.5px; font-weight: 800; text-align: left; color: var(--tol-umber, #3a2c23);
  background: #fffaf0; border: 2px solid rgba(58, 44, 35, .4); border-radius: 4px; cursor: pointer; }
.gp-plist button small { display: block; font-size: 9px; font-weight: 700; color: #7a6a5c; }
.gp-plist button.custom { text-align: center; color: var(--tol-terracotta, #c96f4a); border-color: rgba(201, 111, 74, .55); }
.gp-back { margin-top: 10px; padding: 0; font: inherit; font-size: 11px; font-weight: 800; color: #7a6a5c; background: none; border: 0; cursor: pointer; }
.gp-item.draft { margin-top: 0; background: #fff6ec; border: 2px solid rgba(201, 111, 74, .6); }
.gp-item.draft .gp-itop input { padding-bottom: 2px; border-bottom: 2px solid rgba(58, 44, 35, .25); }
.gp-addrow { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.gp-addrow .gp-pq { flex: 0 0 auto; height: 32px; padding: 0 16px; font-size: 12px; }
.gp-addrow small { font-size: 9.5px; color: #7a6a5c; }
/* "Save changes?" */
.gp-ask { position: fixed; inset: 0; z-index: 64; display: flex; align-items: center; justify-content: center; background: rgba(20, 28, 14, .55); }
.gp-askbox { width: 260px; padding: 16px 14px 14px; text-align: center; color: var(--tol-umber, #3a2c23); font-weight: 700; background: #f6eee4;
  border: 3px solid var(--tol-umber, #3a2c23); border-radius: 6px; box-shadow: 5px 5px 0 rgba(20, 12, 8, .45); }
.gp-askbox b { display: block; font-size: 16px; }
.gp-askbox small { display: block; margin-top: 2px; font-size: 11px; color: #7a6a5c; }
.gp-askbox .acts { display: flex; gap: 8px; margin-top: 14px; }
.gp-askbox .acts .gp-pq { flex: 1; height: 38px; font-size: 13px; }

/* ---------- the exercise drawer: EQUIPMENT, the pins, ⚖ Plates; the session's gym ---------- */
.gp-eqrow { display: flex; align-items: center; gap: 6px; min-height: 30px; margin-top: 6px; padding-bottom: 6px; font-size: 11px;
  border-bottom: 1px solid rgba(58, 44, 35, .12); }
.gp-eqk { flex: 0 0 auto; font-size: 10px; letter-spacing: 1px; color: var(--muted, #8b8a72); }
.gp-eqname { flex: 0 1 auto; min-width: 0; font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-eqname.none { font-weight: 700; color: var(--muted, #8b8a72); }
/* just an arrowhead — no button chrome (owner, round 8) */
.gp-eqarrow { margin-left: auto; padding: 0 4px; font: inherit; font-size: 17px; line-height: 1; color: inherit; background: none; border: 0; cursor: pointer; }
.gp-eqarrow:active { color: var(--tol-terracotta, #c96f4a); }
.gp-eqsel { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.gp-eqsel select { width: 100%; padding: 4px 26px 4px 6px; font: inherit; font-size: 13px; font-weight: 800; color: inherit; cursor: pointer;
  -webkit-appearance: none; appearance: none; background: #fff; border: 2px solid var(--tol-terracotta, #c96f4a); border-radius: 3px; }
.gp-eqsel::after { content: '▾'; position: absolute; right: 8px; font-size: 12px; color: var(--muted, #8b8a72); pointer-events: none; }
.gp-pins { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 10px; }
.gp-pin { height: 32px; padding: 0; font: inherit; font-size: 12px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums;
  color: inherit; background: #fffaf0; border: 2px solid rgba(58, 44, 35, .45); border-radius: 3px; cursor: pointer; }
.gp-pin.on { color: var(--tol-cream, #f8f3e4); background: var(--tol-umber, #3a2c23); border-color: var(--tol-umber, #3a2c23); }
.gp-platebtn { display: block; width: 100%; margin-top: 10px; padding: 9px; font-size: 13px; }

/* motion, house rule: only when the phone allows it; otherwise everything simply appears */
@media (prefers-reduced-motion: no-preference) {
  .gp-sheet { animation: gpRise .26s cubic-bezier(.2, .9, .3, 1.1); }
  @keyframes gpRise { from { transform: translateY(40%); opacity: .2; } }
  .gp-thumb { transition: left .2s ease; }
  .gp-sp.inL { animation: gpInL .32s cubic-bezier(.2, .9, .3, 1.25) both; }
  .gp-sp.inR { animation: gpInR .32s cubic-bezier(.2, .9, .3, 1.25) both; }
  @keyframes gpInL { from { transform: translateX(-34px); opacity: 0; } }
  @keyframes gpInR { from { transform: translateX(34px); opacity: 0; } }
}

/* ---------- the session: the gym tag (where ⚖ Plates used to sit) + the current set ---------- */
.gs-gymwrap { position: relative; flex: 1; display: flex; }
.gs-gymwrap .gs-gymtag { flex: 1; letter-spacing: .5px; }
.gs-gymmenu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; padding: 4px; color: var(--tol-umber, #3a2c23);
  background: #f6eee4; border: 3px solid var(--tol-umber, #3a2c23); border-radius: 4px; box-shadow: 4px 4px 0 rgba(20, 12, 8, .35); }
.gs-gymopt { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 6px; font: inherit; font-size: 12.5px; font-weight: 800; text-align: left;
  color: inherit; background: none; border: 0; border-bottom: 1px solid rgba(58, 44, 35, .15); cursor: pointer; }
.gs-gymopt:last-child { border-bottom: 0; }
.gs-gymopt .dot { flex: 0 0 12px; height: 12px; border-radius: 50%; border: 2px solid var(--tol-umber, #3a2c23); }
.gs-gymopt.on .dot { background: #4f8f53; }
.gs-gymopt small { margin-left: auto; font-size: 9.5px; letter-spacing: .8px; text-transform: uppercase; color: #7a6a5c; }
/* the set the pins and the Plates sheet write to */
.gs-set.cur .gs-field:first-of-type input { border-color: var(--tol-terracotta, #c96f4a); }

/* ---------- add-ons: extra weights a stack takes on top of a pin (owner, 2026-10-17) ---------- */
.gp-addons { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 7px; }
.gp-addk { font-size: 8.5px; letter-spacing: .8px; color: #7a6a5c; margin-right: 2px; }
.gp-addon { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 4px 0 7px; font-size: 11px; font-weight: 800;
  background: #fffaf0; border: 2px solid rgba(58, 44, 35, .45); border-radius: 3px; }
.gp-addrm { padding: 0 2px; font: inherit; font-size: 11px; color: #7a6a5c; background: none; border: 0; cursor: pointer; }
.gp-addnew { height: 26px; padding: 0 8px; font: inherit; font-size: 10.5px; font-weight: 800; color: #7a6a5c; cursor: pointer;
  background: rgba(58, 44, 35, .04); border: 2px solid rgba(58, 44, 35, .25); border-radius: 3px; }
.gp-addin { width: 72px; height: 26px; padding: 0 6px; }
/* the drawer: add-on toggles under the pins */
.gp-addonbar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 6px; }
.gp-addtog { height: 32px; min-width: 52px; padding: 0 10px; font: inherit; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums;
  color: inherit; background: #fffaf0; border: 2px solid rgba(58, 44, 35, .45); border-radius: 3px; cursor: pointer; }
.gp-addtog.on { color: var(--tol-cream, #f8f3e4); background: var(--tol-terracotta, #c96f4a); border-color: var(--tol-umber, #3a2c23); }
.gp-addtog:disabled { opacity: .45; cursor: default; }
