:root {
  --ink: #1c2430;
  --muted: #5c6b7a;
  --line: #e4ddd2;
  --paper: #f6f3ee;
  --card: #fffdf9;
  --teal: #0e6b63;
  --teal-dark: #0a524c;
  --danger: #9d2c2c;
  --blue: #1a73e8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
}

button, input {
  font: inherit;
}

button {
  border: 0;
  border-radius: 10px;
  background: var(--teal);
  color: white;
  font-weight: 650;
  padding: 10px 14px;
  cursor: pointer;
}

button:hover { background: var(--teal-dark); }

.ghost {
  background: transparent;
  color: var(--teal-dark);
  border: 1px solid var(--line);
}

.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 10% -10%, #efe4cf 0%, transparent 60%),
    var(--paper);
}

.auth-card {
  width: min(460px, calc(100% - 32px));
  margin: 48px auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(28, 36, 48, 0.06);
}

.auth-card h1 { margin: 0 0 8px; letter-spacing: -0.03em; }
.auth-card h2 { margin: 28px 0 12px; font-size: 18px; }
.lede, .banner { color: var(--muted); line-height: 1.5; }
.banner { color: var(--danger); }

.stack { display: grid; gap: 12px; }
.stack label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.stack input, .share-row input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
}

#map { position: fixed; inset: 0; background: #e7eef2; }

.blue-dot {
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  background: var(--blue);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(28, 36, 48, 0.35);
}

.heading-arrow {
  width: 0;
  height: 0;
  margin-left: -6px;
  margin-top: -22px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 14px solid var(--blue);
  transform-origin: 6px 22px;
}

.topbar, .panel {
  position: fixed;
  z-index: 2;
  background: rgba(255, 253, 249, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(28, 36, 48, 0.08);
}

.topbar {
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
}

#status {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 14px;
}

.text-link { color: var(--teal-dark); font-weight: 650; text-decoration: none; }

.panel {
  top: 76px;
  left: 12px;
  width: min(320px, calc(100% - 24px));
  max-height: calc(100vh - 96px);
  overflow: auto;
  padding: 14px;
  border-radius: 14px;
}

.panel h2 { margin: 16px 0 8px; font-size: 15px; }

.readings {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 6px 10px;
  margin: 0;
}

.readings dt { color: var(--muted); }
.readings dd { margin: 0; font-weight: 650; }

.share-row { display: flex; gap: 8px; }
.share-row input { flex: 1; min-width: 0; }

.people { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.people li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.people button { padding: 6px 10px; }

@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; }
  #status { flex-basis: 100%; }
  .panel {
    top: auto;
    bottom: 12px;
    max-height: 42vh;
  }
}
