:root {
  --navy: #0B2D5B; --navy-2: #143C72; --orange: #E8650A; --peach: #FFF1E6; --ground: #F4F8FD; --line: #E6EAF0; --line-2: #C9D3E0;
  --ink-2: #2F4566; --muted: #4A5D78; --good: #1F7A5C; --good-bg: #D9F3EA; --bad: #B3261E; --bad-bg: #FDECEA; --warn: #8A3B00;
  font-family: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif; color: var(--navy); background: var(--ground);
  -webkit-tap-highlight-color: transparent;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-size: 16px; line-height: 1.45; }
h1, h2 { font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif; margin: 0; }
h1 { font-size: 22px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 800; }
a { color: var(--navy); font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
p { margin: 0; }

.phone { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--ground); }
.screen { flex: 1; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.bar { position: sticky; top: 0; z-index: 2; background: #fff; display: flex; align-items: center; gap: 8px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; border-bottom: 1px solid var(--line); }
.bar-mark { width: 30px; height: auto; }
.back { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -10px; }
.pad { padding: 16px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.row.gap { justify-content: flex-start; }
.sub { display: block; font-size: 14px; color: var(--muted); font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.center-col { align-items: center; text-align: center; }
.good { color: var(--good); }
.empty { text-align: center; color: var(--muted); padding: 32px 12px; }

.tabbar { position: fixed; bottom: 0; left: 0; right: 0; max-width: 560px; margin: 0 auto; display: flex; justify-content: space-around; background: #fff; border-top: 1px solid var(--line); padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); z-index: 3; }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 48px; font-size: 12px; text-decoration: none; color: var(--muted); }
.tabbar a[aria-current="page"] { color: var(--orange); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border-radius: 999px; font-weight: 800; border: 2px solid transparent; cursor: pointer; text-decoration: none; }
.btn.wide { width: 100%; min-height: 54px; font-size: 18px; }
.btn.small { min-height: 40px; padding: 6px 16px; font-size: 15px; }
.btn.orange { background: var(--orange); color: #fff; }
.btn.navy { background: var(--navy); color: #fff; }
.btn.outline { background: #fff; border-color: #E2E6F0; color: var(--navy); }
.btn.link { background: none; text-decoration: underline; padding: 6px 8px; }
.btn:disabled { background: #9AA8BC; color: #fff; cursor: not-allowed; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.field-hint { font-weight: 400; font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea { font-weight: 400; font-size: 17px; padding: 12px; border: 1px solid #A9B5C6; border-radius: 12px; background: #fff; min-height: 48px; width: 100%; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; background: #fff; border-radius: 14px; padding: 14px; }
.check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; }
.info { background: #fff; border-left: 4px solid var(--navy); padding: 12px 14px; border-radius: 10px; color: var(--ink-2); }
.error { background: var(--bad-bg); color: var(--bad); padding: 12px 14px; border-radius: 12px; }
.error ul, .card-plain ul { margin: 6px 0 0; padding-left: 18px; }
.ok-box { background: var(--good-bg); color: #145C45; padding: 12px 14px; border-radius: 12px; }
.card-plain { background: #fff; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.card-plain.linkrow { flex-direction: row; justify-content: space-between; text-decoration: none; }
.line { padding: 10px 0; border-top: 1px solid var(--line); }
.line:first-of-type { border-top: 0; }

/* Welcome */
.welcome { min-height: 100vh; min-height: 100dvh; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; padding: 0 28px calc(40px + env(safe-area-inset-bottom)); background: #fff; }
.welcome-brand { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; text-align: center; }
.welcome-brand .mark { width: 120px; height: auto; }
.welcome-brand .wordmark { width: 250px; max-width: 80%; height: auto; }
.welcome-brand p { color: var(--ink-2); font-size: 17px; max-width: 280px; }
.welcome-actions { display: flex; flex-direction: column; gap: 14px; }

/* Onboarding */
.progress { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress div { height: 100%; background: var(--orange); }
.steps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps-list li { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 14px; }
.steps-list .num { flex: none; width: 32px; height: 32px; border-radius: 99px; display: grid; place-items: center; font-weight: 800; background: var(--ground); }
.steps-list .done .num { background: var(--good); color: #fff; }
.steps-list .in_progress .sub { color: var(--warn); }
.steps-list .blocked .sub { color: var(--bad); }
.disclosure { background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; display: grid; gap: 10px; color: var(--ink-2); }

/* Shifts */
.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: #E6ECF4; }
.tabs button { flex: 1; min-height: 42px; border: 0; border-radius: 10px; background: transparent; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--navy); font-weight: 800; }
.shift-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border-radius: 18px; padding: 16px; text-decoration: none; color: var(--navy); font-weight: 400; box-shadow: 0 4px 14px rgba(11,45,91,0.06); }
.shift-card strong { font-size: 17px; }
.role { padding: 3px 10px; border-radius: 99px; background: #FFE6D9; font-weight: 800; font-size: 13px; color: var(--navy); }
.rate { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 800; }
.rate small { font-size: 13px; color: var(--muted); font-weight: 600; }
.tag { align-self: flex-start; display: inline-flex; padding: 3px 10px; border-radius: 99px; background: var(--ground); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.tag.applied, .tag.paid, .tag.status-confirmed { background: var(--good-bg); color: #145C45; }
.tag.status-assigned, .tag.status-disputed { background: var(--peach); color: var(--warn); }
.tag.status-in_progress { background: #EDE4FA; color: #5A2D7A; }
.hero { background: var(--navy); color: #fff; padding: 16px; display: grid; gap: 10px; }
.hero p { color: #D5DEEC; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-grid div { background: var(--navy-2); border-radius: 12px; padding: 10px 12px; display: grid; }
.hero-grid small { color: #C9D6EA; }
.total { font-size: 17px; }

/* Pay */
.pay-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { border-radius: 16px; padding: 14px; display: grid; gap: 2px; }
.tile strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; }
.tile.navy { background: var(--navy); color: #fff; } .tile.navy small { color: #C9D6EA; }
.tile.peach { background: var(--peach); } .tile.peach small { color: var(--warn); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice button { text-align: left; display: grid; gap: 2px; padding: 12px; border-radius: 12px; border: 2px solid #E2E6F0; background: #fff; cursor: pointer; }
.choice button[aria-checked="true"] { border-color: var(--navy); background: var(--ground); }
.choice span { font-size: 13px; font-weight: 700; color: var(--muted); }
.cashout-cta { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--peach); text-decoration: none; }
.cashout-cta small { display: block; color: var(--warn); font-weight: 700; }
.cashout-cta strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; }
.receipt { width: 100%; margin: 0; background: #fff; border-radius: 18px; padding: 16px; display: grid; gap: 10px; text-align: left; }
.receipt div { display: flex; justify-content: space-between; gap: 12px; }
.receipt dt { color: var(--muted); } .receipt dd { margin: 0; font-weight: 700; }
.receipt .total { border-top: 1px solid var(--line); padding-top: 10px; }
.receipt .total dd { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 26px; font-weight: 800; }
.big-check, .big-x { width: 64px; height: 64px; border-radius: 99px; display: grid; place-items: center; color: #fff; font-size: 34px; font-weight: 800; }
.big-check { background: var(--good); } .big-x { background: var(--bad); }
.form-row { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.form-row:first-of-type { border-top: 0; }

/* Layout fixes from the screenshot review */
.hero .role { justify-self: start; }
.receipt dd, .rate, .cashout-cta .btn { white-space: nowrap; }
.cashout-cta .btn { flex: none; }

