:root {
  --public-dashboard-header-height: 50px;
  --public-dashboard-ink: #18212b;
  --public-dashboard-accent: #0775d3;
  --public-dashboard-focus: #005fcc;
  --public-dashboard-surface: #ffffff;
  --public-dashboard-loading: #f3f7fa;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--public-dashboard-ink);
  background: var(--public-dashboard-loading);
  font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
}

button,
a {
  font: inherit;
}

button {
  padding: 0;
  border: 0;
  background-color: transparent;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.public-dashboard {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.public-dashboard__header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: var(--public-dashboard-header-height);
  background: var(--public-dashboard-surface);
}

.public-dashboard__header::after {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: #aaa;
  content: "";
  pointer-events: none;
}

.public-dashboard__logo {
  flex: 0 0 238px;
  width: 238px;
  height: var(--public-dashboard-header-height);
  background: var(--public-dashboard-surface) url("../img/domain/logo.svg") no-repeat center;
  background-size: 151px 41px;
}

.public-dashboard__logo:focus-visible,
.public-dashboard__nav a:focus-visible,
.public-dashboard__nav-toggle:focus-visible,
.public-dashboard__nav-close:focus-visible {
  position: relative;
  z-index: 2;
  outline: 3px solid var(--public-dashboard-focus);
  outline-offset: -3px;
}

.public-dashboard__nav {
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.public-dashboard__nav::-webkit-scrollbar {
  display: none;
}

.public-dashboard__nav ul {
  display: flex;
  width: max-content;
  min-width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.public-dashboard__nav li {
  position: relative;
  height: 100%;
}

.public-dashboard__nav li::after {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: #ff7e78;
  content: "";
  opacity: 0;
  transition: opacity 100ms ease-out;
}

.public-dashboard__nav li:hover,
.public-dashboard__nav li:focus-within {
  background: #fff7f6;
}

.public-dashboard__nav li:hover::after,
.public-dashboard__nav li:focus-within::after {
  opacity: 1;
}

.public-dashboard__nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
  padding: 0 24px;
  white-space: nowrap;
  color: #555;
  font-size: 18px;
  font-weight: 500;
}

.public-dashboard__nav a:hover,
.public-dashboard__nav a:focus-visible {
  background: transparent;
}

.public-dashboard__nav img {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
}

.public-dashboard__nav-toggle,
.public-dashboard__nav-close {
  display: none;
}

.public-dashboard__stage {
  position: absolute;
  top: var(--public-dashboard-header-height);
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  background: var(--public-dashboard-loading);
}

.public-dashboard__stage iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--public-dashboard-loading);
}

.public-dashboard__initial-skeleton {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(#cbdce8 0 0) 1.042% 2.1% / 24% 2.1% no-repeat,
    linear-gradient(#dce7ef 0 0) 86.5% 2.45% / 12.5% 1.2% no-repeat,
    var(--public-dashboard-loading);
  opacity: 1;
  pointer-events: none;
  transition: opacity 120ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 120ms;
  contain: strict;
}

.public-dashboard.is-ready .public-dashboard__initial-skeleton {
  visibility: hidden;
  opacity: 0;
}

.public-dashboard__initial-skeleton::after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: -38%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
  content: "";
  transform: translate3d(0, 0, 0) skewX(-9deg);
  animation: public-dashboard-skeleton-sweep 1.1s cubic-bezier(0.4, 0, 0.2, 1) 1 both;
}

.public-dashboard__initial-panel {
  position: absolute;
  top: var(--panel-y);
  left: var(--panel-x);
  width: var(--panel-w);
  height: var(--panel-h);
  overflow: hidden;
  border: 1px solid #dce7ef;
  border-radius: 6px;
  background:
    linear-gradient(#d7e3ec 0 0) 18px 16px / 28% 9px no-repeat,
    linear-gradient(#edf3f7 0 0) 18px 43px / calc(100% - 36px) calc(100% - 59px) no-repeat,
    var(--public-dashboard-surface);
}

@keyframes public-dashboard-skeleton-sweep {
  to {
    transform: translate3d(500%, 0, 0) skewX(-9deg);
  }
}

.public-dashboard__error {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--public-dashboard-loading);
  color: #33475b;
  text-align: center;
}

.public-dashboard__error[hidden] {
  display: none;
}

.public-dashboard__error p {
  max-width: 38rem;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 1280px) {
  .public-dashboard__header {
    padding-right: 12px;
  }

  .public-dashboard__logo {
    flex-basis: 150px;
    width: 150px;
    background-size: 150px auto;
  }

  .public-dashboard__nav-toggle {
    display: block;
    width: 44px;
    height: 50px;
    margin-left: auto;
    background: url("../img/new_header/menu-hamburger.svg") no-repeat center;
  }

  .public-dashboard__nav {
    position: fixed;
    z-index: 30;
    top: 0;
    right: 0;
    width: min(420px, 88vw);
    height: 100vh;
    padding-top: 62px;
    overflow-y: auto;
    background: var(--public-dashboard-surface);
    box-shadow: -12px 0 32px rgba(25, 48, 72, 0.18);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 220ms;
  }

  .public-dashboard__nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .public-dashboard__nav ul {
    display: block;
    width: 100%;
    height: auto;
  }

  .public-dashboard__nav li {
    height: 52px;
  }

  .public-dashboard__nav li::after {
    display: none;
  }

  .public-dashboard__nav a {
    gap: 10px;
    padding: 0 24px;
    font-size: 16px;
  }

  .public-dashboard__nav img {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .public-dashboard__nav-close {
    position: absolute;
    top: 15px;
    right: 18px;
    display: block;
    width: 32px;
    height: 32px;
    background: url("../img/new_header/menu-hamburger-close.svg") no-repeat center;
  }

  body.public-dashboard-menu-open::before {
    position: fixed;
    z-index: 19;
    inset: 0;
    background: rgba(9, 25, 40, 0.38);
    content: "";
  }
}

@media (max-width: 520px) {
  .public-dashboard__logo {
    flex-basis: 150px;
    width: 150px;
    background-size: 150px auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-dashboard__nav,
  .public-dashboard__nav li::after,
  .public-dashboard__initial-skeleton {
    transition: none;
  }

  .public-dashboard__initial-skeleton::after {
    animation: none;
  }
}
