:root {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    "Malgun Gothic",
    sans-serif;
  color: #203d4d;
  background: #f5f7f8;
  line-height: 1.6;
  font-synthesis: none;
  --navy: #163b51;
  --teal: #226580;
  --line: #dce5e9;
  --muted: #647b88;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #da9b36;
  outline-offset: 3px;
}
a {
  color: inherit;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 650;
}
input:not([type="checkbox"], [type="radio"]),
select {
  display: block;
  width: 100%;
  background: #fff;
  border: 1px solid #cbd8de;
  padding: 10px 12px;
  border-radius: 8px;
  color: #203d4d;
  min-height: 44px;
  margin-top: 6px;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--teal);
  width: 17px;
  height: 17px;
  vertical-align: middle;
}
input:disabled {
  background: #edf1f3 !important;
}
.shell {
  max-width: 1320px;
  margin: auto;
  padding: 0 40px;
}
.topbar {
  background: var(--navy);
  color: #fff;
}
.topbar-inner {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 750;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2.5px;
  font-weight: 500;
  opacity: 0.65;
}
.brand-icon {
  background: #315b70;
  border: 1px solid #537485;
  border-radius: 12px;
  padding: 1px 11px;
  font-size: 30px;
}
.unofficial {
  font-size: 0.75rem;
  border: 1px solid #496a7c;
  border-radius: 25px;
  padding: 5px 12px;
  color: #d2e0e7;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 48px 0 36px;
  gap: 24px;
}
.eyebrow {
  color: #5d7f91;
  letter-spacing: 1.8px;
  font-weight: 750;
  font-size: 0.7rem;
  margin-bottom: 10px;
}
.hero h1 {
  font-size: 2.65rem;
  line-height: 1.3;
  letter-spacing: -1.8px;
  color: var(--navy);
}
.hero-copy {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 18px;
}
.hero-card {
  background: #eaf0f3;
  border-left: 3px solid #e5a754;
  padding: 24px 28px;
  border-radius: 0 14px 14px 0;
  min-width: 300px;
}
.hero-card strong {
  font-size: 0.95rem;
}
.hero-card p {
  font-size: 0.83rem;
  color: var(--muted);
  margin-top: 10px;
  padding-left: 16px;
}
.dot {
  display: inline-block;
  background: #d69d4b;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 10px;
}
.modebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.mode-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #e6ecef;
  border-radius: 10px;
}
.mode-tabs button {
  padding: 9px 19px;
  border-radius: 7px;
  color: #5f7683;
  background: transparent;
  font-size: 0.84rem;
  font-weight: 650;
}
.mode-tabs .selected {
  background: #fff;
  box-shadow: 0 2px 5px #19384e15;
  color: #1e526b;
}
.text-button {
  background: none;
  color: var(--teal);
  padding: 9px 4px;
  font-size: 0.83rem;
  font-weight: 650;
}
.notice {
  padding: 13px 16px;
  background: #eaf2f6;
  color: #365f74;
  border: 1px solid #d6e5ec;
  border-radius: 9px;
  margin: 16px 0 24px;
  font-size: 0.8rem;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.planner {
  min-width: 0;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 16px;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.section-heading h2 {
  font-size: 1rem;
  letter-spacing: -0.4px;
}
.step {
  font-size: 0.68rem;
  background: #edf3f6;
  color: #517c91;
  border-radius: 6px;
  padding: 3px 6px;
  font-weight: 750;
}
.count {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--muted);
}
.hint {
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 10px;
}
.place-summary {
  border-radius: 10px;
  background: #f4f7f9;
  padding: 14px 16px;
  margin: 14px 0;
  font-size: 0.88rem;
}
.place-summary strong {
  display: block;
  font-weight: 650;
}
.place-summary span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 650;
}
.outline {
  border: 1px solid #c9d9e1;
  background: white;
  color: var(--teal);
}
.outline:hover {
  background: #f2f7fa;
}
.primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 12px #1d5e7a15;
}
.primary:hover {
  background: #174c64;
}
.full {
  width: 100%;
}
.privacy {
  border-top: 1px solid #eef2f4;
  padding-top: 12px;
}
.visit-toolbar {
  display: flex;
  justify-content: flex-end;
}
.visit {
  border: 1px solid #dce5e9;
  border-radius: 9px;
  margin-bottom: 10px;
  background: #fff;
}
.visit summary {
  padding: 13px 12px;
  cursor: pointer;
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 650;
  font-size: 0.85rem;
}
.visit summary:after {
  content: "⌄";
  margin-left: auto;
  color: #688594;
}
.visit-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9f1f5;
  color: #285d77;
  font-size: 0.72rem;
  flex-shrink: 0;
}
.visit-content {
  padding: 0 14px 14px;
}
.visit-address {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 6px 0 12px;
  overflow-wrap: anywhere;
}
.visit-content label {
  margin-top: 12px;
  font-size: 0.78rem;
}
.visit-actions {
  display: flex;
  gap: 10px;
  border-top: 1px solid #edf1f3;
  margin-top: 10px;
}
.visit-actions button {
  padding: 8px 10px;
  border-radius: 5px;
  background: #f0f5f7;
  color: #3c667b;
  margin-top: 10px;
  font-size: 0.75rem;
}
.visit-actions .delete {
  margin-left: auto;
  color: #a8554c;
  background: #fbf2ef;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.wide {
  grid-column: 1/-1;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0;
}
.objective {
  border: 0;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  gap: 18px;
}
.objective legend {
  font-size: 0.85rem;
  font-weight: 650;
  margin-bottom: 8px;
}
.objective label {
  font-size: 0.8rem;
  display: flex;
  gap: 6px;
  align-items: center;
}
.calculate-box {
  padding: 0 2px 16px;
}
.calculate-box .primary {
  margin-top: 8px;
  min-height: 52px;
  font-size: 0.95rem;
}
.error {
  font-size: 0.85rem;
  background: #fff0ee;
  color: #a33d30;
  padding: 14px;
  border-radius: 8px;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
#progress {
  font-size: 0.8rem;
  color: var(--teal);
  margin-top: 8px;
}
.results {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  min-width: 0;
  min-height: 640px;
}
.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.results-heading h2 {
  font-size: 1.3rem;
  letter-spacing: -0.5px;
}
.results-heading .eyebrow {
  font-size: 0.6rem;
  margin-bottom: 3px;
}
.result-badge {
  font-size: 0.7rem;
  color: #617d8d;
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 20px;
}
.empty-state {
  padding: 50px 0 70px;
  text-align: center;
}
.empty-state svg {
  max-width: 330px;
  width: 100%;
  margin: 20px 0;
}
.empty-state h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.empty-state p {
  font-size: 0.87rem;
  color: var(--muted);
}
.empty-state > span {
  display: block;
  font-size: 0.75rem;
  color: #889da7;
  margin-top: 25px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0;
}
.metric {
  background: #f2f6f8;
  border-radius: 10px;
  padding: 15px 12px;
}
.metric span {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.metric strong {
  font-size: 1.2rem;
  letter-spacing: -0.7px;
}
.metric:last-child {
  grid-column: span 2;
  background: #eaf3f6;
}
.map-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #f9fbfc;
  margin-bottom: 26px;
}
.map-heading {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.map-heading h3,
.schedule-heading h3 {
  font-size: 0.9rem;
}
.map-heading span,
.schedule-heading > span {
  font-size: 0.7rem;
  color: var(--muted);
}
#map-message {
  padding: 16px;
  margin: 0;
}
#map {
  height: 360px;
}
#map-message:empty {
  display: none;
}
.map-number {
  display: block;
  border-radius: 50%;
  padding: 3px 8px;
  color: #fff;
  background: #205e7c;
  font: 700 12px sans-serif;
}
.map-info {
  padding: 12px;
  width: 220px;
  white-space: normal;
  font: 12px sans-serif;
}
.schedule-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 0.73rem;
  text-align: left;
}
th {
  padding: 12px;
  background: #edf3f6;
  color: #537182;
  font-weight: 650;
}
td {
  padding: 12px;
  border-top: 1px solid #e6edf1;
}
tr:first-child td {
  color: #51758b;
}
td:nth-child(2) {
  font-weight: 650;
}
.downloads {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.downloads .button {
  font-size: 0.75rem;
  padding: 8px 13px;
}
.live-tools {
  padding: 0 0 18px;
  font-size: 0.8rem;
}
.live-tools > * {
  margin-right: 12px;
}
.live-tools pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mobile-only {
  display: none;
}
footer {
  text-align: center;
  color: #7a8f9c;
  font-size: 0.71rem;
  padding: 38px 0 30px;
}
footer p + p {
  margin-top: 3px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  width: min(560px, calc(100% - 24px));
  max-height: 85vh;
  color: var(--navy);
}
dialog::backdrop {
  background: #102d43aa;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dialog-heading h2 {
  font-size: 1.2rem;
}
.icon-button {
  background: #edf2f4;
  padding: 7px 12px;
  border-radius: 8px;
}
#search-form .form-grid {
  margin: 14px 0;
}
#search-status {
  font-size: 0.8rem;
  margin: 12px 0;
}
.search-result {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid var(--line);
  background: #f6f9fa;
  border-radius: 8px;
  color: var(--navy);
}
.search-result strong,
.search-result span {
  display: block;
}
.search-result span {
  font-size: 0.75rem;
  margin-top: 4px;
}
.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  background: white;
  padding: 10px;
  z-index: 1000;
}
.skip-link:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1100px) {
  .results {
    position: sticky;
    top: 20px;
  }
}
@media (max-width: 1000px) {
  .shell {
    padding: 0 24px;
  }
  .workspace {
    grid-template-columns: 350px minmax(0, 1fr);
    gap: 18px;
  }
  .results {
    padding: 20px;
  }
  .hero h1 {
    font-size: 2.35rem;
  }
  .hero-card {
    min-width: 260px;
    padding: 20px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric:last-child {
    grid-column: span 2;
  }
}
@media (max-width: 760px) {
  .shell {
    padding: 0 18px;
  }
  .topbar-inner {
    height: 75px;
  }
  .brand {
    font-size: 0.95rem;
  }
  .brand small {
    font-size: 8px;
  }
  .brand-icon {
    font-size: 25px;
    padding: 0 9px;
  }
  .unofficial {
    display: none;
  }
  .hero {
    padding: 30px 0 26px;
  }
  .hero h1 {
    font-size: 2rem;
    letter-spacing: -1.2px;
  }
  .hero-copy {
    font-size: 0.83rem;
  }
  .hero-card {
    display: none;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .mode-tabs button {
    padding: 9px 12px;
    font-size: 0.76rem;
  }
  .modebar > .text-button {
    font-size: 0.7rem;
  }
  .notice {
    font-size: 0.74rem;
    padding: 12px;
    margin: 14px 0 20px;
  }
  .panel {
    padding: 20px;
  }
  .results {
    min-height: 480px;
    padding: 20px;
  }
  .empty-state {
    padding: 12px 0 35px;
  }
  .empty-state svg {
    max-width: 230px;
  }
  .mobile-only {
    display: initial;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric strong {
    font-size: 1.25rem;
  }
  .downloads .button {
    flex: 1;
    white-space: nowrap;
  }
  .live-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .schedule-heading > span {
    display: none;
  }
  footer {
    padding: 25px 8px;
  }
  .objective {
    gap: 10px;
  }
}
.visit-meta {
  display: block;
  font-size: 0.67rem;
  font-weight: 500;
  color: #6b8594;
  margin-top: 2px;
}
