/* NeighborHelp — elderly-friendly: big fonts, high contrast, big buttons, mobile-first */
:root {
  --bg: #f7f9fc;
  --card: #ffffff;
  --ink: #1a1a1a;
  --muted: #555;
  --primary: #0b6bcb;
  --primary-dark: #095aa9;
  --green: #1e7e34;
  --red: #c0392b;
  --amber: #b7791f;
  --line: #dfe5ee;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { font-size: 19px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  line-height: 1.55; padding-bottom: 92px;
}
#topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--primary); color: #fff; padding: 14px 18px;
}
.brand { font-size: 1.35rem; font-weight: 800; }
.lang-switch {
  display: flex; align-items: center; gap: 2px;
  background: rgba(255,255,255,.18); border: 2px solid #fff;
  border-radius: 999px; padding: 4px;
}
.lang-opt {
  font-size: 1.05rem; font-weight: 800; padding: 8px 18px; min-height: 46px;
  border: none; border-radius: 999px; background: transparent; color: #fff;
  cursor: pointer;
}
.lang-opt.active { background: #fff; color: var(--primary); }
#view { max-width: 640px; margin: 0 auto; padding: 18px 16px 30px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
h1 { font-size: 1.6rem; margin: 0 0 12px; }
h2 { font-size: 1.3rem; margin: 0 0 10px; }
h3 { font-size: 1.12rem; margin: 14px 0 8px; }
p { margin: 8px 0; }
.muted { color: var(--muted); }
.big { font-size: 1.15rem; }

label { display: block; font-weight: 700; margin: 14px 0 6px; font-size: 1.05rem; }
input, select, textarea {
  width: 100%; font-size: 1.12rem; padding: 14px 12px;
  border: 2px solid #b9c4d6; border-radius: 10px; background: #fff; color: var(--ink);
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: 3px solid #9cc7f5; border-color: var(--primary); }
textarea { min-height: 120px; resize: vertical; }
.hint { font-size: .95rem; color: var(--muted); margin-top: 6px; }
.warn {
  background: #fff7e6; border: 2px solid #e6b800; border-radius: 10px;
  padding: 12px 14px; margin: 12px 0; font-weight: 600;
}
.error { background: #fdecea; border: 2px solid var(--red); color: var(--red); border-radius: 10px; padding: 12px 14px; margin: 12px 0; font-weight: 700; }
.okmsg { background: #e9f7ef; border: 2px solid var(--green); color: var(--green); border-radius: 10px; padding: 12px 14px; margin: 12px 0; font-weight: 700; }

.btn {
  display: block; width: 100%; font-size: 1.2rem; font-weight: 800;
  padding: 16px; margin: 12px 0; border: none; border-radius: var(--radius);
  background: var(--primary); color: #fff; cursor: pointer; text-align: center;
  text-decoration: none; min-height: 58px;
}
.btn:active { background: var(--primary-dark); }
.btn-green { background: var(--green); }
.btn-red { background: var(--red); }
.btn-gray { background: #6c757d; }
.btn-outline { background: #fff; color: var(--primary); border: 3px solid var(--primary); }
.btn-small { width: auto; display: inline-block; font-size: 1.02rem; padding: 10px 20px; min-height: 48px; margin: 6px 6px 6px 0; }
.btn-911 {
  background: var(--red); font-size: 1.5rem; padding: 20px;
  border: 4px solid #7d1f14;
}
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row .btn { flex: 1; min-width: 140px; }

.req { cursor: pointer; }
.req:active { background: #eef4fb; }
.req-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.req-meta { color: var(--muted); font-size: 1rem; }
.badge {
  display: inline-block; font-size: .95rem; font-weight: 800; padding: 4px 12px;
  border-radius: 999px; margin: 4px 6px 4px 0; color: #fff;
}
.badge-open { background: var(--primary); }
.badge-accepted { background: var(--amber); }
.badge-completed { background: var(--green); }
.badge-cancelled { background: #6c757d; }
.badge-paid { background: #7b2fbe; }
.badge-free { background: #2e7d32; }
.badge-lang { background: #0f766e; }
.badge-match { background: #15803d; }
.filterbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.filterbar label { margin: 0; white-space: nowrap; }
.filterbar select { width: auto; flex: 1; }
.radio-row { display: flex; gap: 12px; margin: 8px 0; }
.radio-row .radio {
  display: flex; align-items: center; gap: 8px;
  border: 2px solid var(--line); border-radius: 12px;
  padding: 12px 16px; font-size: 1.15rem; cursor: pointer; flex: 1;
}
.radio-row .radio input { width: 24px; height: 24px; }
.cat { background: #e8f0fe; color: #0b3d91; }

.fee { font-size: 1.25rem; font-weight: 800; color: #7b2fbe; }

#bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; background: #fff; border-top: 2px solid var(--line);
  padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
}
#bottomnav button {
  flex: 1; border: none; background: none; font-size: .92rem; font-weight: 700;
  color: var(--muted); padding: 10px 2px; cursor: pointer; min-height: 56px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
#bottomnav button .ico { font-size: 1.5rem; }
#bottomnav button.active { color: var(--primary); }

.stars { display: flex; gap: 8px; font-size: 2.4rem; margin: 8px 0; }
.stars span { cursor: pointer; color: #ccc; }
.stars span.on { color: #f5a623; }

.privacy-box {
  max-height: 300px; overflow-y: auto; border: 2px solid var(--line);
  border-radius: 10px; padding: 14px; background: #fbfcfe; font-size: 1rem;
  margin: 10px 0;
}
.checkline { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; font-size: 1.05rem; }
.checkline input { width: 30px; height: 30px; flex: none; margin-top: 2px; }

.mic-wrap { display: flex; gap: 8px; align-items: stretch; }
.mic-wrap textarea { flex: 1; }
.mic-btn {
  flex: none; width: 64px; font-size: 1.8rem; border: 2px solid var(--primary);
  background: #e8f0fe; border-radius: 10px; cursor: pointer;
}
.mic-btn.rec { background: var(--red); border-color: var(--red); color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .6; } }

.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tabs button {
  flex: 1; font-size: 1.1rem; font-weight: 800; padding: 14px;
  border: 2px solid var(--primary); background: #fff; color: var(--primary);
  border-radius: 10px; cursor: pointer;
}
.tabs button.active { background: var(--primary); color: #fff; }

table.admin { width: 100%; border-collapse: collapse; font-size: 1rem; }
table.admin th, table.admin td { border: 1px solid var(--line); padding: 10px 8px; text-align: left; }
table.admin th { background: #eef2f7; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

.center { text-align: center; }
.mt { margin-top: 16px; }
.tel-link { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
