/* RootZone Bat v0.2 "2030" finish: dusk glass, tree-and-roots mark, v0.2.1 type scale.
   Styling only, plus the PRF and live-visit screens' own classes. */
:root {
  --bg: #0B0C1E; --bg-elev: rgba(22,22,44,.72); --bg-card: rgba(255,255,255,.06); --line: rgba(255,255,255,.10);
  --text: #F1F0FA; --muted: #A9A8C6; --accent: #9C9CFF; --accent-2: #7FE0C4; --danger: #FF8A7E;
  --ok: #5DDC8F; --caution: #F5C451; --gap: #FF8A7E; --radius: 22px; --tap: 44px;
  --display: "SF Pro Display", "Inter Tight", Inter, -apple-system, system-ui, sans-serif;
  --font: "SF Pro Text", Inter, -apple-system, system-ui, sans-serif;
  --glass-blur: blur(26px) saturate(180%);
  --indigo: #5B5BE6; --indigo-2: #4141C8;
}
html, body { background: #07071A; }
body { background: radial-gradient(120% 70% at 70% -10%, #2C2D78 0%, #15163F 42%, #08081A 78%) fixed; }
.header { background: rgba(14,14,36,.55); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border-bottom: 1px solid var(--line); }
.header .mark-img { width: 32px; height: 32px; display: block; filter: drop-shadow(0 2px 8px rgba(124,124,255,.45)); }
.header h1 { font-family: var(--display); font-size: 16px; font-weight: 750; letter-spacing: -.01em; }
.header p { color: var(--muted); }
.icon-btn { color: var(--accent); font-weight: 650; width: auto; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.08); }
.nav { left: 12px; right: 12px; bottom: calc(8px + env(safe-area-inset-bottom) * .55); height: 62px; padding-bottom: 0; border-radius: 26px;
  background: rgba(20,20,44,.66); border: 1px solid rgba(255,255,255,.12); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 20px 44px -18px rgba(0,0,0,.7); }
.nav button { border-radius: 20px; margin: 5px 2px; color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 11px; font-weight: 600; }
.nav button.active { color: #fff; background: rgba(156,156,255,.18); }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }
.card h2 { color: var(--muted); font-size: 12px; font-weight: 700; }
.section-head h2 { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
input[type="text"], input[type="number"], input[type="date"], input[type="time"], input[type="email"], input[type="datetime-local"], select, textarea {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
select option { background: #15163F; color: var(--text); }
.btn { border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.08); font-weight: 600; }
.btn.primary { background: linear-gradient(180deg, #6A6AF0, #4545CC); color: #fff; border: 0; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 14px 28px -14px rgba(91,91,230,.9); }
.btn.soft { background: rgba(156,156,255,.16); color: #D9D9FF; border: 0; }
.btn.danger { color: var(--danger); border-color: rgba(255,138,126,.35); background: rgba(255,138,126,.08); }
.chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.chip.on { background: rgba(156,156,255,.22); border-color: var(--accent); color: #fff; }
.banner { border-radius: 14px; }
.banner.ok { background: rgba(93,220,143,.12); } .banner.caution { background: rgba(245,196,81,.12); } .banner.gap { background: rgba(255,138,126,.12); }
.banner.info { background: rgba(255,255,255,.05); }
.sun-panel { background: rgba(246,163,74,.08); border: 1px solid rgba(246,163,74,.25); border-radius: 16px; }
.sun-panel strong { color: #F6B36A; }
.kicker { color: var(--accent); font-weight: 750; letter-spacing: .1em; }
.list-item { border-radius: 18px; }
.main { padding-bottom: calc(62px + env(safe-area-inset-bottom) + 28px); }
.live-cta { margin: 4px 0 14px; min-height: 52px; border: 0; color: #fff; font-weight: 700;
  background: linear-gradient(90deg, #F6A34A, #C86DD7 55%, #7C7CFF); box-shadow: 0 16px 30px -16px rgba(200,109,215,.9); }

/* ---------- PRF (v1 layout) ---------- */
.prf2 .nav-row { display: flex; justify-content: space-between; margin: -4px -6px 2px; }
.link-btn { min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--accent); font: inherit; font-size: 17px; }
.link-btn.strong { font-weight: 750; }
.big-title { font-family: var(--display); font-size: 32px; line-height: 1.05; font-weight: 850; letter-spacing: -.035em; margin: 0 0 12px; }
.prf-hero { margin-bottom: 14px; }
.prf-hero-empty { position: relative; display: grid; place-items: center; height: 150px; border-radius: 26px; color: var(--muted); font-size: 14px;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 12px, rgba(255,255,255,.02) 12px 24px); border: 1px dashed rgba(255,255,255,.18); }
.prf-grid { display: grid; gap: 4px; border-radius: 26px; overflow: hidden; height: 228px; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.prf-grid.n1 { grid-template-columns: 1fr; } .prf-grid.n2 { grid-template-rows: 1fr; }
.prf-grid figure { margin: 0; position: relative; overflow: hidden; background: #111; }
.prf-grid figure.big { grid-row: 1 / -1; }
.prf-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prf-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 10px; font-size: 13px; font-weight: 650; color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.65), transparent); }
.gps-chip { position: absolute; left: 10px; top: 10px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(10,10,20,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-variant-numeric: tabular-nums; }
.more { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; font-weight: 800; color: #fff; background: rgba(0,0,0,.45); }
.group-label { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 14px 4px 6px; }
.card.glass { padding: 10px 12px; margin-bottom: 6px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(255,255,255,.07); }
.seg button { min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--text); font: inherit; font-weight: 650; font-size: 15px; }
.seg button.on { background: linear-gradient(180deg, #6A6AF0, #4545CC); color: #fff; box-shadow: 0 8px 18px -10px rgba(91,91,230,.9); }
.explain { margin: 6px 6px 0; }
.row-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 2px 0 8px; }
.row-title { font-size: 17px; font-weight: 600; }
.mini-seg { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(255,255,255,.07); }
.mini-seg button { min-height: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 650; }
.mini-seg button.on { background: rgba(255,255,255,.14); color: #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip2 { min-height: 44px; padding: 0 15px; border-radius: 999px; border: 0; background: rgba(255,255,255,.09); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; }
.chip2.on { background: linear-gradient(180deg, #6A6AF0, #4545CC); color: #fff; }
.hairline { height: 1px; background: var(--line); margin: 12px 0 8px; }
.ha-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; }
.ha-inputs { display: flex; gap: 6px; flex: 0 0 auto; }
.ha-inputs input { width: 84px; text-align: right; }
.ha-inputs select { width: 86px; }
.sticky-bar { position: sticky; bottom: 4px; z-index: 5; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; padding: 8px;
  border-radius: 24px; background: rgba(14,14,36,.6); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--line); }
.sticky-bar .btn { min-height: 54px; border-radius: 18px; font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.bar-photo { margin: 0; }
.bar-photo input[type=file] { display: none; }

/* ---------- live dusk visit ---------- */
body.is-live { background: radial-gradient(90% 55% at 50% 30%, #3B2A6E 0%, #191A4A 45%, #07071A 85%) fixed; }
.live-top { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 6px; margin-bottom: 4px; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.08); color: #fff;
  display: grid; place-items: center; font-size: 22px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.round-btn.moon { color: #FF9C7A; font-size: 18px; }
.live-title { text-align: center; }
.live-title .kicker { margin: 0; font-size: 12px; }
.live-title h2 { font-family: var(--display); font-size: 18px; font-weight: 750; letter-spacing: -.01em; }
.arc-wrap { position: relative; height: 236px; margin: 0 -6px; }
.arc { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 210px; }
.arc-label { position: absolute; bottom: 30px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.arc-label.left { left: 18px; } .arc-label.right { right: 18px; }
.arc-sun { position: absolute; left: 8px; top: 72px; font-size: 11px; color: #F6B36A; }
.arc-big { position: absolute; left: 0; right: 0; top: 86px; text-align: center; font-family: var(--display); font-size: 58px; font-weight: 300; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.arc-sub { position: absolute; left: 0; right: 0; top: 160px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.tile { text-align: left; min-height: 90px; padding: 12px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--text); font: inherit;
  display: flex; flex-direction: column; justify-content: space-between; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.tile span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tile b { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.tile b small { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.checks { padding: 4px 12px; }
.check-row { display: flex; align-items: center; gap: 10px; min-height: 48px; border-bottom: 1px solid var(--line); font-size: 15px; }
.check-row:last-child { border-bottom: 0; }
.check-row .dot { flex: 0 0 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #0B0C1E; background: var(--ok); }
.check-row.caution .dot { background: var(--caution); } .check-row.gap .dot { background: var(--gap); }
.check-row em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 13px; white-space: nowrap; }
.chart { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.chart .label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chart b { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.bars { flex: 1; height: 44px; display: flex; align-items: flex-end; gap: 2px; max-width: 170px; }
.bars i { flex: 1; min-width: 2px; border-radius: 3px; background: linear-gradient(180deg, #B4B4FF, #7C7CFF); }
.bars i.future { background: rgba(255,255,255,.14); }
.live-bar { position: sticky; bottom: 4px; display: grid; grid-template-columns: 1fr 64px; gap: 10px; margin-top: 10px; z-index: 5; }
.btn.record { min-height: 66px; border-radius: 24px; border: 0; font-size: 19px; font-weight: 800; color: #fff; display: flex; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(180deg, #E5483C, #B8261C); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 18px 36px -14px rgba(229,72,60,.9); }
.btn.record:active { transform: scale(.97); }
.rec-dot { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #fff; display: grid; place-items: center; }
.rec-dot::after { content: ''; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.round-btn.cam { width: 64px; height: 66px; border-radius: 22px; }
.undo { display: block; margin: 6px auto 24px; font-size: 14px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .btn.record:active { transform: none; } }

/* v0.2.2 place search (night glass) */
.site-find { margin: 6px 0 12px; padding: 12px 12px 10px; border-radius: 18px; background: rgba(156,156,255,.08); border: 1px solid rgba(156,156,255,.18); }
.site-find-h { margin: 0 0 8px; font-weight: 700; font-size: 15px; color: var(--text); }
.site-find-h .tiny { display: block; font-weight: 500; margin-top: 2px; }
.site-find-note { margin: 8px 0 0; color: var(--accent-2); }
.rzps { --rzps-fg: #F1F0FA; --rzps-muted: #A9A8C6; --rzps-field: rgba(16,17,40,.92); --rzps-line: rgba(255,255,255,.16);
  --rzps-accent: #9C9CFF; --rzps-on-accent: #0B0C1E; --rzps-hit: rgba(156,156,255,.14); --rzps-warn: #FFC37A; }
