/* gym/gym.css — Gym 2.0 styles. Colours live here as rules (never inline) so look.js's
   Glow-light / Fluid / accent rewrites reach them. Mint is Gym's colour. */
:root {
  --g-mint: #6ee7b7;
  --g-mint-soft: rgba(110, 231, 183, 0.14);
  --g-sky: #7dd3fc;
  --g-amber: #fbbf24;
  --g-red: #ff8a8a;
  --g-ink: #ffffff;
  --g-ink-2: rgba(255, 255, 255, 0.62);
  --g-ink-3: rgba(255, 255, 255, 0.42);
  --g-line: rgba(255, 255, 255, 0.08);
  --g-line-2: rgba(255, 255, 255, 0.14);
  --g-well: rgba(0, 0, 0, 0.28);
  --g-glass: rgba(255, 255, 255, 0.04);
  --g-sheet: #121215;
  --g-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* ---- header + tabs */
.g-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.g-head-actions { display: flex; gap: 8px; }
.g-plus { font-size: 22px; font-weight: 500; color: var(--g-ink); }
.g-coach-btn { color: var(--g-mint); }
.g-tabs {
  position: sticky; top: 0; z-index: 6; display: flex; gap: 3px; padding: 4px; margin: 0 0 16px;
  background: rgba(14, 14, 17, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--g-line); border-radius: 12px;
}
.g-tabs button {
  flex: 1; min-height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--g-ink-3);
  font-weight: 600; font-size: 13px; line-height: 1; font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.g-tabs button[aria-selected="true"] {
  background: linear-gradient(180deg, #ffffff 0%, #e8e5dd 100%); color: #0a0a0b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.35);
}
.g-tabs button:focus-visible, .g-btn:focus-visible, .g-chip:focus-visible { outline: 2px solid var(--g-mint); outline-offset: 2px; }

/* ---- text */
.g-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--g-ink-3); }
.g-title { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin: 4px 0; color: var(--g-ink); }
.g-meta { font-size: 13px; color: var(--g-ink-2); }
.g-muted { color: var(--g-ink-3); }
.g-num { font-family: var(--g-mono); font-variant-numeric: tabular-nums; }
.g-section { margin: 22px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.g-empty { padding: 18px; border: 1px dashed var(--g-line-2); border-radius: 14px; color: var(--g-ink-2); font-size: 14px; line-height: 1.45; text-align: center; }
.g-note { font-size: 12.5px; line-height: 1.45; color: var(--g-amber); }
.g-ok { color: var(--g-mint); }

/* ---- buttons + chips */
.g-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border-radius: 12px; border: 1px solid var(--g-line); background: var(--g-glass); color: var(--g-ink);
  font-weight: 600; font-size: 14px; line-height: 1; font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.g-btn:active { transform: scale(0.98); }
.g-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.g-btn-primary { border-color: rgba(255, 255, 255, 0.85); background: linear-gradient(180deg, #ffffff 0%, #e8e5dd 100%); color: #0a0a0b; }
.g-btn-mint { border-color: transparent; background: var(--g-mint); color: #0a0a0b; box-shadow: 0 8px 26px -10px rgba(110, 231, 183, 0.55); }
.g-btn-ghost { background: transparent; }
.g-btn-danger { color: var(--g-red); border-color: rgba(255, 138, 138, 0.3); background: transparent; }
.g-btn-block { width: 100%; }
.g-btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.g-icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--g-ink-2); font-size: 20px; cursor: pointer; border-radius: 10px; }
.g-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.g-chips::-webkit-scrollbar { display: none; }
.g-chip {
  flex: none; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--g-line);
  background: transparent; color: var(--g-ink-2); font-weight: 600; font-size: 12.5px; line-height: 1; font-family: inherit; cursor: pointer; white-space: nowrap;
}
.g-chip.is-on { background: var(--g-mint-soft); border-color: rgba(110, 231, 183, 0.45); color: var(--g-mint); }
.g-tag { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--g-glass); color: var(--g-ink-2); border: 1px solid var(--g-line); }
.g-tag-mint { color: var(--g-mint); border-color: rgba(110, 231, 183, 0.35); background: var(--g-mint-soft); }
.g-tag-amber { color: var(--g-amber); border-color: rgba(251, 191, 36, 0.35); }

