/* Gym Pal holding page. Style follows the Hyrox training app: stone background, yellow accent,
   Barlow Condensed headings, Inter body, automatic dark mode. */
:root {
  --bg: #f2f3ef; --surface: #ffffff; --ink: #15191d; --muted: #5d6670; --line: #dadcd5;
  --accent: #e6b000; --accent-ink: #1a1500; --link: #1b4ddb; --chip: #e8eae3;
  --good: #1e7f4f; --bad: #b3261e;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101316; --surface: #181c20; --ink: #eceff1; --muted: #9aa4ae; --line: #2a3036;
    --accent: #f2c230; --accent-ink: #1a1500; --link: #7fa2ff; --chip: #232930;
    --good: #5bcb92; --bad: #ff8a80;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--body);
  min-height: 100vh; min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
           max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.wrap { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: .01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 8vw, 46px); line-height: 1.02; }
h2 { font-size: 24px; line-height: 1.1; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.lead { margin-top: 12px; font-size: 16px; color: var(--muted); }

.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mark { font: 700 26px/1 var(--display); letter-spacing: .02em; }
.chip { display: inline-block; background: var(--chip); border-radius: 3px; padding: 2px 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip.a { background: var(--accent); color: var(--accent-ink); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack .muted { margin-top: 4px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.between { justify-content: space-between; }

label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 500; }
input {
  font: 400 16px var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 4px; padding: 10px 12px; width: 100%; min-height: 44px;
}
.btn {
  font: 600 14px var(--body); background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 4px;
  padding: 10px 18px; min-height: 44px; cursor: pointer;
}
.btn.ghost { background: var(--chip); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.link { background: none; border: 0; padding: 8px 0; color: var(--link); font: 500 14px var(--body); cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.status { font-size: 13px; min-height: 0; }
.status:empty { display: none; }
.status.bad { color: var(--bad); }
.status.good { color: var(--good); }
[hidden] { display: none !important; }
