@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #1C1B19; --ink-soft: #6B6660; --paper: #FFFFFF; --surface: #F0EFEC; --surface-2: #E2E0DA;
  --line: #E2E0DA; --brand: #1C1B19; --accent: #C89B3C; --accent-tint: #FBF2DD;
  --green: #2F5233; --green-tint: #E4EEE1; --chili: #C81E3A; --chili-tint: #FBE6E9;
  --radius-s: 8px; --radius-m: 14px; --radius-l: 22px;
  --shadow: 0 1px 2px rgba(28,27,25,.06), 0 8px 24px -12px rgba(28,27,25,.2);
  --font-display: 'Fraunces', Georgia, serif; --font-body: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); background: var(--surface); color: var(--ink); padding-bottom: env(safe-area-inset-bottom,0); }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--paper); padding-bottom: 76px; }
@media (min-width:720px){ #app{ max-width:600px; } }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.topbar { position: sticky; top: 0; z-index: 10; background: var(--ink); color: #fff; padding: 16px 20px; padding-top: max(16px, env(safe-area-inset-top)); display: flex; align-items: center; justify-content: space-between; }
.topbar h1 { font-family: var(--font-display); font-size: 19px; margin: 0; }
.avail-toggle { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.switch { width: 38px; height: 22px; background: rgba(255,255,255,.25); border-radius: 999px; position: relative; cursor: pointer; border: none; }
.switch::after { content:''; width: 18px; height: 18px; background: #fff; border-radius: 50%; position: absolute; top: 2px; left: 2px; transition: .15s; }
.switch.on { background: var(--green); }
.switch.on::after { left: 18px; }

.tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 62px; z-index: 9; }
.tabs a { flex: 1; text-align: center; padding: 13px 8px; font-size: 13px; font-weight: 600; color: var(--ink-soft); border-bottom: 2px solid transparent; }
.tabs a.active { color: var(--ink); border-color: var(--accent); }

.screen { padding: 18px 20px; }
.stat-row { display: flex; gap: 10px; margin-bottom: 20px; }
.stat-card { flex: 1; background: var(--accent-tint); border-radius: var(--radius-m); padding: 14px; }
.stat-card .num { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.stat-card .lbl { font-size: 11.5px; color: var(--ink-soft); }

.job-card { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 14px 16px; margin-bottom: 12px; }
.job-card .row1 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.job-card h4 { margin: 0; font-size: 15px; }
.route-line { display: flex; gap: 10px; font-size: 13px; margin: 6px 0; align-items: flex-start; }
.route-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-top: 4px; flex-shrink: 0; }
.route-dot.drop { background: var(--chili); }
.route-line p { margin: 0; color: var(--ink-soft); }
.route-line strong { display: block; font-size: 12.5px; color: var(--ink); }
.status-tag { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--ink-soft); text-transform: capitalize; }
.status-tag.ready_for_pickup { background: var(--accent-tint); color: #93701C; }
.status-tag.picked_up { background: #E3ECFB; color: #2A4E8C; }
.status-tag.delivered { background: var(--green-tint); color: var(--green); }
.btn { border: none; border-radius: var(--radius-s); padding: 11px 16px; font-weight: 700; font-size: 13.5px; cursor: pointer; background: var(--ink); color: #fff; width: 100%; margin-top: 8px; }
.btn.outline { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--ink-soft); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 600; z-index: 60; }
.login-wrap { max-width: 380px; margin: 60px auto; padding: 0 20px; }
.login-wrap h2 { font-family: var(--font-display); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field select { width: 100%; padding: 11px 13px; border-radius: var(--radius-s); border: 1.5px solid var(--line); }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); }