/* ---- form fields */
.g-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.g-field > label, .g-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--g-ink-3); }
.g-input, .g-field textarea, .g-field select, .g-field input {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--g-line);
  background: var(--g-well); color: var(--g-ink); font-weight: 500; font-size: 15px; line-height: 1.35; font-family: inherit; resize: none;
}
.g-input:focus, .g-field :is(textarea, select, input):focus { outline: none; border-color: rgba(255, 255, 255, 0.4); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06); }
.g-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.g-row2 > * { min-width: 0; }
/* iOS Safari gives date inputs a fixed native width that ignores width: 100%, so in a
   two-column row it ran into the next field. Drop the native look and let it shrink. */
.g-field input[type="date"], .g-input[type="date"] {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%;
  height: 44px; text-align: left;
}
input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.g-seg { display: flex; background: var(--g-glass); border: 1px solid var(--g-line); border-radius: 12px; padding: 3px; gap: 3px; }
.g-seg button { flex: 1; min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--g-ink-3); font-weight: 600; font-size: 13px; line-height: 1; font-family: inherit; cursor: pointer; }
.g-seg button.is-on { background: linear-gradient(180deg, #ffffff 0%, #e8e5dd 100%); color: #0a0a0b; }

/* ---- lists */
.g-list { display: flex; flex-direction: column; }
.g-li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 2px; border-bottom: 1px solid var(--g-line); background: transparent; border-left: 0; border-right: 0; border-top: 0; color: var(--g-ink); text-align: left; font: inherit; width: 100%; cursor: pointer; }
.g-li:last-child { border-bottom: 0; }
.g-li-main { flex: 1; min-width: 0; }
.g-li-title { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.g-li-sub { font-size: 12.5px; color: var(--g-ink-3); margin-top: 2px; overflow-wrap: anywhere; }

/* ---- bars (coverage, progress) */
.g-bar { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 10px; min-height: 28px; font-size: 13px; }
.g-bar-label { color: var(--g-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-bar-track { position: relative; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.g-bar-band { position: absolute; top: 0; bottom: 0; background: rgba(110, 231, 183, 0.16); }
.g-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--g-ink-3); }
.g-bar-fill.is-in { background: var(--g-mint); }
.g-bar-fill.is-over { background: var(--g-sky); }
.g-bar-val { font-family: var(--g-mono); font-size: 12px; color: var(--g-ink-2); font-variant-numeric: tabular-nums; }

/* ---- sheets (topbar.js OVERLAYS has .gym-sheet-bg) */
.gym-sheet-bg {
  position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity 0.18s ease; pointer-events: none;
}
.gym-sheet-bg.show { opacity: 1; pointer-events: auto; }
.gym-sheet {
  width: 100%; max-width: 560px; max-height: 88vh; display: flex; flex-direction: column;
  background: var(--g-sheet); border: 1px solid var(--g-line); border-bottom: 0; border-radius: 20px 20px 0 0;
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.7); transform: translateY(16px); transition: transform 0.2s ease;
  padding-bottom: env(safe-area-inset-bottom);
}
.gym-sheet-bg.show .gym-sheet { transform: none; }
.gym-sheet.is-full { max-height: none; height: 100%; border-radius: 0; }
@media (min-width: 640px) {
  .gym-sheet-bg { align-items: center; }
  .gym-sheet, .gym-sheet.is-full { border-radius: 20px; border-bottom: 1px solid var(--g-line); height: auto; max-height: 90vh; }
}
.gym-sheet-head { display: flex; align-items: center; gap: 4px; padding: 6px 8px 6px 4px; border-bottom: 1px solid var(--g-line); padding-top: max(6px, env(safe-area-inset-top)); }
.gym-sheet:not(.is-full) .gym-sheet-head { padding-top: 6px; }
.gym-sheet-title { flex: 1; margin: 0; font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gym-sheet-tools { display: flex; gap: 6px; }
.gym-sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 14px 16px 18px; }
.gym-sheet-foot { display: flex; gap: 8px; padding: 10px 16px 12px; border-top: 1px solid var(--g-line); }
.gym-sheet-foot .g-btn { flex: 1; }

/* ---- toast */
.g-toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 1300; transform: translate(-50%, 10px);
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 10px 14px; border-radius: 12px;
  background: #1c1c21; border: 1px solid var(--g-line-2); color: var(--g-ink); font-size: 14px; opacity: 0; transition: opacity 0.18s, transform 0.18s;
}
.g-toast.show { opacity: 1; transform: translate(-50%, 0); }
.g-toast button { border: 0; background: transparent; color: var(--g-mint); font-weight: 700; font-size: 14px; line-height: 1; font-family: inherit; cursor: pointer; min-height: 32px; }

/* ---- drag */
.is-dragging { opacity: 0.85; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); position: relative; z-index: 2; }
.g-drop-target { outline: 2px dashed rgba(110, 231, 183, 0.6); outline-offset: 2px; }
.g-ghost { position: fixed; z-index: 1400; pointer-events: none; }

