/* AnyGym phone/web screens. Fills the phone edge to edge at 466x678 and 890x626 (Nik's iPhone, both ways); no sideways scroll. */
:root {
  --bg: #101418; --card: #1a2027; --line: #2a323b; --text: #eef2f5; --muted: #9aa6b2; --accent: #4cc38a; --accent-text: #08110c; --warn: #f0b35a;
  --pad: max(16px, env(safe-area-inset-left)); --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 17px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-text-size-adjust: 100%; }
#app { min-height: 100dvh; width: 100%; display: flex; flex-direction: column; padding: env(safe-area-inset-top) var(--pad) env(safe-area-inset-bottom); overflow-x: hidden; }
.loading { margin: auto; color: var(--muted); }
h1 { font-size: 2rem; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: 1.15rem; margin: 0 0 8px; }
p { margin: 0; }
.muted { color: var(--muted); }
.btn { display: block; width: 100%; min-height: 52px; border: 0; border-radius: var(--radius); font: inherit; font-weight: 600; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--accent-text); }
.btn.quiet { background: transparent; color: var(--muted); min-height: 44px; width: auto; padding: 0 12px; }
.btn:disabled { opacity: 0.6; }

/* Signed out */
.welcome { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 24px 0; max-width: 560px; width: 100%; margin: 0 auto; }
.welcome .pitch { font-size: 1.1rem; color: var(--muted); }
.welcome .actions { display: flex; flex-direction: column; gap: 12px; }
.welcome .fine { font-size: 0.85rem; color: var(--muted); text-align: center; }
.note { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: var(--radius); padding: 12px 14px; }

/* Signed in */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.top .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 0.95rem; }
.page { flex: 1; padding: 16px 0 24px; display: flex; flex-direction: column; gap: 12px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; }
.list .when { color: var(--muted); font-size: 0.9rem; }
.list .what { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.list .nums { color: var(--muted); font-size: 0.9rem; text-align: right; white-space: nowrap; }
@media (min-width: 760px) { .list { grid-template-columns: 1fr 1fr; } }
