/* HYROX RDU · shared styles for the account and owner pages (the home page inlines its own). */
:root {
  --bg: #0d0c11; --surface: #15141b; --raised: #1e1d25; --fg: #ffffff; --muted: #9b9ca8; --line: #2a2933;
  --accent: #eafb04; --accent-fg: #0d0c11; --ok: #3fd29c; --warn: #ffb020; --bad: #ff6b6b;
  --font-display: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Hanken Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gut { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1040px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; line-height: 0.95; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(48px, 7vw, 84px); }
h2 { font-size: 34px; }
h3 { font-size: 24px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

.topnav { position: sticky; z-index: 100; top: calc(12px + env(safe-area-inset-top, 0px)); padding-top: 12px; }
.navpill { display: flex; align-items: center; gap: 12px; background: #fff; color: #0d0c11; border-radius: 12px; padding: 6px 6px 6px 16px; box-shadow: 0 10px 40px rgb(0 0 0 / 0.35); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #0d0c11; }
.brand b { font-family: var(--font-display); font-weight: 400; font-size: 26px; letter-spacing: 0.02em; white-space: nowrap; }
.strip { display: grid; grid-template-columns: repeat(16, 1fr); gap: 2px; width: 44px; height: 16px; }
.strip i { background: #0d0c11; border-radius: 1px; } .strip i:nth-child(even) { background: var(--accent); }
.navlinks { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.navlinks a { color: #0d0c11; text-decoration: none; font-size: 14px; font-weight: 500; padding: 9px 12px; border-radius: 8px; white-space: nowrap; }
.navlinks a:hover { background: #f1f1f4; }
.navlinks a[aria-current=page] { background: #0d0c11; color: #fff; font-weight: 700; }

main { padding-block: 56px 64px; display: grid; gap: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: grid; gap: 14px; min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.pillbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; border: 1.5px solid #fff; background: #fff; color: #0d0c11; white-space: nowrap; }
.pillbtn:hover { background: #ececf1; }
.pillbtn.ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.45); }
.pillbtn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.pillbtn.small { padding: 8px 14px; font-size: 13px; }
.pillbtn:disabled { opacity: 0.5; cursor: not-allowed; }
label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--fg); background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; min-width: 0; }
textarea { resize: vertical; }
.field { display: grid; gap: 6px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > input { flex: 1 1 240px; }
.note { font-size: 14px; color: var(--muted); }
.formnote { font-size: 14px; font-weight: 600; min-height: 1.4em; margin: 0; }
.list { list-style: none; margin: 0; padding: 0; display: grid; }
.list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .t { font-weight: 700; }
.list .s { font-size: 13px; color: var(--muted); }
.badge { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.badge.pending { color: var(--warn); } .badge.approved { color: var(--ok); } .badge.rejected { color: var(--bad); }
.empty { color: var(--muted); padding: 10px 0; }
.banner { border: 1px dashed var(--line); border-radius: 14px; padding: 14px 16px; color: var(--muted); font-size: 14px; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: #fff; color: #0d0c11; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.suggest { border: 1px solid var(--line); border-radius: 12px; background: var(--raised); max-height: 260px; overflow-y: auto; }
.suggest button { display: flex; justify-content: space-between; width: 100%; border: 0; background: none; color: var(--fg); padding: 10px 12px; font: inherit; text-align: left; cursor: pointer; gap: 10px; }
.suggest button:hover { background: var(--surface); }
.hours { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 12px; align-items: center; }
footer { border-top: 1px solid var(--line); padding-block: 26px; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .grid2 { grid-template-columns: minmax(0, 1fr); } .hours { grid-template-columns: 90px minmax(0, 1fr); } }
@media (max-width: 520px) { .brand b { font-size: 21px; } .strip { width: 30px; gap: 1px; } .navlinks a { padding: 8px 7px; font-size: 13px; } .card { padding: 20px; } }
@media (max-width: 520px) { .brand img { height: 20px !important; } .navpill { padding-left: 12px; gap: 6px; } }
@media (max-width: 380px) { .navlinks a:last-child:not([aria-current]) { display: none; } }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--raised); border-radius: 14px; padding: 14px 16px; display: grid; gap: 2px; }
.kpi b { font-family: var(--font-display); font-weight: 400; font-size: 42px; line-height: 1; color: var(--accent); }
.kpi span { font-size: 13px; color: var(--muted); }