/* ---- body card when mounted in Progress */
#gBody .wt-section { margin-bottom: 0; }

.g-danger-text { color: var(--g-red); }
img, video, canvas, svg { max-width: 100%; }

/* ---- shared small helpers */
.g-mt { margin-top: 12px; }
.g-wrap { flex-wrap: wrap; overflow: visible; }

/* ---- workouts */
.wl-top { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
.wl-top .wl-search { flex: 1; }
.wl-chips { margin-bottom: 14px; }
.wl-card { padding: 16px; }
.wl-card.is-archived { opacity: 0.6; }
.wl-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wl-name { margin: 0; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.wl-muscles, .wl-last { font-size: 12.5px; margin-top: 4px; }
.wl-actions { display: grid; grid-template-columns: 1fr 1fr 48px; gap: 8px; margin-top: 14px; }
.wl-more { padding: 0; font-size: 18px; }
.wl-arch { margin: 6px 0 12px; }
.we-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.we-item { border: 1px solid var(--g-line); border-radius: 14px; background: var(--g-glass); }
.we-item.is-open { border-color: var(--g-line-2); }
.we-row { display: flex; align-items: center; }
.we-drag { flex: none; width: 44px; height: 52px; border: 0; background: transparent; color: var(--g-ink-3); font-size: 18px; cursor: grab; touch-action: none; }
.we-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 4px; border: 0; background: transparent; color: var(--g-ink); text-align: left; font: inherit; cursor: pointer; }
.we-name { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.we-sum { font-size: 12.5px; color: var(--g-ink-3); font-family: var(--g-mono); }
.we-caret { flex: none; width: 36px; text-align: center; color: var(--g-ink-3); }
.we-body { padding: 4px 12px 12px; border-top: 1px solid var(--g-line); }
.we-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; margin-top: 10px; }
.we-pair { display: flex; align-items: center; gap: 6px; }
.we-pair span { color: var(--g-ink-3); }
.we-pair input { min-width: 0; }
.we-hint { font-size: 12.5px; margin: 0 0 10px; }
.we-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.we-add { border-style: dashed; }
.gp-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 10px 0 6px; }
.gp-filters select { font-size: 13px; padding: 8px; min-height: 40px; }
.gp-only { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 13px; color: var(--g-ink-2); }
.gp-results { margin-top: 6px; }
.gp-row { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 6px 0 6px 2px; border-bottom: 1px solid var(--g-line); cursor: pointer; }
.gp-row:focus-visible { outline: 2px solid var(--g-mint); outline-offset: -2px; }
.gp-info { flex: none; font-size: 18px; }
.xd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.xd-cues { margin: 6px 0 0; padding-left: 18px; color: var(--g-ink-2); font-size: 14px; line-height: 1.5; }
.xd-hist { cursor: default; }
.we-wide { grid-column: 1 / -1; }
.g-view .g-input { background: rgba(12, 12, 15, 0.86); }

