:root {
  --navy: #17294e; --navy-2: #22396a; --green: #00b04f; --blue: #00b8e6;
  --bg: #f3f5f8; --surface: #ffffff; --text: #17294e; --muted: #5d6b82; --line: #d6dce5; --bad: #b42318;
  --bar: 64px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1726; --surface: #18233a; --text: #e8edf6; --muted: #9aa8bf; --line: #2a3a5c; --bad: #ff8a80; }
}
* { box-sizing: border-box; }
html, body, #root { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font-family: "Source Sans 3", "Source Sans Pro", -apple-system, Helvetica, Arial, sans-serif; font-size: 16px; -webkit-text-size-adjust: 100%; }
h1, h2 { font-family: "Fjalla One", "Source Sans 3", sans-serif; font-weight: 400; letter-spacing: .02em; margin: 0 0 6px; }
button { font: inherit; cursor: pointer; }
.muted { color: var(--muted); }
.bad { color: var(--bad); font-weight: 600; }

/* sign in */
.loginPage { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.loginCard { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.loginLogo { width: 200px; max-width: 70%; align-self: center; margin-bottom: 4px; background: #fff; padding: 6px; }
.loginCard h1 { text-align: center; font-size: 24px; }
.loginCard label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.loginCard label.check { flex-direction: row; align-items: center; font-weight: 400; }
.loginCard input[type=email], .loginCard input[type=password], .loginCard input[type=text] { font: inherit; font-size: 17px; padding: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.loginCard input[type=checkbox] { width: 20px; height: 20px; }
button.primary { background: var(--navy); color: #fff; border: 0; padding: 14px; font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
@media (prefers-color-scheme: dark) { button.primary { background: var(--blue); color: #0b1424; } }
.loginCard button:not(.primary), .soon button, .ghost { background: transparent; color: var(--text); border: 1px solid var(--line); padding: 10px 16px; }
.loginCard p { font-size: 14px; text-align: center; margin: 0; }
.spinner { width: 36px; height: 36px; border: 4px solid var(--line); border-top-color: var(--navy); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* home: big tiles */
.homePage { max-width: 960px; margin: 0 auto; padding: 24px 16px 40px; }
.homePage h1 { font-size: 30px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.tile { background: var(--surface); border: 1px solid var(--line); color: var(--text); min-height: 140px; padding: 18px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; -webkit-tap-highlight-color: transparent; }
.tile:active { transform: scale(.98); }
.tile:hover { border-color: var(--navy); }
.tileIcon { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; }
.tile b { font-size: 18px; }
.tile small { color: var(--muted); font-size: 13px; }
.tile.isSoon .tileIcon { background: var(--line); color: var(--muted); }
.signOutBig { margin-top: 28px; width: 100%; padding: 14px; }

/* computer: tabs across the top */
.wide { height: 100%; display: flex; flex-direction: column; }
.topBar { flex: none; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 12px 0 16px; background: var(--navy); color: #fff; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-family: "Fjalla One", sans-serif; font-size: 20px; letter-spacing: .04em; }
.brand img { width: 32px; height: 32px; background: #fff; padding: 2px; }
.tabs { flex: 1; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: none; display: flex; align-items: center; gap: 7px; height: 56px; padding: 0 14px; background: transparent; border: 0; border-bottom: 3px solid transparent; color: #c9d3e6; font-weight: 600; }
.tabs button:hover { color: #fff; background: var(--navy-2); }
.tabs button.on { color: #fff; border-bottom-color: var(--green); background: var(--navy-2); }
.tabs button.isSoon { opacity: .6; }
.who { color: #c9d3e6; font-size: 14px; white-space: nowrap; }
.signOut { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); padding: 7px 12px; }
.stage { flex: 1; position: relative; min-height: 0; overflow: auto; }
.appFrame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--bg); }

/* phone: home icons, then the app + a bar at the bottom */
.narrow { height: 100%; display: flex; flex-direction: column; }
.phoneTop { flex: none; display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; background: var(--navy); color: #fff; font-family: "Fjalla One", sans-serif; font-size: 20px; letter-spacing: .04em; }
.phoneTop img { width: 30px; height: 30px; background: #fff; padding: 2px; }
.narrow .stage.inApp { padding-top: env(safe-area-inset-top); }
.bottomBar { flex: none; display: flex; height: calc(var(--bar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--navy); }
.bottomBar button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: transparent; border: 0; border-top: 3px solid transparent; color: #c9d3e6; font-size: 12px; font-weight: 600; -webkit-tap-highlight-color: transparent; }
.bottomBar button.on { color: #fff; border-top-color: var(--green); }
.bottomBar button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }

/* coming soon */
.soon { max-width: 460px; margin: 60px auto; padding: 0 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); }
.soon h2 { color: var(--text); font-size: 26px; }
.soon p { margin: 0 0 8px; }

/* password box with the eye button (Nov 8, 2026) */
.pwWrap { position: relative; display: block; width: 100%; }
.pwWrap > input { width: 100%; padding-right: 46px !important; box-sizing: border-box; }
.pwEye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px !important; height: 38px !important; min-width: 0 !important; display: flex; align-items: center; justify-content: center; padding: 0 !important; margin: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; color: #6b778c; cursor: pointer; }
.pwEye svg { flex: none; width: 22px; height: 22px; }
.pwEye:hover, .pwEye:focus-visible { color: inherit; }
