/* BUFF OS v67 — Gym. Same shapes as the rest of the app, cooled to steel blue so
   the machine side reads as its own place without becoming a different app. */
#s-gym { --g: #8fb3d9; --grgb: 143, 179, 217; }
.gym-hero { background: linear-gradient(180deg, rgba(var(--grgb), .13), rgba(var(--grgb), .04)), var(--glass) !important;
  border: 1px solid rgba(var(--grgb), .3) !important; box-shadow: 0 14px 34px -18px rgba(var(--grgb), .45); }
.gym-hero .c100-eyebrow { color: var(--g); }
.gym-why { margin-top: 7px; font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--txt2); }
.gym-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.gym-stats div { text-align: center; padding: 9px 4px; border-radius: 13px; background: var(--elev2); border: 1px solid var(--line2); }
.gym-stats b { display: block; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gym-stats small { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--txt3); }

.gym-circ { margin-top: 12px; padding: 13px 13px 7px; border-radius: 20px; background: var(--elev1, rgba(255,255,255,.03));
  border: 1px solid var(--line2); }
.gym-circ.gym-pm { background: rgba(var(--grgb), .05); border-color: rgba(var(--grgb), .22); }
.gym-circ-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 2px 10px; }
.gym-circ-h b { font-size: 15px; font-weight: 800; }
.gym-circ-h span { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--g); }
.gym-note { margin: 0 2px 10px; font-size: 12px; line-height: 1.45; font-weight: 600; color: var(--txt3); }

.gym-ex { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-bottom: 7px;
  padding: 11px 12px; border-radius: 15px; background: var(--elev2); border: 1px solid var(--line2);
  color: var(--txt); font-family: inherit; cursor: pointer; transition: transform .15s var(--spring); }
.gym-ex:active { transform: scale(.98); }
.gym-ex.done { background: rgba(91, 185, 140, .09); border-color: rgba(91, 185, 140, .3); }
.gym-ico { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 18px; background: rgba(var(--grgb), .12); border: 1px solid rgba(var(--grgb), .2); }
.gym-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gym-t b { font-size: 14.5px; font-weight: 800; }
.gym-t small { font-size: 11.5px; font-weight: 700; color: var(--txt3); font-variant-numeric: tabular-nums; }
.gym-go { color: var(--txt3); font-size: 18px; font-weight: 700; }
.gym-n { min-width: 26px; height: 26px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #06231a; background: #5bb98c; }

.gym-walk { margin-top: 12px; }
.gym-weekbtn { width: 100%; margin-top: 14px; min-height: 46px; border-radius: 14px; font-family: inherit;
  font-size: 14px; font-weight: 800; color: var(--g); background: rgba(var(--grgb), .1);
  border: 1px solid rgba(var(--grgb), .3); cursor: pointer; }
.gym-week { margin-top: 10px; }
.gym-wd { padding: 12px 13px; margin-bottom: 8px; border-radius: 16px; background: var(--elev2); border: 1px solid var(--line2); }
.gym-wd.now { border-color: rgba(var(--grgb), .5); background: rgba(var(--grgb), .08); }
.gym-wdh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gym-wdh b { font-size: 14.5px; font-weight: 800; }
.gym-wdh span { font-size: 11.5px; font-weight: 700; color: var(--g); }
.gym-wdl { margin-top: 5px; font-size: 12px; line-height: 1.45; color: var(--txt3); font-weight: 600; }
.gym-wdp { margin-top: 4px; font-size: 11.5px; font-weight: 700; color: var(--txt3); opacity: .8; }

.gym-libcard { margin-top: 14px; }
.gym-lib { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.gym-libx { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 11px 12px;
  border-radius: 14px; background: var(--elev2); border: 1px solid var(--line2); color: var(--txt);
  font-family: inherit; text-align: left; cursor: pointer; }
.gym-libx span { font-size: 17px; }
.gym-libx b { font-size: 13.5px; font-weight: 800; line-height: 1.2; }
.gym-libx small { font-size: 11px; font-weight: 700; color: var(--txt3); font-variant-numeric: tabular-nums; }

/* the set sheet */
.gym-sheet { --g: #8fb3d9; --grgb: 143, 179, 217; padding: 4px 2px 18px; }
.gym-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.gym-emoji { font-size: 32px; line-height: 1; }
.gym-sheet h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.gym-top small { display: block; margin-top: 2px; font-size: 12px; font-weight: 700; color: var(--txt3); }
.gym-photo { margin: 0 0 12px; background: var(--elev2); border: 1px solid var(--line2); border-radius: 16px; overflow: hidden; }
.gym-photo[hidden] { display: none; }
.gym-photo img { display: block; width: 100%; aspect-ratio: 2/1; object-fit: cover; background: #11141b; }
.gym-plan { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 11px 13px;
  border-radius: 14px; background: rgba(var(--grgb), .09); border: 1px solid rgba(var(--grgb), .28); }
.gym-plan span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--txt3); }
.gym-plan b { font-size: 14.5px; font-weight: 800; color: var(--g); font-variant-numeric: tabular-nums; }
.gym-last { margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--txt3); font-variant-numeric: tabular-nums; }
.gym-field { margin-top: 14px; }
.gym-field label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--txt3); }
.gym-kg { display: flex; gap: 8px; }
.gym-kg button { width: 52px; min-height: 50px; border-radius: 14px; font-family: inherit; font-size: 20px; font-weight: 800;
  background: var(--elev2); color: var(--txt); border: 1px solid var(--line); cursor: pointer; }
