:root {
  --paper: #ffffff;
  --ink: #0b1f3a;
  --muted: #52647a;
  --accent: #1d4ed8;
  --line: #dbe5f2;
  --control-line: #7b91ac;
  --primary: #0b1f3a;
  --white: #fff;
  --radius: 18px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.login-page {min-height:100dvh;max-width:560px;margin:auto;padding:48px 24px;display:flex;flex-direction:column;justify-content:center;gap:36px;}
.login-card {padding:30px;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);}
.login-card h1 {font-size:32px;line-height:1.15;}
.login-card p {line-height:1.6;color:var(--muted);}
.login-card .apple {margin-top:22px;}
.login-footer {display:flex;gap:24px;font-size:13px;flex-wrap:wrap;}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 4px;
}
.shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  border-right: 1px solid var(--line);
  background: #f5f9ff;
  padding: 34px 23px 24px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -1px;
}
.brand-icon {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  border-radius: 11px;
  width: 36px;
  height: 36px;
  font-size: 30px;
  font-weight: 800;
}
.beta {
  font-size: 9px;
  letter-spacing: 1px;
  margin-left: auto;
  background: #eff6ff;
  padding: 5px 6px;
  border-radius: 4px;
  color: #52647a;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #52647a;
  margin: 47px 12px 15px;
  font-weight: 700;
}
nav {
  display: grid;
  gap: 7px;
}
nav a {
  display: flex;
  gap: 14px;
  padding: 14px 13px;
  font-size: 14px;
  border-radius: 10px;
  font-weight: 550;
  color: #52647a;
}
nav a span {
  font-size: 20px;
  width: 20px;
  line-height: 18px;
  text-align: center;
}
nav a:hover {
  background: #eff6ff;
}
nav a.active {
  background: #dbeafe;
  color: #163f70;
}
nav a.active span {
  color: var(--primary);
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 45px;
}
.phone-note {
  padding: 19px;
  border-radius: 14px;
  background: #eff6ff;
  font-size: 12px;
  line-height: 1.7;
}
.phone-note > span {
  display: block;
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 8px;
}
.phone-note strong {
  font-size: 14px;
}
.phone-note p {
  color: #52647a;
  margin: 7px 0 14px;
}
.phone-note a {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
}
#account {
  padding-top: 23px;
}
.apple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0b1f3a;
  color: white;
  border: 0;
  border-radius: 9px;
  padding: 12px 17px;
  font-size: 13px;
  font-weight: 600;
  width: 100%;
}
.apple:hover {
  background: #163f70;
}
.apple-mark {
  font-size: 19px;
}
.account-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dbeafe;
  color: var(--primary);
  font-weight: 700;
}
.legal {
  display: flex;
  gap: 16px;
  color: #52647a;
  font-size: 10px;
  margin-top: 17px;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 42px;
  font-size: 12px;
  color: var(--muted);
}
.topbar > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #47719f;
}
main {
  padding: 40px 42px;
  max-width: 1650px;
  margin: auto;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.9px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin: 0 0 16px;
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  letter-spacing: -1.6px;
  font-weight: 400;
  line-height: 1.06;
  margin: 0;
}
h1 em {
  color: var(--primary);
  font-weight: 400;
}
h2 {
  font-family: Georgia, serif;
  font-size: 27px;
  letter-spacing: -0.4px;
  font-weight: 400;
  margin: 0;
}
h3 {
  font-size: 17px;
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.3px;
}
.subtext {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 480px;
  margin: 18px 0 0;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-bottom: 34px;
}
.intro-aside {
  background: #eff6ff;
  max-width: 290px;
  border-radius: 16px;
  padding: 24px;
  font-size: 12px;
  line-height: 1.7;
  color: #52647a;
}
.intro-aside strong {
  font-size: 14px;
  color: var(--primary);
}
.intro-aside p {
  margin: 10px 0 14px;
}
.text-link {
  color: var(--primary);
  font-weight: 650;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 11px 14px;
  max-width: 360px;
  flex: 1;
  color: var(--muted);
}
.search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}
.toolbar select {
  max-width: 190px;
}
.select {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
  font-size: 12px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.walk-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  position: relative;
}
.walk-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px #0b1f3a0c;
}
.cover {
  aspect-ratio: 1.52;
  background: #dbeafe;
  position: relative;
  overflow: hidden;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover .tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #ffffffec;
  color: #3b506b;
  padding: 6px 9px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
}
.cover svg {
  width: 100%;
  height: 100%;
}
.card-body {
  padding: 19px 20px 17px;
}
.author {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  margin-bottom: 9px;
}
.author .tiny-avatar {
  background: #eff6ff;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 8px;
  color: #47719f;
}
.stats {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 10px;
  margin-top: 16px;
  border-top: 1px solid #dbe5f2;
  padding-top: 13px;
}
.stats b {
  font-weight: 600;
  color: #3b506b;
}
.card-body .date {
  font-size: 10px;
  color: #52647a;
  margin-top: 6px;
}
.empty {
  border: 1px dashed #cbd8ea;
  min-height: 250px;
  border-radius: 18px;
  padding: 45px;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  gap: 16px;
  background: #f5f9ff;
}
.empty p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 440px;
  margin: 0;
}
.empty .apple {
  width: auto;
}
.button {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
}
.button:hover {
  background: #f5f9ff;
}
.button.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.button.primary:hover {
  background: #183b61;
}
.button.dark {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.button.small {
  padding: 8px 12px;
  font-size: 11px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.quiet {
  font-size: 11px;
  color: var(--muted);
}
.notice {
  font-size: 12px;
  color: #52647a;
  background: #eff6ff;
  border-radius: 11px;
  padding: 14px 18px;
  line-height: 1.7;
  margin: 20px 0;
}
.error {
  color: #92412f;
  background: #fff0e8;
  border: 1px solid #efd2c0;
  border-radius: 10px;
  padding: 16px;
  font-size: 13px;
  line-height: 1.65;
}
.walk-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 18px 0 28px;
}
.walk-heading h1 {
  font-size: 40px;
  max-width: 670px;
}
.walk-heading .author {
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 12px;
}
.back-link {
  font-size: 11px;
  color: var(--muted);
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 25px;
  margin: 0 0 24px;
}
.tabs button {
  border: 0;
  background: none;
  font-size: 12px;
  padding: 13px 0;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tabs button.active {
  border-color: var(--accent);
  color: var(--ink);
  font-weight: 650;
}
.walk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 1fr);
  gap: 24px;
  align-items: start;
}
.map-panel {
  position: sticky;
  top: 24px;
}
.map-frame {
  border: 1px solid var(--line);
  border-radius: 17px;
  overflow: hidden;
  background: #eff6ff;
  height: 440px;
  position: relative;
}
.map-frame svg {
  width: 100%;
  height: 100%;
}
.map-frame #map {
  height: 100%;
  width: 100%;
}
.map-tools {
  display: flex;
  justify-content: space-between;
  margin-top: 13px;
  align-items: center;
}
.map-caption {
  font-size: 10px;
  line-height: 1.7;
  color: #52647a;
  max-width: 310px;
  margin-top: 12px;
}
.map-summary {
  display: flex;
  justify-content: space-between;
  background: white;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 13px;
  margin-top: 17px;
  gap: 15px;
}
.map-summary strong {
  display: block;
  font-size: 20px;
  font-weight: 550;
  color: var(--primary);
}
.map-summary span {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.moment {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px;
  margin-bottom: 18px;
}
.moment img {
  width: 100%;
  max-height: 310px;
  object-fit: cover;
  border-radius: 10px;
  background: #eff6ff;
  min-height: 60px;
}
.moment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 3px 1px 13px;
}
.moment-top strong {
  font-size: 12px;
}
.moment-number {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  background: #eff6ff;
  color: var(--primary);
  border-radius: 50%;
  font-size: 10px;
  margin-right: 9px;
}
.moment h3 {
  margin: 14px 0 8px;
  font-size: 15px;
}
.moment p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 10px 0;
}
.narration-box {
  border-radius: 9px;
  background: #f5f9ff;
  padding: 15px;
  font-size: 12px;
  line-height: 1.8;
}
.narration-box .actions {
  margin-top: 13px;
}
.editor {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 23px;
}
.editor-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.field {
  display: block;
  margin: 18px 0;
  font-size: 11px;
  font-weight: 600;
  color: #52647a;
}
.field input,
.field textarea,
.field select {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f5f9ff;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.65;
}
.field textarea {
  resize: vertical;
  min-height: 95px;
}
.field .hint {
  font-size: 10px;
  color: #52647a;
  font-weight: 400;
  display: block;
  margin-top: 6px;
}
.editor-divider {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 20px;
}
.editor-photo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
  float: right;
  margin: 0 0 12px 15px;
}
.savebar {
  position: sticky;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 13px 18px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 20px #0b1f3a0b;
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
  z-index: 2;
}
.checkin {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  margin-bottom: 14px;
  font-size: 12px;
}
.checkin .stars {
  color: #c65a14;
  font-size: 16px;
  letter-spacing: 2px;
}
.checkin p {
  color: var(--muted);
  line-height: 1.8;
}
.planner-layout {
  display: grid;
  grid-template-columns: minmax(350px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
}
.planner-layout .map-panel {
  order: 2;
}
.plan-steps {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.plan-stop {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  background: white;
}
.plan-stop span {
  flex: 1;
}
.plan-stop button {
  border: 0;
  background: transparent;
  font-size: 16px;
  color: var(--muted);
}
.search-results {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}
.search-results button {
  border: 1px solid var(--line);
  border-radius: 9px;
  text-align: left;
  padding: 12px;
  background: #fff;
  font-size: 12px;
}
.search-results small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.plan-result {
  background: #eff6ff;
  border: 1px solid #cbd8ea;
  border-radius: 13px;
  padding: 20px;
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.8;
}
.plan-result h3 {
  margin-bottom: 10px;
}
.plan-result p {
  margin: 8px 0;
}
.badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.7px;
  border-radius: 5px;
  background: #eff6ff;
  color: #52647a;
  padding: 5px 8px;
  margin-left: 8px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #0b1f3a;
  color: white;
  border-radius: 10px;
  padding: 14px 22px;
  font-size: 12px;
  box-shadow: 0 6px 25px #0002;
  z-index: 15;
  max-width: 90vw;
  display: none;
}
#toast.visible {
  display: block;
}
dialog {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 19px;
  max-width: 520px;
  width: calc(100% - 40px);
  box-shadow: 0 25px 80px #0b1f3a22;
  color: var(--ink);
}
dialog::backdrop {
  background: #0b1f3a4d;
  backdrop-filter: blur(3px);
}
dialog h2 {
  margin-bottom: 17px;
}
dialog p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
dialog input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font-size: 11px;
  margin: 10px 0 16px;
}
.icon-button {
  border: 0;
  background: transparent;
  font-size: 23px;
  color: var(--muted);
  padding: 0 5px;
  float: right;
}
.skip {
  position: absolute;
  top: -80px;
  left: 20px;
  z-index: 30;
  padding: 12px;
  background: white;
  border-radius: 9px;
}
.skip:focus {
  top: 12px;
}
.loading {
  padding: 60px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.load-more {
  margin: 28px auto;
  display: flex;
}
.collection-note {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 35px;
  padding-top: 24px;
  color: #52647a;
  font-size: 11px;
  line-height: 1.8;
}
.mobile-brand {
  display: none;
}
@media (min-width: 1500px) {
  main {
    padding: 48px 55px;
  }
  .map-frame {
    height: 560px;
  }
  .grid {
    gap: 28px;
  }
  h1 {
    font-size: 62px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .sidebar {
    padding: 26px 16px;
  }
  .topbar {
    padding: 0 28px;
  }
  main {
    padding: 30px 28px;
  }
  .intro-aside {
    max-width: 235px;
    padding: 20px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  h1 {
    font-size: 43px;
  }
  .walk-layout {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 1fr);
  }
  .walk-heading {
    flex-wrap: wrap;
  }
  .planner-layout {
    grid-template-columns: 1fr;
  }
  .planner-layout .map-panel {
    order: 0;
    position: static;
  }
  .planner-layout .map-frame {
    height: 320px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 22px;
  }
  .brand-icon {
    width: 31px;
    height: 31px;
  }
  .beta {
    margin-left: 4px;
  }
  .nav-label,
  .phone-note,
  .legal {
    display: none;
  }
  nav {
    display: flex;
    gap: 7px;
    margin-top: 19px;
    overflow-x: auto;
  }
  nav a {
    padding: 9px 10px;
    white-space: nowrap;
    font-size: 11px;
    gap: 6px;
  }
  nav a span {
    font-size: 16px;
    width: 15px;
  }
  .sidebar-bottom {
    padding: 0;
    margin: 0;
    position: absolute;
    right: 20px;
    top: 17px;
  }
  #account {
    padding: 0;
  }
  .apple {
    padding: 9px 12px;
    width: auto;
    font-size: 10px;
  }
  .topbar {
    height: 48px;
    padding: 0 20px;
    font-size: 10px;
  }
  .topbar > div {
    font-size: 9px;
  }
  main {
    padding: 28px 20px;
  }
  .intro {
    gap: 20px;
    display: block;
  }
  .intro-aside {
    display: none;
  }
  h1 {
    font-size: 43px;
  }
  .subtext {
    font-size: 12px;
  }
  .toolbar {
    gap: 8px;
    flex-wrap: wrap;
  }
  .search {
    max-width: none;
    flex-basis: 100%;
  }
  .toolbar select {
    max-width: none;
    width: 100%;
  }
  .grid {
    gap: 16px;
  }
  .card-body {
    padding: 15px;
  }
  .stats {
    gap: 8px;
    flex-wrap: wrap;
  }
  h3 {
    font-size: 15px;
  }
  .cover .tag {
    top: 10px;
    left: 10px;
    font-size: 8px;
  }
  .walk-heading h1 {
    font-size: 33px;
  }
  .walk-layout {
    display: block;
  }
  .map-panel {
    position: static;
    margin-bottom: 23px;
  }
  .map-frame {
    height: 330px;
  }
  .map-caption {
    max-width: none;
  }
  .tabs {
    gap: 20px;
  }
  .walk-heading {
    margin-bottom: 18px;
    gap: 18px;
  }
  .moment img {
    max-height: none;
  }
  .empty {
    padding: 35px 23px;
  }
  .planner-layout {
    display: block;
  }
  .editor {
    padding: 20px;
  }
  .savebar {
    bottom: 10px;
  }
  .collection-note {
    align-items: flex-start;
    font-size: 10px;
  }
  .section-heading h2 {
    font-size: 24px;
  }
}
@media (max-width: 430px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .cover {
    aspect-ratio: 1.65;
  }
  .account-user .user-name {
    display: none;
  }
  .topbar > div {
    display: none;
  }
  .map-summary strong {
    font-size: 18px;
  }
  .map-summary {
    padding: 16px;
  }
  .walk-heading .actions .button {
    padding: 9px 12px;
  }
  .toolbar {
    margin: 23px 0;
  }
}

.login-card form {display:flex;flex-direction:column;gap:12px;margin:20px 0}.login-card [hidden]{display:none!important}.login-card input{font:inherit;padding:14px;border:1px solid var(--control-line,#7b91ac);border-radius:10px;width:100%;box-sizing:border-box}.login-card #code{letter-spacing:.3em}.login-card button:disabled{opacity:.5;cursor:default}

/* Indeterminate progress stays visible while sign-in work is pending. */
.login-progress { inline-size: 2.25rem; block-size: .5rem; margin-inline-end: .6rem; accent-color: #1b4a80; vertical-align: middle; }

/* White/navy account shell; orange marks the form entry without competing actions. */
.login-card{border-top:3px solid #c66a1f}
