:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #111111;
  --muted: #6d7178;
  --border: #dedfe3;
  --accent: #111111;
  --danger: #a71919;
  --success-bg: #e8f6ec;
  --success-text: #19612c;
  --warn-bg: #fff2d6;
  --warn-text: #805900;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, select, input { font: inherit; }
.app-shell { width: min(100%, 620px); margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 16px 40px; }
.app-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding: 8px 2px 14px; }
h1 { margin: 2px 0 0; font-size: 32px; letter-spacing: -.04em; }
h2 { margin: 0; font-size: 20px; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .16em; color: var(--muted); }
.admin-link { text-decoration:none; color:var(--text); border:1px solid var(--border); padding:8px 11px; border-radius:10px; font-weight:700; font-size:13px; background:#fff; }
.card { background:var(--card); border:1px solid var(--border); border-radius:18px; padding:16px; margin-bottom:14px; box-shadow: 0 8px 24px rgba(0,0,0,.04); }
label { display:block; font-size:13px; font-weight:800; margin: 0 0 7px; }
select, input { width:100%; min-height:50px; border:1px solid #cfd2d7; border-radius:12px; background:#fff; padding:0 13px; color:var(--text); }
.field-stack { display:grid; gap:8px; margin-top:16px; }
.field-stack label:not(:first-child) { margin-top:5px; }
.mode-tabs { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:18px; }
.mode-tab { min-height:44px; border:1px solid var(--border); background:#f8f8f9; border-radius:11px; font-weight:800; }
.mode-tab.active { background:#111; color:#fff; border-color:#111; }
.segmented { display:grid; gap:8px; }
.segmented.three { grid-template-columns:repeat(3,1fr); }
.segmented.four { grid-template-columns:repeat(2,1fr); }
.segmented button, .secondary-action { border:1px solid var(--border); background:#fff; min-height:48px; border-radius:11px; font-weight:800; }
.segmented button.active { background:#111; color:#fff; border-color:#111; }
.primary { width:100%; min-height:64px; border:none; border-radius:16px; background:#111; color:#fff; font-weight:900; font-size:20px; letter-spacing:.04em; box-shadow:0 10px 24px rgba(0,0,0,.14); }
.primary:disabled { opacity:.45; }
.primary.danger { background:var(--danger); margin-top:14px; }
.location-note { color:var(--muted); font-size:12px; text-align:center; margin:10px 0 18px; }
.hidden { display:none !important; }
.status-banner { border-radius:13px; padding:12px 14px; font-weight:700; font-size:14px; margin-bottom:14px; }
.status-banner.success { background:var(--success-bg); color:var(--success-text); }
.status-banner.warn { background:var(--warn-bg); color:var(--warn-text); }
.status-banner.error { background:#fbe8e8; color:#831d1d; }
.helper { margin:0 0 14px; font-size:13px; color:var(--muted); line-height:1.45; }
.warehouse-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.secondary-action.active { background:#111; color:#fff; }
.active-card { border:2px solid #111; }
.active-card h2 { margin-top:5px; }
.active-card p { color:var(--muted); margin:6px 0; }
.timer { font-size:34px; font-weight:900; letter-spacing:.03em; margin:14px 0 7px; }
.gps-line { font-size:12px; color:var(--muted); }
.section-title-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.text-button { border:none; background:transparent; text-decoration:underline; font-weight:700; }
.recent-list { display:grid; gap:10px; margin-top:12px; }
.punch-row { border-top:1px solid #ececef; padding-top:10px; }
.punch-row:first-child { border-top:none; padding-top:0; }
.punch-top { display:flex; justify-content:space-between; gap:12px; font-weight:800; font-size:14px; }
.punch-sub { margin-top:3px; color:var(--muted); font-size:12px; line-height:1.4; }
.badge { display:inline-block; border:1px solid var(--border); border-radius:999px; padding:2px 7px; font-size:10px; font-weight:800; margin-right:5px; }
@media (max-width:420px) { .warehouse-actions { grid-template-columns:1fr; } h1 { font-size:29px; } }