/* ---- program */
.pg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pg-next { margin-top: 12px; border-top: 1px solid var(--g-line); }
.pg-next-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--g-line); }
.pg-next-row span:last-child { text-align: right; overflow-wrap: anywhere; }
.pg-actions { margin-top: 14px; display: flex; }
.pg-actions .g-btn { flex: 1; }
.pg-review { padding: 6px 16px; }
.pg-review-head { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 48px; border: 0; background: transparent; color: var(--g-ink); font: inherit; text-align: left; cursor: pointer; }
.pg-review-head .g-meta { flex: 1; }
.pg-note { font-size: 12.5px; margin: 4px 0 10px; line-height: 1.45; }
.pg-others, .pg-settings { padding: 4px 16px; }
.pg-other .g-btn { flex: none; }
.pg-units .g-seg { width: 120px; }
.gb-schedule button { font-size: 12.5px; }
.gb-days { display: flex; flex-direction: column; gap: 8px; }
.gb-day { border: 1px solid var(--g-line); border-radius: 14px; padding: 10px 12px; background: var(--g-glass); transition: outline-color 0.15s; }
.gb-day.is-rest { background: transparent; border-style: dashed; }
.gb-day-head { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.gb-day-name { font-weight: 700; font-size: 14px; width: 40px; }
.gb-label { flex: 1; min-height: 36px; padding: 6px 10px; font-size: 14px; }
.gb-min { margin-left: auto; font-size: 12.5px; font-family: var(--g-mono); }
.gb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.gb-chips:empty { display: none; }
.gb-chip {
  min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(110, 231, 183, 0.35); background: var(--g-mint-soft);
  color: var(--g-ink); font-weight: 600; font-size: 13.5px; line-height: 1.2; font-family: inherit; cursor: grab; touch-action: manipulation; -webkit-user-select: none; user-select: none;
}
.gb-day-acts { display: flex; gap: 6px; }
.gb-add-day { border-style: dashed; }
.gb-f { border-left: 3px solid var(--g-line-2); padding: 8px 0 8px 10px; margin-bottom: 8px; }
.gb-f.is-error { border-left-color: var(--g-red); }
.gb-f.is-warn { border-left-color: var(--g-amber); }
.gb-f.is-info { border-left-color: var(--g-sky); }
.gb-f-msg { font-size: 13.5px; line-height: 1.45; color: var(--g-ink-2); }
.gb-f-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.gb-ok { font-size: 13.5px; }
.gb-ignored summary { cursor: pointer; color: var(--g-ink-3); font-size: 13px; min-height: 36px; display: flex; align-items: center; }
.pr-grid { display: flex; flex-direction: column; gap: 8px; }
.pr-row { display: grid; grid-template-columns: minmax(0, 1fr) 210px; align-items: center; gap: 8px; }
.pr-name { font-size: 14px; display: flex; flex-direction: column; }
.pr-band { font-size: 11.5px; font-family: var(--g-mono); }
.pr-row .g-seg button { font-size: 11.5px; min-height: 34px; padding: 0 2px; }
.pr-x { width: 28px; height: 28px; font-size: 16px; color: inherit; }
.gy-radio { color: var(--g-mint); font-size: 18px; }
.g-input.is-bad, .g-field .is-bad { border-color: var(--g-red); }
.ob-lead { font-size: 20px; font-weight: 700; margin: 0 0 14px; }
.ob-card { border: 1px solid var(--g-line-2); border-radius: 16px; padding: 14px; margin-bottom: 10px; background: var(--g-glass); }
.ob-card .g-meta { margin: 6px 0 12px; line-height: 1.45; }
.ob-foot { text-align: center; }
.gym-sheet:focus { outline: none; }

/* ---- today */
.td-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.td-top-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.td-prog { color: var(--g-ink-2); }
.td-ready-slot { display: contents; }
.td-ready { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--g-line); color: var(--g-ink-2); }
.td-ready.is-good { color: var(--g-mint); border-color: rgba(110, 231, 183, 0.35); }
.td-ready.is-mid { color: var(--g-amber); border-color: rgba(251, 191, 36, 0.35); }
.td-ready.is-low { color: var(--g-red); border-color: rgba(255, 138, 138, 0.35); }
.td-missed { border: 1px solid rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.07); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.td-missed p { margin: 0 0 10px; font-size: 14px; color: var(--g-ink); }
.td-two { display: flex; gap: 8px; flex-wrap: wrap; }
.td-two .g-btn { flex: 1; }
.td-hero { padding: 20px; }
.td-hero .g-title { font-size: 26px; }
.td-row + .td-row { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--g-line); }
.td-muscles { margin-bottom: 2px; }
.td-cta { margin-top: 16px; min-height: 52px; font-size: 16px; }
.td-live { color: var(--g-mint); }
.td-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.td-stat { display: flex; flex-direction: column; gap: 4px; }
.td-num { font-size: 22px; font-weight: 700; color: var(--g-ink); }
.td-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.td-hint { font-size: 11.5px; }
.td-more { margin-top: 6px; }
.td-next-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; border-bottom: 1px solid var(--g-line); }
.td-next-row:last-child { border-bottom: 0; }
.td-next-row span:last-child { text-align: right; overflow-wrap: anywhere; }

