html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.ph {
  box-sizing: border-box;
  width: min(280px, 88vw);
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #17141a;
}

.ph__crumbs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 8px;
}

.ph__crumb {
  font-size: 11px;
  font-weight: 600;
  color: rgba(23, 20, 26, 0.72);
  text-decoration: none;
}

.ph__crumb--current {
  color: #17141a;
}

.ph__sep {
  display: inline-flex;
  color: rgba(23, 20, 26, 0.3);
}

.ph__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ph__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.ph__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.ph__icon-btn, .ph__kebab {
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 20, 26, 0.12);
  background: #fff;
  border-radius: 12px;
  color: rgba(23, 20, 26, 0.6);
  cursor: pointer;
  transition: background 220ms cubic-bezier(0.2, 1.4, 0.4, 1), color 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.ph__icon-btn:hover, .ph__kebab:hover {
  background: rgba(47, 109, 246, 0.08);
  color: #2f6df6;
}

.ph__menu-wrap {
  position: relative;
}

.ph__menu {
  position: absolute;
  top: 30px;
  right: 0;
  box-sizing: border-box;
  width: 116px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  padding: 4px;
  transform-origin: top right;
  transform: scale(0.85);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1), opacity 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.ph__menu-wrap.is-open .ph__menu {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

.ph__menu-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  color: #17141a;
  padding: 4px 8px;
  border-radius: 4px;
}

.ph__menu-item:hover {
  background: rgba(23, 20, 26, 0.06);
}

.ph__menu-item--danger {
  color: #c2361a;
}

.ph.is-demo .ph__menu {
  animation: ph-menu-loop 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes ph-menu-loop {
  0%, 100% {
    transform: scale(0.85);
    opacity: 0;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
  85% {
    transform: scale(1);
    opacity: 1;
  }
}
@media (max-width: 340px) {
  .ph__title {
    font-size: 16px;
  }
  .ph__menu {
    width: 116px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ph.is-demo .ph__menu {
    animation: none !important;
  }
  .ph__menu, .ph__icon-btn, .ph__kebab {
    transition: none;
  }
}
