:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17202a;
  background: #f4f7f8;
}

* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; }

.app {
  display: grid;
  gap: 14px;
  max-width: 720px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px;
}

.status,
.now,
.script,
.route {
  background: #fff;
  border: 1px solid #dbe4ea;
  border-radius: 8px;
  padding: 16px;
}

.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.eyebrow,
.label {
  margin: 0 0 5px;
  color: #60717f;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

h2 {
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: 0;
}

#distanceText {
  margin-top: 8px;
  color: #536575;
  font-size: 15px;
}

.triggerText {
  margin-top: 7px;
  color: #7a5b00;
  font-size: 13px;
}

.badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 10px;
  background: #e9eef3;
  color: #405160;
  font-size: 12px;
  font-weight: 750;
}

.badge.good {
  background: #e4f4ec;
  color: #0f6845;
}

.badge.warn {
  background: #fff2d8;
  color: #815300;
}

.controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

button {
  min-height: 48px;
  border: 1px solid #b7c3cf;
  border-radius: 8px;
  background: #fff;
  color: #17202a;
  font-weight: 760;
}

button.primary {
  border-color: #2364aa;
  background: #2364aa;
  color: #fff;
}

button:active {
  transform: translateY(1px);
}

#scriptText {
  white-space: pre-wrap;
  color: #263442;
  font-size: 16px;
  line-height: 1.48;
}

#routeList {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

#routeList li {
  padding: 10px 12px;
  border: 1px solid #dbe4ea;
  border-radius: 7px;
  background: #f9fbfc;
  color: #405160;
}

#routeList li.active {
  border-color: #2364aa;
  background: #eaf2fb;
  color: #173d68;
  font-weight: 760;
}

#routeList li.done {
  color: #0f6845;
  background: #eaf7f1;
}

@media (max-width: 520px) {
  .app { padding: 12px; }
  .status { align-items: flex-start; }
  h1 { font-size: 19px; }
  h2 { font-size: 22px; }
}