/* ---- live workout (topbar.js OVERLAYS has .gym-session) */
.gym-session {
  position: fixed; inset: 0; z-index: 1100; display: none; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: var(--bg, #0a0a0b); padding: env(safe-area-inset-top) 16px calc(120px + env(safe-area-inset-bottom));
}
.gym-session.show { display: block; }
.gs-top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 4px; margin: 0 -16px; padding: 6px 8px; background: rgba(10, 10, 11, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--g-line); }
.gs-top .g-icon { font-size: 26px; color: var(--g-ink); }
.gs-title { flex: 1; min-width: 0; text-align: center; }
.gs-name { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-clock { font-size: 12px; color: var(--g-ink-3); }
.gs-dots { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; padding: 12px 0 4px; }
.gs-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--g-line-2); background: transparent; padding: 0; cursor: pointer; }
.gs-dot.is-done { background: var(--g-mint); border-color: var(--g-mint); }
.gs-dot.is-skip { border-style: dashed; opacity: 0.5; }
.gs-dot.is-cur { border-color: var(--g-ink); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12); }
.gs-ex { margin-top: 8px; }
.gs-ex-name { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: var(--g-ink); font-weight: 700; font-size: 24px; line-height: 1.2; font-family: inherit; text-align: left; letter-spacing: -0.01em; cursor: pointer; overflow-wrap: anywhere; }
.gs-presc { margin: 4px 0 12px; }
.gs-today { border: 1px solid var(--g-line); border-radius: 14px; padding: 10px 12px; background: var(--g-glass); margin-bottom: 12px; }
.gs-tr { display: grid; grid-template-columns: 76px 1fr; gap: 8px; padding: 5px 0; font-size: 14px; line-height: 1.4; }
.gs-tl { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--g-ink-3); padding-top: 2px; }
.gs-hint { font-size: 12px; margin: 4px 0 0; }
.gs-head, .gs-set { display: grid; grid-template-columns: 34px 56px minmax(0, 1fr) minmax(0, 1fr) 48px 48px; gap: 6px; align-items: center; }
.gs-head { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--g-ink-3); padding: 0 0 4px; }
.gs-set { min-height: 52px; padding: 2px 0; border-radius: 10px; }
.gs-set.is-done { background: rgba(110, 231, 183, 0.08); }
.gs-type { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--g-line); background: transparent; color: var(--g-ink-2); font-weight: 700; font-size: 13px; line-height: 1; font-family: inherit; }
.gs-last { font-size: 12px; color: var(--g-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-set input { width: 100%; min-width: 0; height: 44px; border-radius: 10px; border: 1px solid var(--g-line); background: var(--g-well); color: var(--g-ink); font-weight: 700; font-size: 17px; line-height: 1; font-family: inherit; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.gs-set input::-webkit-outer-spin-button, .gs-set input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gs-set input:focus { outline: none; border-color: rgba(255, 255, 255, 0.45); }
.gs-set.is-done input { color: var(--g-mint); border-color: transparent; background: transparent; }
.gs-done { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--g-line-2); background: transparent; color: var(--g-ink-3); font-size: 20px; cursor: pointer; }
.gs-set.is-done .gs-done { background: var(--g-mint); border-color: var(--g-mint); color: #0a0a0b; }
.gs-wu { display: flex; width: 100%; min-height: 40px; align-items: center; border: 0; background: transparent; color: var(--g-ink-3); font-weight: 600; font-size: 13px; line-height: 1; font-family: inherit; padding: 0; cursor: pointer; }
.g-live { margin: 10px 0 0; font-size: 13.5px; font-weight: 600; color: var(--g-ink-2); }
.g-live[data-label="ahead"], .g-live[data-label="target"] { color: var(--g-mint); }
.g-live[data-label="target"] { font-weight: 800; }
.g-live[data-label="behind"] { color: var(--g-amber); }
.g-live[data-label="na"] { color: var(--g-ink-3); font-weight: 500; }
.gs-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.gs-next { min-height: 52px; font-size: 16px; }
.gs-done-strip { display: block; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 10px; border-radius: 12px; border: 1px solid rgba(110, 231, 183, 0.35); background: var(--g-mint-soft); color: var(--g-ink); font-weight: 500; font-size: 13px; line-height: 1.4; font-family: inherit; cursor: pointer; }
.gs-complete { border: 1px solid rgba(110, 231, 183, 0.35); border-radius: 16px; padding: 14px; background: var(--g-mint-soft); }
.gs-prs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.gs-nexttime { margin: 12px 0; padding-top: 10px; border-top: 1px solid var(--g-line); }
.gs-sug { font-size: 15px; line-height: 1.45; margin: 6px 0 10px; }
.gs-decide, .gs-editnext { display: flex; gap: 8px; margin-bottom: 4px; }
.gs-decide .g-btn, .gs-editnext .g-btn { flex: 1; }
.gs-editnext input { flex: 1; }
.gs-decided { margin: 0 0 6px; font-size: 14px; }
.gs-bridge { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.gs-opt { display: flex; align-items: flex-start; gap: 10px; min-height: 40px; font-size: 14px; line-height: 1.35; padding: 6px 0; }
.gs-opt input { margin-top: 3px; width: 18px; height: 18px; accent-color: #6ee7b7; flex: none; }
.gs-seesets { margin-top: 8px; width: 100%; }
.g-rest {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1150;
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; background: #1c1c21; border: 1px solid var(--g-line-2); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.g-rest button { min-width: 44px; height: 40px; border-radius: 999px; border: 0; background: transparent; color: var(--g-ink-2); font-weight: 700; font-size: 13px; line-height: 1; font-family: inherit; cursor: pointer; }
.g-rest-t { white-space: nowrap; padding: 0 10px; font-size: 15px; font-weight: 700; color: var(--g-ink); }
.g-rest-t.is-done { color: var(--g-mint); }
.gs-plates { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.gs-plate { padding: 10px 12px; border-radius: 10px; background: var(--g-glass); border: 1px solid var(--g-line-2); font-weight: 700; font-family: var(--g-mono); }
.gs-shorten-row { display: grid; grid-template-columns: auto 80px auto 1fr; gap: 8px; align-items: center; margin: 10px 0; font-size: 14px; }
.gs-hurt-msg { font-size: 15px; line-height: 1.5; padding: 12px; border-radius: 12px; border: 1px solid rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.07); margin: 14px 0 12px; }
.gs-tier { margin: 16px 0 4px; font-size: 13px; font-weight: 700; color: var(--g-ink-2); }

.gs-prs .g-tag { text-transform: none; letter-spacing: 0; font-size: 12px; }

/* ---- progress */
.pg-ranges { margin-bottom: 10px; }
.pg-subs { margin-bottom: 14px; }
.pg-subs .g-seg button { font-size: 12.5px; }
.pg-grid-wrap { margin: 10px 0 4px; }
.pg-grid-wrap.is-wide { overflow-x: auto; padding-bottom: 4px; }
.pg-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 10px); gap: 3px; }
.pg-grid-wrap:not(.is-wide) .pg-grid { grid-template-rows: repeat(7, minmax(10px, 1fr)); }
.pg-cell { display: block; min-height: 8px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); aspect-ratio: 1 / 1; }
.pg-cell.is-on { background: var(--g-mint); }
.pg-cell.is-future, .pg-cell.is-out { background: transparent; }
.pg-totals { margin-top: 14px; }
.pg-totals .td-stat { flex-direction: column-reverse; }
.pg-recent { padding: 4px 16px; }
.pg-ex { padding: 8px 0; border-bottom: 1px solid var(--g-line); }
.pg-ex:last-child { border-bottom: 0; }
.pl-chart { min-height: 150px; }
.pl-svg { display: block; overflow: visible; }
.pl-line { stroke: var(--g-mint); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pl-dot { fill: #0a0a0b; stroke: var(--g-mint); stroke-width: 2; }
.pl-lab { fill: var(--g-ink-3); font-size: 10px; font-family: var(--g-mono); }
.pl-cap { font-size: 12px; margin: 8px 0 0; }
.pl-empty { font-size: 13px; }
.pl-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--g-line); font-size: 14px; }
.pl-row:last-child { border-bottom: 0; }
.pl-pr { padding: 8px 0; border-bottom: 1px solid var(--g-line); }
.pl-pr:last-child { border-bottom: 0; }
.pl-pr-v { font-size: 18px; font-weight: 700; }
.pl-rule { font-size: 12px; margin-top: 2px; }
.pl-log { cursor: default; }
.pm-row { padding: 12px 16px; }
.pm-strip { display: flex; align-items: flex-end; gap: 4px; height: 28px; margin: 8px 0 6px 102px; }
.pm-wk { flex: 1; min-height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); }
.pm-wk.is-in { background: var(--g-mint); }
.pm-meta { font-size: 12px; line-height: 1.4; }
.g-li-title, .g-li-sub { display: block; }

/* an element with [hidden] stays hidden even when its class sets display */
[hidden] { display: none !important; }
.we-caret { width: 24px; }
.we-x { flex: none; width: 44px; height: 52px; border: 0; background: transparent; color: var(--g-ink-3); font-size: 22px; line-height: 1; cursor: pointer; border-radius: 10px; }
.we-x:hover, .we-x:focus-visible { color: var(--g-red); }

/* ---- dragging (GymUI.sortable / dragChip): the whole item lifts and follows, others slide aside */
.we-item, .gb-chip, .gs-ro, .gb-day { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.g-dragging, body.g-dragging * { -webkit-user-select: none !important; user-select: none !important; cursor: grabbing !important; }
.is-shifting { transition: transform 0.16s ease; }
.is-lifted { position: relative; z-index: 20; transition: none; box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.65); border-color: rgba(110, 231, 183, 0.45) !important; }
.is-lifted.is-settling { transition: transform 0.17s ease; box-shadow: none; }
.g-no-anim { transition: none !important; }
.is-dragging { opacity: 1; box-shadow: none; }
.is-placeholder { opacity: 0.3; outline: 1px dashed var(--g-line-2); outline-offset: 2px; }
.g-ghost {
  position: fixed; left: 0; top: 0; z-index: 1400; pointer-events: none; margin: 0;
  box-shadow: 0 16px 34px -8px rgba(0, 0, 0, 0.6); transition: none; will-change: transform;
}
.g-ghost.is-landing { transition: transform 0.18s ease; }
.g-drop-target { outline: 2px solid rgba(110, 231, 183, 0.7); outline-offset: 2px; background: var(--g-mint-soft); }
.we-drag { cursor: grab; }
.gs-ro { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 6px 10px; margin-bottom: 6px; border: 1px solid var(--g-line); border-radius: 12px; background: var(--g-glass); }
.gs-ro .gs-ro-grip { color: var(--g-ink-3); font-size: 18px; width: 24px; text-align: center; }
.gs-ro .g-li-main { flex: 1; }
