/* Urgnt Ops console — big touch targets, works one-handed on patchy 4G. */
:root {
  --ink: #2b2320;
  --paper: #fbf3e6;
  --marigold: #f2a71b;
  --vermilion: #e2472a;
  --teal: #1f7a6c;
  --card: #ffffff;
}
* { box-sizing: border-box; }
body { margin:0; font-family: -apple-system, Roboto, "Noto Sans", sans-serif; background: var(--paper); color: var(--ink); }

.topbar { display:flex; align-items:center; gap:8px; padding:12px 16px; background: var(--ink); color:#fff; position:sticky; top:0; z-index:10; }
.topbar .brand { font-weight:700; font-size:18px; }
.topbar .who { margin-left:auto; font-size:13px; opacity:0.8; }

.tabs { display:flex; background:#fff; border-bottom:2px solid #eee; position:sticky; top:52px; z-index:9; }
.tab-btn { flex:1; padding:14px 4px; border:none; background:none; font-size:14px; }
.tab-btn.active { color: var(--vermilion); border-bottom:3px solid var(--vermilion); font-weight:700; }
.tab-panel { display:none; padding:16px; max-width:520px; margin:0 auto; }
.tab-panel.active { display:block; }

.step { background:var(--card); border-radius:14px; padding:16px; margin-bottom:14px; box-shadow:0 1px 3px rgba(0,0,0,0.08); }
.step h3 { margin-top:0; font-size:16px; }

.big-input { width:100%; padding:16px; font-size:17px; border:1px solid #ddd; border-radius:10px; margin-bottom:10px; }
.big-btn { width:100%; padding:18px; font-size:17px; font-weight:700; border:none; border-radius:12px; background: var(--vermilion); color:#fff; margin-top:6px; }
.big-btn.secondary { background: var(--teal); }
.big-btn.primary { background: var(--vermilion); font-size:19px; padding:20px; }
.link-btn { background:none; border:none; color: var(--teal); text-decoration:underline; padding:10px; font-size:14px; }
.link-btn.small { color:#fff; font-size:13px; }

.chip-grid { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
.chip-btn { padding:10px 16px; border-radius:20px; border:2px solid #ddd; background:#fff; font-size:15px; }
.chip-btn.small { padding:8px 12px; font-size:13px; }
.chip-btn.selected { border-color: var(--vermilion); background: #fdecea; font-weight:700; }

.field-label { display:block; font-size:13px; color:#777; margin-top:8px; }
.switch-row { display:flex; align-items:center; gap:8px; font-size:16px; margin-top:10px; }
.switch-row input { width:22px; height:22px; }

.hint { font-size:13px; color:#888; margin:6px 0; }
.hint.small { font-size:12px; }

.file-input { width:100%; padding:14px; margin-bottom:8px; }
.photo-preview { display:flex; gap:8px; flex-wrap:wrap; }
.photo-preview .thumb { width:72px; height:72px; object-fit:cover; border-radius:8px; border:1px solid #ddd; }

.pin-map, .mini-map { width:100%; height:260px; border-radius:12px; margin:10px 0; overflow:hidden; }

.msg { min-height:20px; font-size:14px; color: var(--teal); margin-top:8px; }
.msg.err { color: var(--vermilion); font-weight:600; }
.msg.small { font-size:12px; color:#888; }

.success-screen { text-align:center; padding:24px 0; }
.success-screen h2 { color: var(--teal); }

.tasks-list { display:flex; flex-direction:column; gap:10px; }
.task-card { background:var(--card); border-radius:12px; padding:14px; box-shadow:0 1px 3px rgba(0,0,0,0.08); }
.task-title { font-weight:600; margin-bottom:8px; text-transform:capitalize; }
.task-actions { display:flex; gap:8px; }

.stats-cards { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.stat-card { background:var(--card); border-radius:12px; padding:20px; text-align:center; box-shadow:0 1px 3px rgba(0,0,0,0.08); }
.stat-num { font-size:28px; font-weight:800; color: var(--vermilion); }
.stat-label { font-size:13px; color:#777; margin-top:4px; }

/* Login screen */
.login-body { display:flex; align-items:center; justify-content:center; min-height:100vh; }
.login-card { background:#fff; border-radius:16px; padding:28px; width:90%; max-width:360px; box-shadow:0 4px 20px rgba(0,0,0,0.1); text-align:center; }
.login-card h1 { margin-top:0; }
.login-card .sub { color:#777; font-size:14px; margin-bottom:20px; }
