:root {
  color: #17211d;
  font-family: Pretendard, SUIT, "Noto Sans KR", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #f3f5f4;
}

button,
iframe {
  font: inherit;
}

.route-lab {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
}

.route-lab-toolbar {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 5.2rem;
  grid-template-columns: minmax(13rem, 0.8fr) minmax(38rem, 2.6fr) minmax(14rem, 0.85fr);
  align-items: center;
  gap: 1.2rem;
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid rgb(49 68 59 / 16%);
  background: rgb(252 253 252 / 97%);
  box-shadow: 0 0.7rem 2.4rem rgb(27 42 35 / 7%);
}

.route-lab-heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.route-lab-heading > span {
  min-width: 3.7rem;
  padding-right: 0.8rem;
  border-right: 1px solid rgb(53 74 65 / 20%);
  color: #2f7462;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.route-lab-heading p,
.route-lab-heading h1,
.route-lab-actions p {
  margin: 0;
}

.route-lab-heading p {
  color: #586660;
  font-size: 0.55rem;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.route-lab-heading h1 {
  margin-top: 0.15rem;
  font-size: 0.94rem;
  letter-spacing: -0.035em;
}

.variant-index {
  display: grid;
  grid-template-columns: repeat(20, minmax(1.8rem, 1fr));
  gap: 0.22rem;
}

.variant-index button {
  position: relative;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #616d67;
  cursor: pointer;
  font-size: 0.58rem;
  font-weight: 760;
}

.variant-index button::after {
  position: absolute;
  right: 0.18rem;
  bottom: 0.18rem;
  left: 0.18rem;
  height: 1px;
  background: #d1d7d4;
  content: "";
}

.variant-index button:hover {
  color: #2f7462;
}

.variant-index button[aria-current="true"] {
  color: #183a30;
  font-weight: 900;
}

.variant-index button[aria-current="true"]::after {
  height: 3px;
  background: #2f7462;
}

.variant-index button:focus-visible,
.route-lab-actions button:focus-visible {
  outline: 2px solid rgb(47 116 98 / 55%);
  outline-offset: 2px;
}

.route-lab-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
}

.route-lab-actions p {
  max-width: 14rem;
  color: #66716c;
  font-size: 0.58rem;
  line-height: 1.4;
  text-align: right;
}

.route-lab-actions > div {
  display: flex;
  gap: 0.28rem;
}

.route-lab-actions button {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid rgb(54 76 66 / 18%);
  border-radius: 50%;
  background: #fff;
  color: #32423b;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.route-lab-actions button:hover {
  border-color: rgb(47 116 98 / 52%);
  background: #edf4f0;
}

.route-preview {
  min-height: 0;
  background: #fff;
}

.route-preview iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

@media (max-width: 70rem) {
  .route-lab-toolbar {
    min-height: 6rem;
    grid-template-columns: minmax(12rem, auto) minmax(0, 1fr);
    gap: 0.5rem 1rem;
  }

  .variant-index {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    grid-template-columns: repeat(20, 2.2rem);
    scrollbar-width: thin;
  }

  .route-lab-actions p {
    display: none;
  }
}

@media (max-width: 42rem) {
  .route-lab-toolbar {
    min-height: 6.6rem;
    padding: 0.55rem 0.65rem;
  }

  .route-lab-heading > span {
    min-width: 3.25rem;
    font-size: 0.58rem;
  }

  .route-lab-heading p {
    display: none;
  }

  .route-lab-heading h1 {
    font-size: 0.82rem;
  }

  .route-lab-actions button {
    width: 2.1rem;
    height: 2.1rem;
  }
}
