@charset "utf-8";

.hy-fpm-wrap {
  margin: 22px 0;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #f0dce8;
  box-shadow: 0 12px 34px rgba(126,58,93,.07);
  font-family:var(--hy-custom-font, Pretendard,'Noto Sans KR',system-ui,sans-serif);
  color: #302330;
}

.hy-fpm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.hy-fpm-head strong {
  display: block;
  font-size: 18px;
  letter-spacing: -.04em;
  color: #302331;
}

.hy-fpm-head span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #7f6675;
  line-height: 1.45;
}

.hy-fpm-head em {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #fff4f9;
  border: 1px solid #f1d9e6;
  color: #b34780;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.hy-fpm-list {
  display: grid;
  gap: 10px;
}

.hy-fpm-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #efdde7;
  transition: border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}

.hy-fpm-card:hover {
  border-color: #e6bfd3;
  box-shadow: 0 8px 22px rgba(150,66,107,.08);
  transform: translateY(-1px);
}

.hy-fpm-meta {
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  background: #fff;
}

.hy-fpm-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff6fa;
  border: 1px solid #f1dce8;
  font-size: 19px;
  line-height: 1;
}

.hy-fpm-name {
  min-width: 0;
}

.hy-fpm-name strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #322333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.35;
}

.hy-fpm-name span {
  display: block;
  margin-top: 3px;
  color: #927686;
  font-size: 12px;
  line-height: 1.35;
}

.hy-fpm-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hy-fpm-preview-link,.hy-fpm-download,.hy-fpm-no-preview {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  line-height: 1;
  border: 1px solid transparent;
  box-shadow: none;
}

.hy-fpm-preview-link {
  background: #fff7fb;
  border-color: #eccdde;
  color: #b24379;
}

.hy-fpm-preview-link:hover,.hy-fpm-preview-link:focus {
  background: #ffeef6;
  border-color: #dfa9c5;
  color: #9f3269;
  text-decoration: none;
}

.hy-fpm-download {
  background: #f5f1f4;
  border-color: #eadde5;
  color: #574457;
}

.hy-fpm-download:hover,.hy-fpm-download:focus {
  background: #eee6ec;
  border-color: #ddcad6;
  color: #3d2b3d;
  text-decoration: none;
}

.hy-fpm-no-preview {
  background: #f8f4f7;
  border-color: #eee2e9;
  color: #987d8e;
}

@media (max-width:720px) {
  .hy-fpm-wrap {
    margin: 16px 0;
    padding: 12px;
    border-radius: 20px;
  }
  .hy-fpm-head {
    align-items: flex-start;
  }
  .hy-fpm-head strong {
    font-size: 17px;
  }
  .hy-fpm-head span {
    font-size: 12px;
  }
  .hy-fpm-meta {
    grid-template-columns: 36px minmax(0,1fr);
    padding: 11px;
    gap: 9px;
  }
  .hy-fpm-icon {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    font-size: 17px;
  }
  .hy-fpm-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 8px;
  }
  .hy-fpm-no-preview {
    grid-column: 1 / -1;
  }
  .hy-fpm-preview-link,.hy-fpm-download {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    border-radius: 13px;
  }
}


.hy-fpm-card.is-document .hy-fpm-preview-link {
  background: linear-gradient(135deg,#fff2fa,#f4efff);
  border-color: #e8c4d9;
}
.hy-fpm-card.is-document .hy-fpm-name span::after {
  content: " · Google 미리보기";
  color: #b34780;
  font-weight: 800;
}
