:root {
  color-scheme: light;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: #172b24;
  background: #f3f5ef;
  --ink: #172b24;
  --muted: #53665c;
  --line: #dbe5da;
  --green: #23634d;
  --green-dark: #194a38;
  --tint: #edf5ec;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid #296f55;
  outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
.shell { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.top { color: #fff; background: #182723; }
.top-inner, .brand, .top-actions { display: flex; align-items: center; gap: 12px; }
.top-inner { min-height: 64px; justify-content: space-between; }
.brand { font-weight: 800; letter-spacing: -.04em; }
.brand svg {
  width: 32px;
  padding: 4px;
  border-radius: 9px;
  background: #d7e9ce;
  stroke: #1b563d;
  stroke-width: 2.2;
  stroke-linecap: round;
  fill: #d7e9ce;
}
.brand-detail { color: #c3d3c9; font-weight: 500; margin-left: 4px; }
.mode { border-radius: 99px; background: #f4e6bd; color: #593f12; padding: 5px 10px; font-weight: 750; font-size: .75rem; white-space: nowrap; }
.mode.live { background: #d7e9ce; color: #1b503a; }
.top-action { border: 0; background: transparent; color: #e0ece5; padding: 8px 0; font-size: .8rem; text-decoration: none; white-space: nowrap; }
.top-action:hover { text-decoration: underline; text-underline-offset: 3px; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 35px 0 21px; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.eyebrow { color: var(--green); font-size: .77rem; font-weight: 800; letter-spacing: .04em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); letter-spacing: -.07em; line-height: 1.16; margin: 6px 0 8px; }
.intro p:last-child { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.notice { background: #fbf3dd; border: 1px solid #efdfb9; color: #5c4418; border-radius: 10px; padding: 11px 14px; font-size: .84rem; line-height: 1.5; }
#startup, #demo-notice { margin: 0 0 15px; }
#startup { margin-top: 25px; }
.workspace { display: grid; grid-template-columns: minmax(325px, 2fr) minmax(0, 3fr); gap: 18px; align-items: start; }
.panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 2px 5px #253e2910; }
.section-head { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
h2 { font-size: 1.25rem; letter-spacing: -.035em; margin-top: 4px; }
.tag { border-radius: 99px; padding: 5px 9px; font-size: .73rem; font-weight: 750; color: #375a45; background: var(--tint); white-space: nowrap; }
.input-line { display: flex; gap: 7px; align-items: center; }
.origin { display: flex; align-items: start; gap: 9px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.origin strong { display: block; margin-top: 3px; }
.origin .hint { margin-top: 2px; }
.entry label, #login-form > label:first-child { display: block; font-size: .89rem; font-weight: 750; margin-bottom: 7px; }
.entry { padding: 15px 0 12px; }
.entry .button { margin-top: 8px; }
input[type="text"], input[type="password"], textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd8cd;
  border-radius: 8px;
  background: #fcfdfb;
  color: var(--ink);
  padding: 9px 10px;
  font-size: 1rem;
  line-height: 1.4;
}
textarea { display: block; resize: vertical; }
textarea::placeholder { color: #62756a; opacity: 1; }
.hint { color: var(--muted); font-size: .77rem; line-height: 1.55; margin-top: 7px; }
code { font: inherit; font-weight: 700; }
.button { border: 1px solid transparent; border-radius: 8px; padding: 9px 12px; font-size: .85rem; font-weight: 750; line-height: 1.5; white-space: nowrap; }
.primary { background: var(--green); color: #fff; }
.primary:hover { background: var(--green-dark); }
.secondary { background: var(--tint); color: var(--green-dark); }
.secondary:hover, .quiet:hover { background: #dfecdc; }
.quiet { background: #fff; border-color: var(--line); color: var(--green-dark); }
.compact { padding-inline: 8px; }
.route-actions { display: flex; gap: 8px; margin-top: 15px; }
.calculate { flex: 1; font-size: .96rem; }
.message { margin-top: 8px; color: var(--green-dark); font-size: .83rem; line-height: 1.5; }
.message:empty { display: none; }
.message.error, #login-status { color: #9f3d2a; }
.marker {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 50%;
  background: #e6f0e4;
  color: #29573f;
  font-size: .77rem;
  font-weight: 800;
}
.origin-marker { background: #263e31; color: #fff; }
.stops { list-style: none; padding: 0; margin: 0; }
.stop { padding: 10px 0; border-top: 1px solid var(--line); }
.match:empty { display: none; }
.match { margin-top: 7px; }
.selected { display: flex; gap: 7px; align-items: start; justify-content: space-between; color: var(--green-dark); font-size: .82rem; line-height: 1.5; }
.selected small, .candidate small, .waypoint small { color: var(--muted); display: block; font-size: .77rem; font-weight: 400; }
.candidate { display: block; width: 100%; text-align: left; background: #f8faf7; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; margin-top: 5px; font-size: .83rem; color: var(--ink); font-weight: 750; }
.candidate:hover { border-color: #5b8e70; }
.remove { border: 0; background: transparent; color: #516356; padding: 5px; min-width: 24px; font-size: 1.25rem; line-height: 1; }
.remove:hover { color: #9f3d2a; }
.text-button { border: 0; padding: 2px 0; color: var(--green-dark); background: transparent; text-decoration: underline; text-underline-offset: 3px; font-size: .78rem; font-weight: 750; white-space: nowrap; }
.favorites { margin-bottom: 12px; }
.favorites h3 { margin-bottom: 5px; font-size: .84rem; }
.favorites small { color: var(--muted); font-weight: 400; margin-left: 4px; }
#favorites { display: flex; flex-wrap: wrap; gap: 5px; }
.favorite { display: inline-flex; gap: 4px; min-width: 0; max-width: 100%; padding: 2px 5px 2px 9px; border-radius: 8px; background: var(--tint); align-items: center; }
.favorite .text-button { white-space: normal; text-align: left; overflow-wrap: anywhere; }
.metric { margin: 12px 0 0; padding: 0; border: 0; display: flex; gap: 7px; }
.metric legend { font-size: .84rem; font-weight: 750; margin-bottom: 7px; }
.metric label { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); padding: 6px 8px; border-radius: 8px; color: var(--muted); font-size: .8rem; cursor: pointer; }
.metric label:has(:checked) { border-color: #75a286; background: var(--tint); color: var(--green-dark); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--green); }
.empty { min-height: 255px; border: 1px dashed #b9cfbd; border-radius: 12px; background: #fafcf8; text-align: center; display: grid; justify-items: center; align-content: center; gap: 9px; padding: 25px 8px; }
.empty svg { width: 57px; margin-bottom: 5px; fill: #e9f2e6; stroke: #76a288; stroke-width: 2; stroke-linecap: round; }
.empty svg path { fill: none; }
.empty p { font-size: .85rem; color: var(--muted); line-height: 1.55; }
.comparisons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.comparison { text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fafbf9; color: var(--ink); font-size: .86rem; font-weight: 800; min-width: 0; word-break: keep-all; }
.comparison[aria-pressed="true"] { background: var(--tint); border-color: #6b9c7c; box-shadow: inset 0 3px #3e785d; }
.comparison:hover { border-color: #6b9c7c; }
.comparison small { display: block; margin-top: 4px; color: var(--muted); font-size: .71rem; line-height: 1.38; min-height: 2.76em; font-weight: 500; }
.comparison strong { display: block; font-size: 1.25rem; letter-spacing: -.04em; margin: 5px 0 2px; }
.comparison .unavailable { font-size: .89rem; }
.secondary-stat, .order { display: block; color: var(--muted); font-size: .74rem; font-weight: 600; }
.order { color: var(--green-dark); padding-top: 8px; overflow-wrap: anywhere; line-height: 1.4; }
.itinerary { margin-top: 17px; }
.itinerary-head { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.itinerary h3 { font-size: .93rem; }
.timeline { list-style: none; margin: 10px 0 0; padding: 0; }
.timeline li { display: flex; align-items: start; gap: 9px; position: relative; min-height: 58px; padding: 8px 0; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; top: 33px; bottom: -8px; left: 12px; border-left: 1px solid #b5cbb9; }
.waypoint { flex: 1; min-width: 0; font-size: .9rem; line-height: 1.45; padding-top: 2px; overflow-wrap: anywhere; }
.waypoint .detail { color: #674913; }
.leg { display: block; color: var(--green-dark); font-weight: 650; font-size: .76rem; margin-top: 4px; }
footer { color: var(--muted); font-size: .76rem; line-height: 1.55; padding: 19px 0 26px; }
footer span { margin-inline: 3px; }
.login-panel { width: min(100%, 380px); margin: 40px auto; }
.login-panel h1 { margin-bottom: 18px; }
#login-form .check { display: block; margin: 12px 0; font-size: .85rem; color: var(--muted); }
#login-form .primary { width: 100%; }
#admin-login .primary { margin-top: 12px; }
.usage-panel { max-width: 780px; }
.usage-panel h2 { margin: 0; }
.usage-scroll { overflow-x: auto; }
.usage-table { width: 100%; min-width: 310px; border-collapse: collapse; font-size: .86rem; }
.usage-table th, .usage-table td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.usage-table th:first-child { text-align: left; }
.usage-table thead { background: var(--tint); color: var(--green-dark); }
.usage-table td { font-variant-numeric: tabular-nums; }
.usage-table td:first-of-type { font-weight: 800; }

@media (max-width: 760px) {
  .shell { width: min(520px, calc(100% - 28px)); }
  .brand-detail { display: block; margin: 2px 0 0; font-size: .7rem; }
  .workspace { grid-template-columns: 1fr; gap: 12px; }
  .intro { flex-direction: column; align-items: start; gap: 12px; padding-top: 22px; }
  .panel { padding: 16px; }
  .comparison { font-size: .78rem; padding-inline: 8px; }
  .comparison strong { font-size: 1.08rem; }
  .usage-table { font-size: .77rem; }
  .usage-table th, .usage-table td { padding-inline: 4px; }
}

@media (max-width: 375px) {
  .shell { width: calc(100% - 20px); }
  .brand-detail { display: none; }
  .comparison { padding: 8px 6px; }
  .comparison strong { font-size: 1.04rem; }
}
