:root { font-family: Inter, system-ui, sans-serif; color: #17211d; background: #edf2ee; }
* { box-sizing: border-box; } body { margin: 0; } main { max-width: 1100px; margin: auto; padding: 24px; }
header { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 18px; }
h1 { margin: 0; font-size: clamp(2rem, 6vw, 4rem); letter-spacing: -.06em; } h2 { margin-top: 0; }
.eyebrow { color: #39705a; font-weight: 800; letter-spacing: .15em; } .actions { display: flex; flex-wrap: wrap; gap: 8px; }
button { border: 0; border-radius: 12px; padding: 12px 16px; background: #163f32; color: white; cursor: pointer; box-shadow: 0 5px 0 #0a241b; transition: transform 90ms ease, box-shadow 90ms ease, filter 120ms ease, opacity 120ms ease; }
button:hover { filter: brightness(1.14); }
button:active, button.clicked { transform: translateY(4px) scale(.98); box-shadow: 0 1px 0 #0a241b; }
button:focus-visible { outline: 3px solid #63c89d; outline-offset: 3px; }
button:disabled, button.busy { cursor: wait; opacity: .7; transform: translateY(2px); box-shadow: 0 3px 0 #0a241b; }
#map { height: 52vh; min-height: 340px; border-radius: 20px; box-shadow: 0 14px 36px #1d392522; }
.alert-panel { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 0 0 16px; padding: 18px; border-radius: 16px; background: #b52424; color: white; box-shadow: 0 12px 30px #7f161655; }
.alert-panel[hidden] { display: none; }
.alert-panel h2, .alert-panel p { margin: 0 0 6px; }
.alert-panel .eyebrow { color: #ffe2e2; }
.alert-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.alert-actions button { background: white; color: #7b1717; box-shadow: 0 5px 0 #681212; }
.panel { background: white; margin-top: 16px; padding: 18px; border-radius: 16px; } .children { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 10px; }
.safe-area-panel { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 16px; }
.safe-area-panel h2, .safe-area-panel p { margin: 0 0 7px; }
.safe-area-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.safe-area-actions button { white-space: nowrap; }
.safe-area-actions button.secondary { background: #59635f; box-shadow: 0 5px 0 #343b38; }
.safe-area-actions button.danger { background: #8d2828; box-shadow: 0 5px 0 #531717; }
.hint { color: #59635f; font-size: .9rem; max-width: 620px; }
.geofence-inside { color: #17613f; font-weight: 700; }
.geofence-outside { color: #a11f1f; font-weight: 800; }
.geofence-near-boundary { color: #8a5900; font-weight: 700; }
.child { text-align: left; display: grid; gap: 7px; background: #e4f0e9; color: #17211d; } .child.emergency { background: #b52424; color: white; }
.child.delayed { background: #fff0bd; color: #5f4700; }
.child.stale { background: #ffd4a3; color: #693300; }
.child.lost { background: #dedede; color: #5a5a5a; }
.child.emergency .geofence-inside, .child.emergency .geofence-outside, .child.emergency .geofence-near-boundary { color: white; }
.child.offline { background: #dedede; color: #5a5a5a; }
.warning { color: #7a3e05; } pre { white-space: pre-wrap; max-height: 220px; overflow: auto; }
@media(max-width:700px) { header, .safe-area-panel, .alert-panel { align-items: stretch; flex-direction: column; } .actions button, .safe-area-actions button, .alert-actions button { flex: 1; } main { padding: 14px; } }
