:root {
  --bg: #f2ece4;
  --bg-strong: #e2d6c5;
  --panel: rgba(255, 250, 244, 0.92);
  --panel-border: rgba(94, 61, 42, 0.18);
  --ink: #2e221c;
  --muted: #69564a;
  --accent: #b8562a;
  --accent-dark: #8d3f1e;
  --live: #0e7a63;
  --success: #2f6f3e;
  --error: #9f2f2f;
  --shadow: 0 18px 40px rgba(66, 42, 30, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(184, 86, 42, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(14, 122, 99, 0.14), transparent 24%),
    linear-gradient(180deg, #f7f1e8 0%, var(--bg) 100%);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

.page {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.hero {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero h1 {
  margin: 0;
  max-width: 18ch;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.02;
}

.layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(300px, 0.9fr);
  gap: 20px;
}

.stack {
  display: grid;
  gap: 20px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.panel-form {
  padding: 28px;
}

.panel-auth {
  padding: 28px;
}

.account-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.auth-shell {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: center;
  gap: clamp(32px, 7vw, 88px);
}

.auth-intro h1 {
  margin: 10px 0 18px;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.98;
}

.auth-intro > p:last-child {
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.eyebrow {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.button-google {
  width: 100%;
  background: #fff;
  color: #27221f;
  border: 1px solid rgba(94, 61, 42, 0.18);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--panel-border);
}

.auth-actions .button {
  flex: 1;
}

.panel-status {
  padding: 28px;
}

.panel-head h2,
.log-head h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.6rem;
}

.panel-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.notice {
  margin: 20px 0;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.notice-muted {
  background: rgba(105, 86, 74, 0.09);
  color: var(--muted);
}

.notice-live {
  background: rgba(14, 122, 99, 0.12);
  color: var(--live);
}

.notice-success {
  background: rgba(47, 111, 62, 0.12);
  color: var(--success);
}

.notice-error {
  background: rgba(159, 47, 47, 0.12);
  color: var(--error);
}

form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.92rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(94, 61, 42, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
}

.field input:focus {
  outline: 2px solid rgba(184, 86, 42, 0.22);
  border-color: rgba(184, 86, 42, 0.5);
}

.autocomplete-shell {
  min-height: 58px;
}

.autocomplete-shell gmp-place-autocomplete {
  width: 100%;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.toggle {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(94, 61, 42, 0.12);
}

.toggle input {
  width: 18px;
  height: 18px;
}

.actions,
.log-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.actions {
  margin-top: 6px;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 13px 18px;
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #d1733f 100%);
  color: #fffaf5;
}

.button-secondary {
  background: rgba(46, 34, 28, 0.08);
  color: var(--ink);
}

.button-ghost {
  margin-left: auto;
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid rgba(184, 86, 42, 0.24);
}

.panel-auth .actions {
  margin-top: 0;
}

.place-card {
  display: grid;
  gap: 6px;
  min-height: 84px;
  padding: 16px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(184, 86, 42, 0.12), rgba(255, 255, 255, 0.76)),
    rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(94, 61, 42, 0.08);
}

.place-card[hidden],
.notice[hidden] {
  display: none !important;
}

.place-card strong {
  font-size: 1rem;
}

.place-card span {
  color: var(--muted);
}
.place-card a {
  font-weight: 700;
  text-decoration: none;
  color: var(--accent-dark);
}

.facts {
  margin: 0;
  display: grid;
  gap: 14px;
}

.facts div {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(94, 61, 42, 0.1);
}

.facts dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.facts dd {
  margin: 0;
  font-weight: 700;
}

.log-head {
  margin-top: 24px;
}

.watcher-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.watcher-item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(94, 61, 42, 0.1);
}

.watcher-item-live {
  border-left: 4px solid rgba(14, 122, 99, 0.58);
}

.watcher-item-empty {
  color: var(--muted);
}

.watcher-head,
.watcher-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.watcher-head strong {
  display: block;
  margin-bottom: 4px;
}

.watcher-head span,
.watcher-meta,
.watcher-status,
.watcher-match {
  color: var(--muted);
}

.watcher-status {
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 860px) {
  .page {
    width: min(100vw - 20px, 1180px);
    padding: 24px 0 40px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .panel-form,
  .panel-status,
  .panel-auth {
    padding: 20px;
  }
}

@media (max-width: 560px) {
  .grid,
  .actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .button-ghost {
    margin-left: 0;
  }

  .hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-bar {
    width: 100%;
    justify-content: space-between;
  }
}
