/* THelp 고객 포털. 색·간격은 실서비스 디자인으로 바꾸기 쉽도록 변수에 모은다. */
:root {
  --teal: #21b2af;
  --teal-button: #1db7af;
  --teal-text: #3cc4bc;
  --slate: #4b5361;
  --slate-number: #4a5666;
  --page: #efefed;
  --strip: #e4e4e4;
  --refresh: #8d9095;
  --label: #d4d4d4;
  --text: #333a42;
  --muted: #8a8f96;
  --orange: #f56330;
  --white: #ffffff;
  --panel-width: 660px;
  --font: "Malgun Gothic", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
}

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  background: var(--page);
}

/* 오른쪽 위의 기울어진 키보드 느낌 배경. 자체 제작 SVG 패턴(키캡 반복)으로 그린다. */
.backdrop {
  position: absolute;
  inset: 0 0 auto 0;
  height: 560px;
  pointer-events: none;
  opacity: .62;
  -webkit-mask-image: linear-gradient(90deg, transparent 24%, #000 66%), linear-gradient(180deg, #000 72%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 24%, #000 66%), linear-gradient(180deg, #000 72%, transparent);
  mask-composite: intersect;
}
.backdrop .keys {
  position: absolute;
  top: -260px;
  right: -300px;
  width: 1000px;
  height: 1000px;
  transform: rotate(-33deg);
  border-radius: 36px;
  background-color: #e3e3e1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='74' height='74'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fafaf9'/%3E%3Cstop offset='1' stop-color='%23e9e9e7'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='5' y='5' width='64' height='64' rx='9' fill='%23cfcfcd'/%3E%3Crect x='6' y='5' width='62' height='60' rx='8' fill='url(%23g)'/%3E%3C/svg%3E");
  background-size: 74px 74px;
  box-shadow: 0 30px 60px rgba(0,0,0,.08);
}

.top, .panel, .promo {
  position: relative;
  width: min(var(--panel-width), calc(100% - 32px));
  margin: 0 auto;
}

.top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 26px;
}
.brand-text strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.2px;
}
.brand-text span {
  display: block;
  font-size: 10px;
  color: #555;
}
.top-actions { display: flex; gap: 8px; }

.btn-exec {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  height: 33px;
  padding: 0 22px 0 16px;
  background: var(--teal-button);
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
}
.btn-exec svg { width: 18px; height: 18px; }

.lang select {
  height: 33px;
  min-width: 96px;
  padding: 0 28px 0 18px;
  border: 0;
  background: #e8e8e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23888'/%3E%3C/svg%3E") no-repeat right 10px center / 10px 6px;
  color: #666;
  font: inherit;
  font-size: 13px;
  appearance: none;
}

.panel { padding-top: 92px; }
.logo { display: block; margin: 0 0 18px 22px; }

.guide {
  height: 36px;
  padding: 0 14px;
  line-height: 36px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--slate);
  color: var(--white);
  font-size: 13px;
}
.guide em, .refresh-strip em { font-style: normal; color: var(--teal-text); }
.refresh-strip em { color: #20a9a1; }

.numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 22px;
  padding: 14px 70px 10px;
  min-height: 98px;
}
.number {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 58px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.number b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 40px;
  border-radius: 7px;
  background: var(--slate-number);
  color: var(--white);
  font-size: 25px;
  font-weight: 600;
  box-shadow: 0 2px 0 rgba(0,0,0,.18);
}
.number span { font-size: 11px; color: #555; }
.number:hover b, .number:focus-visible b { background: var(--teal); }
.numbers .empty { color: var(--muted); font-size: 13px; align-self: center; }

.refresh-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  height: 30px;
  padding: 0 8px;
  background: var(--strip);
  font-size: 12.5px;
  margin-bottom: 14px;
}
.btn-refresh {
  height: 19px;
  padding: 0 16px;
  border: 0;
  background: var(--refresh);
  color: var(--white);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.code-form {
  display: flex;
  align-items: stretch;
  height: 33px;
  margin: 13px 0 0 22px;
}
.code-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: var(--label);
  color: #555;
  font-size: 12px;
  white-space: nowrap;
}
.code-label svg { width: 15px; height: 15px; color: #9a9a9a; }
.code-form input {
  width: 200px;
  border: 0;
  padding: 0 14px;
  background: var(--white);
  font: inherit;
  font-size: 13px;
  letter-spacing: 1px;
  color: #20a9a1;
}
.code-form input::placeholder { color: #aaa; font-style: italic; letter-spacing: 0; font-size: 12px; }
.code-form input:focus { outline: 2px solid var(--teal); outline-offset: -2px; }

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  min-width: 96px;
  border: 0;
  background: var(--teal-button);
  color: var(--white);
  font: inherit;
  font-size: 12.5px;
  text-decoration: none;
  cursor: pointer;
}
.btn-submit:disabled { opacity: .55; cursor: default; }

.message { min-height: 20px; margin: 10px 0 0 22px; font-size: 12.5px; color: #d0452a; }
.message.ok { color: #1a8f89; }

.launch {
  margin: 4px 22px 0;
  padding: 14px 16px;
  background: rgba(255,255,255,.75);
  border-left: 4px solid var(--teal);
  font-size: 13px;
}
.launch p { margin: 0 0 6px; }
.launch .btn-submit { height: 32px; margin-top: 6px; }

.copyright { margin: 26px 0 0; text-align: center; font-size: 10.5px; color: #888; }

.promo {
  flex: 1;
  margin-top: 88px;
  padding: 18px 0 70px;
  border-top: 1px solid #d0d0d0;
  text-align: center;
  background: var(--white);
  width: 100%;
}
.promo p { margin: 0 0 14px; font-size: 15px; color: #777; letter-spacing: -0.2px; }
.btn-home {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-size: 14px;
  text-decoration: none;
}

@media (max-width: 560px) {
  .top { flex-direction: column; gap: 12px; }
  .panel { padding-top: 40px; }
  .numbers { padding: 14px 8px 10px; }
  .code-form { flex-wrap: wrap; height: auto; margin-left: 0; }
  .code-label, .code-form input, .btn-submit { height: 36px; }
  .code-form input { flex: 1; min-width: 0; }
  .code-form .btn-submit { width: 100%; }
  .refresh-strip { height: auto; flex-wrap: wrap; padding: 6px 8px; }
  .logo, .message, .launch { margin-left: 0; }
}
