:root { --blue: #1a73e8; --line: #e3e3e3; --muted: #666; --bg: #f7f7f5; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.45 system-ui, -apple-system, sans-serif; background: var(--bg); color: #1d1d1f; }
.top { padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background: #fff; border-bottom: 1px solid var(--line); font-weight: 600; }
.top a { color: inherit; text-decoration: none; }
.page { max-width: 720px; margin: 0 auto; padding: 16px; }
h1 { font-size: 22px; margin: 4px 0 12px; }
h2 { font-size: 17px; margin: 20px 0 8px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.button, button, input[type=submit] { display: inline-block; background: var(--blue); color: #fff; border: 0; border-radius: 10px;
  padding: 12px 16px; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; width: 100%; text-align: center; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field input[type=text], .field input[type=number], .field select { width: 100%; padding: 10px; font-size: 16px; border: 1px solid #ccc; border-radius: 8px; background: #fff; }
.hint { color: var(--muted); font-size: 14px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; font-weight: 400; }
.bar { height: 10px; background: #eee; border-radius: 5px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--blue); }
.list a { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.status { color: var(--muted); font-size: 14px; }
.notice { background: #e6f4ea; color: #137333; padding: 10px 12px; border-radius: 8px; }
button.danger { background: #fff; color: #a50e0e; border: 1px solid #f1b8b4; }
.alert, .errors { background: #fdecea; color: #a50e0e; padding: 10px 12px; border-radius: 8px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.stats b { display: block; font-size: 20px; }
.map { width: 100%; height: 75vh; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

/* installed on the iPhone home screen: respect the notch and the home indicator */
.page { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.top { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 10; }
.top form { margin: 0; }
button.link, .link { background: none; color: var(--blue); width: auto; padding: 4px 0; font-weight: 500; font-size: 15px; }
.login { text-align: center; max-width: 380px; margin: 40px auto; }
.login img { border-radius: 16px; }
.login .field { text-align: left; }
.login input[type=password] { width: 100%; padding: 12px; font-size: 17px; border: 1px solid #ccc; border-radius: 10px; }
.nav-sections { display: grid; gap: 8px; }
.resume { display: grid; gap: 6px; margin-bottom: 10px; }
.resume .big { font-size: 20px; padding: 18px; text-align: center; }
.resume .adjust { display: flex; justify-content: space-between; margin: 0; }
.sections summary { color: var(--blue); font-weight: 500; margin: 6px 0 10px; }
.stops li.done { opacity: 0.45; }
.inline { display: flex; gap: 16px; flex-wrap: wrap; }
.inline input[type=number] { width: 4.5em; }
.tour-image { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); display: block; }
.stops { list-style: none; padding: 0; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.stops li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.stops li:last-child { border-bottom: 0; }
.stops .dot { flex: none; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #bbb; }
.stops .what { flex: 1; }
.stops small { display: block; color: var(--muted); }
.stops .go { flex: none; background: var(--blue); color: #fff; text-decoration: none; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.map { height: 60vh; }
