*,
*::before,
*::after {
  box-sizing: border-box;
}
.emd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 16px;
}
@media (max-width: 540px) {
  .emd-grid {
    grid-template-columns: 1fr;
  }
  .emd-card {
    height: auto !important;
    min-height: 160px;
  }
}
.emd-card {
  height: 250px;
  background: #fff;
  border: 1px solid #ddeee6;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}
.emd-card:hover {
  box-shadow: 0 4px 14px rgba(0, 169, 79, 0.13);
  border-color: #a8d9be;
}
.emd-card-top {
  padding: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
  border-bottom: 1px solid #f0f0f0;
}
.emd-card-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e4e4e4;
  flex-shrink: 0;
  background: #00a94f;
}
.emd-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.emd-card-meta {
  flex: 1;
  min-width: 0;
}
.emd-card-name {
  font-weight: 700;
  font-size: clamp(13px, 2.2vw, 15px);
  color: #111;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.emd-card-floor {
  font-size: clamp(13px, 2vw, 14px);
  color: #666;
  margin: 0;
}
.emd-card-lbl {
  font-size: clamp(13px, 1.8vw, 14px);
  font-weight: 700;
  margin: 0;
}
.emd-card-body {
  flex: 1;
  overflow: hidden;
  padding: 8px;
  position: relative;
  min-height: 0;
}
.emd-card.has-more .emd-card-body::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
}
.emd-card-more {
  flex-shrink: 0;
  text-align: center;
  padding: 8px;
  display: none;
}
.emd-card.has-more .emd-card-more {
  display: block;
}
.emd-btn-more {
  background: none!important;
  border: 1px solid #00a94f!important;
  border-radius: 20px!important;
  color: #00a94f!important;
  font-size: clamp(13px, 2vw, 14px)!important;
  font-weight: 600!important;
  padding: 4px 16px!important;
  cursor: pointer!important;
  transition: 0.15s!important;
  font-family: inherit!important;
}
.emd-btn-more:hover {
  background: #00a94f!important;
  color: #fff!important;
}
.emd-pg-info {
  font-size: clamp(13px, 2vw, 14px);
  color: #aaa;
  margin: 0 0 8px;
}
.emd-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-wrap: wrap;
}
.emd-pg {
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  color: #555;
  font-size: clamp(13px, 2.2vw, 14px);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.15s;
  user-select: none;
  padding: 0 8px;
}
.emd-pg:hover {
  border-color: #00a94f;
  color: #00a94f;
}
.emd-pg.on {
  background: #00a94f;
  border-color: #00a94f;
  color: #fff;
  pointer-events: none;
}
.emd-pg.dis {
  opacity: 0.3;
  pointer-events: none;
}
.emd-mbg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: background 0.25s;
}
.emd-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 460px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition:
    transform 0.25s cubic-bezier(0.34, 1.3, 0.64, 1),
    opacity 0.2s;
}
.emd-modal-hd {
  padding: 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
}
.emd-modal-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e4e4e4;
  flex-shrink: 0;
  background: #f5f5f5;
}
.emd-modal-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.emd-modal-ttl {
  flex: 1;
  min-width: 0;
  padding: 0 0 0 8px;
}
.emd-modal-name {
  font-weight: 700;
  font-size: clamp(14px, 3vw, 18px);
  color: #333;
  margin: 0;
}
.emd-modal-floor {
  font-size: clamp(13px, 2vw, 14px);
  color: #bbb;
  margin: 0;
}
.emd-modal-lbl {
  font-size: clamp(13px, 2vw, 14px);
  font-weight: 700;
  margin: 0;
  display: block;
}
.emd-modal-x {
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: clamp(13px, 2.2vw, 14px);
  color: #555;
  font-family: inherit;
  transition: 0.15s;
}
.emd-modal-x:hover {
  color: #111;
}
.emd-modal-bd {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
