:root {
  color-scheme: light;
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, sans-serif;
  background: #f7efe7;
}

* {
  box-sizing: border-box;
}

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

button,
input {
  font: inherit;
}

.composite-lab {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f7efe7;
  color: #3b302a;
}

.composite-lab__canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.composite-lab__identity {
  position: absolute;
  top: 30px;
  left: 34px;
  display: grid;
  gap: 5px;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.composite-lab__identity small,
.composite-lab__identity span {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.16em;
}

.composite-lab__identity strong {
  font-size: 19px;
  font-weight: 620;
  letter-spacing: -0.025em;
}

.composite-lab__identity span {
  color: rgb(59 48 42 / 52%);
}

.composite-lab__status {
  position: absolute;
  inset: auto auto 26px 34px;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 220ms ease;
}

.composite-lab[data-state="ready"] .composite-lab__status {
  opacity: 0;
}

.composite-lab__compare {
  position: absolute;
  top: 30px;
  left: 50%;
  display: flex;
  padding: 3px;
  border: 1px solid rgb(71 58 48 / 16%);
  border-radius: 999px;
  background: rgb(252 248 244 / 72%);
  box-shadow: 0 8px 28px rgb(70 50 35 / 7%);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.composite-lab__compare button {
  min-width: 136px;
  padding: 9px 15px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgb(59 48 42 / 58%);
  font-size: 9px;
  font-weight: 660;
  letter-spacing: 0.11em;
  cursor: pointer;
}

.composite-lab__compare button[aria-pressed="true"] {
  background: #3b302a;
  color: #fbf7f2;
}

.composite-panel {
  position: absolute;
  top: 28px;
  right: 28px;
  width: min(350px, calc(100vw - 56px));
  border: 1px solid rgb(73 58 47 / 17%);
  border-radius: 12px;
  background: rgb(252 249 245 / 88%);
  box-shadow: 0 20px 60px rgb(84 61 43 / 12%);
  backdrop-filter: blur(20px) saturate(1.12);
  overflow: hidden;
}

.composite-panel__header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 15px 16px 13px;
  border-bottom: 1px solid rgb(73 58 47 / 11%);
}

.composite-panel__header span,
.composite-panel__header output {
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.1em;
}

.composite-panel__header output {
  color: rgb(59 48 42 / 52%);
}

.composite-panel__header button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3b302a;
  font-size: 18px;
  cursor: pointer;
}

.composite-panel__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 9px 10px 0;
}

.composite-panel__tabs button {
  padding: 9px 4px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgb(59 48 42 / 48%);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.composite-panel__tabs button[aria-selected="true"] {
  background: rgb(59 48 42 / 8%);
  color: #3b302a;
}

.composite-panel__section {
  display: grid;
  gap: 14px;
  padding: 17px 16px 19px;
}

.composite-panel__section[hidden] {
  display: none;
}

.composite-control {
  display: grid;
  gap: 8px;
}

.composite-control > span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  font-weight: 560;
}

.composite-control output {
  color: rgb(59 48 42 / 52%);
  font-variant-numeric: tabular-nums;
}

.composite-control input[type="range"] {
  width: 100%;
  height: 3px;
  accent-color: #3b302a;
  cursor: ew-resize;
}

.composite-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px 13px;
  border-top: 1px solid rgb(73 58 47 / 11%);
}

.composite-panel__footer button,
.composite-panel-open {
  border: 1px solid rgb(73 58 47 / 18%);
  border-radius: 7px;
  background: rgb(255 255 255 / 44%);
  color: #3b302a;
  cursor: pointer;
}

.composite-panel__footer button {
  padding: 7px 10px;
  font-size: 10px;
}

.composite-panel__footer span {
  color: rgb(59 48 42 / 48%);
  font-size: 9px;
}

.composite-panel-open {
  position: absolute;
  top: 28px;
  right: 28px;
  padding: 10px 14px 9px;
  background: rgb(252 249 245 / 84%);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  backdrop-filter: blur(16px);
}

@media (max-width: 760px) {
  .composite-lab__identity {
    top: 20px;
    left: 20px;
  }

  .composite-lab__compare {
    top: auto;
    bottom: 18px;
  }

  .composite-panel {
    top: 72px;
    right: 14px;
  }
}
