:root {
  color: #18241f;
  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: #eef1ef;
}

button,
iframe {
  font: inherit;
}

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

.lab-toolbar {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 4.8rem;
  grid-template-columns: minmax(10.5rem, 0.72fr) minmax(38rem, 2.5fr) minmax(14rem, 0.85fr);
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.1rem;
  border-bottom: 1px solid rgb(43 66 56 / 18%);
  background: rgb(250 252 251 / 96%);
  box-shadow: 0 0.5rem 2rem rgb(27 42 35 / 8%);
}

.lab-heading p,
.lab-heading h1,
.lab-note strong,
.lab-note span {
  margin: 0;
}

.lab-heading p {
  color: #586861;
  font-size: 0.56rem;
  font-weight: 820;
  letter-spacing: 0.14em;
}

.lab-heading h1 {
  margin-top: 0.2rem;
  font-size: 0.92rem;
  letter-spacing: -0.035em;
}

.variant-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.variant-tabs button {
  display: grid;
  min-width: 0;
  height: 2.8rem;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.42rem;
  padding: 0 0.62rem;
  border: 1px solid rgb(54 78 67 / 15%);
  border-radius: 0.28rem;
  background: #fff;
  color: #53615b;
  cursor: pointer;
  text-align: left;
  transition: border-color 140ms linear, background-color 140ms linear, color 140ms linear;
}

.variant-tabs button:hover {
  border-color: rgb(39 111 91 / 42%);
  background: #f4f8f6;
}

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

.variant-tabs button[aria-current="true"] {
  border-color: #2f7462;
  background: #eaf3ef;
  color: #174f40;
}

.variant-tabs span {
  font-size: 0.54rem;
  font-weight: 820;
  letter-spacing: 0.05em;
}

.variant-tabs strong {
  overflow: hidden;
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lab-note {
  display: grid;
  justify-items: end;
  gap: 0.18rem;
  text-align: right;
}

.lab-note strong {
  color: #26342e;
  font-size: 0.72rem;
}

.lab-note span {
  color: #5e6c65;
  font-size: 0.58rem;
  line-height: 1.35;
}

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

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

@media (max-width: 64rem) {
  .lab-toolbar {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.65rem;
  }

  .lab-heading,
  .lab-note {
    display: none;
  }

  .variant-tabs {
    gap: 0.25rem;
  }

  .variant-tabs button {
    height: 2.5rem;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.08rem;
    padding: 0 0.2rem;
    text-align: center;
  }

  .variant-tabs strong {
    max-width: 100%;
    font-size: 0.56rem;
  }
}

@media (max-width: 30rem) {
  .variant-tabs strong {
    display: none;
  }
}
