* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #f1f1eb;
  background: #141716;
  font:
    15px/1.55 "Instrument Sans",
    system-ui,
    sans-serif;
}
header,
main {
  max-width: 1250px;
  margin: auto;
  padding: 0 5vw;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  border-bottom: 1px solid #373c39;
}
header span,
.bar span,
.foot span {
  color: #a8b2ad;
  font-size: 13px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 650;
}
.brand i {
  width: 20px;
  height: 20px;
  display: block;
  border: 3px solid #b5e7a0;
  box-shadow: inset 0 0 0 3px #141716;
  background: #b5e7a0;
}
main {
  padding-top: 44px;
  padding-bottom: 40px;
}
h1 {
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin: 0;
}
.intro {
  color: #b7c0ba;
  margin: 16px 0 32px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: 18px;
}
.viewer,
.panel {
  border: 1px solid #3c433e;
  background: #202522;
  border-radius: 10px;
  overflow: hidden;
}
.bar,
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 12px;
}
.bar {
  border-bottom: 1px solid #3c433e;
}
.bar h2 {
  font-size: 15px;
  margin: 0;
}
.bar b {
  border-radius: 50%;
  width: 8px;
  height: 8px;
  background: #87938c;
}
.bar b.active {
  background: #b5e7a0;
}
#stage {
  min-height: 320px;
  height: clamp(320px, 35vw, 460px);
  display: grid;
  place-items: center;
  text-align: center;
  background: #191d1a;
}
#stage.drag {
  outline: 2px dashed #b5e7a0;
  outline-offset: -8px;
}
#empty p,
.result p {
  color: #b8c2ba;
}
#empty h3 {
  font-size: 20px;
  margin: 14px 0 0;
}
#empty p {
  font-size: 13px;
  margin: 4px 8px;
}
.checker {
  margin: auto;
  width: 60px;
  height: 40px;
  background: conic-gradient(
      #b4a68a 25%,
      #5b7269 0 50%,
      #697483 0 75%,
      #ac8778 0
    )
    0 0/20px 20px;
  border: 3px solid #0f1210;
  transform: rotate(-5deg);
}
#preview {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  width: 100%;
  height: 100%;
}
[hidden] {
  display: none !important;
}
.foot {
  min-height: 67px;
  border-top: 1px solid #3c433e;
  justify-content: flex-start;
}
.foot span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
button {
  background: #b8e9a4;
  color: #162612;
  border: 0;
  border-radius: 5px;
  font-weight: 700;
  padding: 9px 17px;
  cursor: pointer;
  flex-shrink: 0;
}
button:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
}
.result {
  padding: 25px 20px;
}
#state {
  font-size: 13px;
  color: #b8e9a4;
}
.result h3 {
  margin: 10px 0;
  font-size: 28px;
  line-height: 1.25;
}
.result p {
  margin: 8px 0 20px;
  font-size: 14px;
}
.candidate {
  border-top: 1px solid #3c433e;
  padding: 9px 0;
}
.candidate strong,
.candidate small {
  display: block;
}
.candidate small {
  color: #aab7af;
}
.result h4 {
  font-size: 14px;
  margin: 24px 0 8px;
}
@media (max-width: 720px) {
  header {
    height: 58px;
  }
  main {
    padding-top: 30px;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  #stage {
    height: 270px;
    min-height: 230px;
  }
  .intro {
    margin-bottom: 22px;
  }
}
#transfer {
  margin-top: 18px;
}
.transfer-inner {
  padding: 16px 20px;
}
.transfer-inner p {
  color: #bac4be;
  margin: 0 0 12px;
}
#target-status {
  padding-left: 12px;
  font-size: 13px;
  color: #b8c2ba;
}
#target-preview {
  display: block;
  max-height: 380px;
  max-width: 100%;
  margin: 16px auto 0;
}
