:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang HK", sans-serif;
  color: #203e36;
  background: #f5f6ef;
  line-height: 1.6;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
header {
  background: #203e36;
  color: white;
  padding: 20px max(20px, calc((100% - 1000px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 21px;
}
.brand small {
  font-size: 13px;
  font-weight: 400;
}
main {
  max-width: 1000px;
  margin: 36px auto;
  padding: 0 20px;
  min-height: 65vh;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}
h1 {
  font-size: 30px;
  margin: 6px 0;
}
h2 {
  font-size: 21px;
  margin: 0 0 12px;
}
h3 {
  font-size: 18px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #738064;
}
.card {
  background: white;
  border: 1px solid #dce2d2;
  border-radius: 20px;
  padding: 26px;
  margin: 0 0 20px;
}
.narrow {
  max-width: 450px;
  margin: 8vh auto;
}
.hint,
footer {
  font-size: 13px;
  color: #637367;
}
label {
  display: block;
  margin: 14px 0;
  font-size: 14px;
  font-weight: 600;
}
input,
textarea,
select {
  font: inherit;
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5be;
  border-radius: 9px;
  background: #fbfcf8;
  color: #203e36;
}
textarea {
  resize: vertical;
}
button {
  font: inherit;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 18px;
  background: #214a3e;
  color: #fff;
  cursor: pointer;
  min-height: 46px;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.secondary {
  background: #edf1e4;
  color: #203e36;
  border-color: #d6dfcc;
}
.actions,
.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.row label {
  flex: 1;
  min-width: 120px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.check input {
  width: 20px;
  height: 20px;
  flex: none;
}
.badge {
  background: #e3edbf;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 13px;
}
.route {
  border-left: 3px solid #b4cb76;
  padding-left: 18px;
  overflow-wrap: anywhere;
}
.route p {
  margin: 8px 0;
}
.fare {
  padding: 16px;
  background: #f3f5eb;
  border-radius: 10px;
}
.chat-panel {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #dce2d2;
}
.chat-list {
  max-height: 240px;
  overflow-y: auto;
  padding: 12px;
  background: #f7f8f2;
  border: 1px solid #dce2d2;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.chat-bubble {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.chat-bubble p {
  margin: 4px 0 0;
  white-space: pre-wrap;
}
.chat-bubble.mine {
  align-self: flex-end;
  background: #214a3e;
  color: #ffffff;
}
.chat-bubble.theirs {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid #d6dfcc;
  color: #203e36;
}
.chat-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  opacity: 0.85;
}
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.quick-btn {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
}
.chat-form {
  display: flex;
  gap: 8px;
}
.chat-form input {
  flex: 1;
}
#message {
  background: #fff0d4;
  color: #733b0e;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
summary {
  font-weight: 700;
  cursor: pointer;
}
form + form {
  border-top: 1px solid #dce2d2;
  margin-top: 24px;
  padding-top: 20px;
}
#identity {
  overflow-wrap: anywhere;
  font-size: 13px;
}
a {
  color: #315f4d;
}
footer {
  text-align: center;
  padding: 25px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #86a74b;
  outline-offset: 3px;
}
@media (max-width: 520px) {
  header {
    padding: 15px;
  }
  .brand {
    font-size: 18px;
  }
  .brand small {
    display: none;
  }
  main {
    padding: 0 14px;
    margin: 24px auto;
  }
  .card {
    padding: 20px;
    border-radius: 16px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
  }
  h1 {
    font-size: 26px;
  }
  .actions button {
    flex: 1;
  }
  .row {
    gap: 8px;
  }
}