.gym-kg input { flex: 1; min-width: 0; min-height: 50px; padding: 0 14px; border-radius: 14px; background: var(--elev2);
  border: 1px solid var(--line); color: var(--txt); font: inherit; font-size: 20px; font-weight: 800; text-align: center; }
.gym-reps { display: flex; flex-wrap: wrap; gap: 7px; }
.gym-reps button { flex: 1 0 auto; min-width: 56px; min-height: 46px; border-radius: 13px; font-family: inherit;
  font-size: 15px; font-weight: 800; background: var(--elev2); color: var(--txt); border: 1px solid var(--line); cursor: pointer; }
.gym-reps input { flex: 1 0 100%; min-height: 46px; padding: 0 14px; border-radius: 13px; background: var(--elev2);
  border: 1px solid var(--line); color: var(--txt); font: inherit; font-size: 15px; }
.gym-save { margin-top: 14px; background: var(--g) !important; color: #07182b !important; }
.gym-sets { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.gym-sets b { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--txt3); }
.gym-sets span { font-size: 12.5px; font-weight: 800; padding: 6px 10px; border-radius: 999px; background: var(--elev2);
  border: 1px solid var(--line2); font-variant-numeric: tabular-nums; }
.gym-undo { margin-left: auto; padding: 7px 11px; border-radius: 999px; font-family: inherit; font-size: 12px;
  font-weight: 700; color: var(--txt3); background: transparent; border: 1px solid var(--line2); }
.gym-close { width: 100%; margin-top: 14px; }

/* the ⓘ on a gym row, and the how-to it opens */
.gym-i { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 800; font-style: italic; line-height: 1;
  color: var(--txt2); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); }
.gym-i:active { transform: scale(.9); }
.gym-how { margin-top: 12px; padding: 13px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.55;
  font-weight: 600; color: var(--txt2); background: rgba(var(--grgb), .07); border: 1px solid rgba(var(--grgb), .24); }

/* photo thumbnails in place of the emoji */
.gym-ico { position: relative; width: 86px; height: 86px; border-radius: 12px; overflow: hidden; padding: 0;
  background: rgba(var(--grgb), .1); border: 1px solid rgba(var(--grgb), .2); }
.gym-emo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-style: normal; }
/* The source is two square panels side by side. A box at 200% width is exactly the
   picture's own 2:1, so nothing is cropped at all — shifting it left simply shows
   the whole END panel, machine and all. */
.gym-thumb { position: relative; display: block; width: 200%; height: 100%; margin-left: -100%;
  object-fit: cover; object-position: center; }
/* Two per row, and the panel shown whole. A square box is exactly one panel's
   shape, so at 200% width nothing is cut off — the heads stopped being cropped
   off the top the moment the box stopped being a letterbox. */
.gym-libthumb { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px;
  overflow: hidden; margin-bottom: 8px; background: rgba(var(--grgb), .1); border: 1px solid rgba(var(--grgb), .18); }
.gym-libx { padding: 9px 9px 11px; }
/* A tile with no photograph (walking) should not be an empty square with a speck in it. */
.gym-libthumb .gym-emo { font-size: 44px; }
.gym-ico .gym-emo { font-size: 30px; }
/* A single-scene photograph (the walk) is shown whole, not halved. */
.gym-thumb.gym-thumb-1 { width: 100%; margin-left: 0; object-position: 44% center; }
