/* ExplorePanda v617: one honest, calm state language across customer pages. */
.ep-ui-state,
.ep-state-surface {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 16px 0;
  padding: 32px 22px;
  border: 1px solid #e7edeb;
  border-radius: 16px;
  background: #fbfdfc;
  color: #15212f;
  text-align: center;
  box-shadow: none;
}

.ep-ui-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 230px;
}

.ep-ui-state.is-compact,
.ep-state-surface.compact {
  min-height: 150px;
  padding: 24px 18px;
}

.ep-ui-state-icon,
.ep-state-surface::before {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e9f7f3;
  color: #278b75;
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.ep-state-surface::before {
  content: "·";
}

:is(.ep-ui-state, .ep-state-surface)[data-state-kind="loading"] :is(.ep-ui-state-icon),
.ep-state-surface[data-state-kind="loading"]::before {
  width: 30px;
  height: 30px;
  border: 3px solid #d6ebe5;
  border-top-color: #278b75;
  background: transparent;
  content: "";
  animation: ep-state-spin 0.8s linear infinite;
}

:is(.ep-ui-state, .ep-state-surface)[data-state-kind="empty"] :is(.ep-ui-state-icon),
.ep-state-surface[data-state-kind="empty"]::before {
  content: "—";
}

:is(.ep-ui-state, .ep-state-surface)[data-state-kind="offline"] :is(.ep-ui-state-icon),
.ep-state-surface[data-state-kind="offline"]::before {
  content: "↯";
  background: #fff2e8;
  color: #d56b2b;
}

:is(.ep-ui-state, .ep-state-surface)[data-state-kind="error"] :is(.ep-ui-state-icon),
.ep-state-surface[data-state-kind="error"]::before {
  content: "!";
  background: #fff0f1;
  color: #dc4d57;
}

:is(.ep-ui-state, .ep-state-surface)[data-state-kind="unavailable"] :is(.ep-ui-state-icon),
.ep-state-surface[data-state-kind="unavailable"]::before {
  content: "…";
  background: #f1f4f3;
  color: #697773;
}

:is(.ep-ui-state, .ep-state-surface)[data-state-kind="auth"] :is(.ep-ui-state-icon),
.ep-state-surface[data-state-kind="auth"]::before {
  content: "✓";
}

.ep-ui-state > strong,
.ep-state-surface > strong {
  display: block;
  max-width: 320px;
  margin: 0 auto;
  color: #15212f;
  font-size: 17px;
  font-weight: 780;
  line-height: 1.35;
  white-space: pre-line;
}

.ep-ui-state > p,
.ep-state-surface > :is(p, span) {
  display: block;
  max-width: 330px;
  margin: 8px auto 0;
  color: #71807c;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  white-space: pre-line;
}

.ep-ui-state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.ep-ui-state-actions button {
  min-width: 104px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid #dbe6e2;
  border-radius: 999px;
  background: #fff;
  color: #278b75;
  font-size: 14px;
  font-weight: 760;
  box-shadow: none;
}

.ep-ui-state-actions button:first-child {
  border-color: #278b75;
  background: #278b75;
  color: #fff;
}

.ep-status-line {
  box-sizing: border-box;
  width: 100%;
  margin: 12px 0 0 !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #f4f8f7 !important;
  color: #586763 !important;
  font-size: 13px !important;
  font-weight: 560 !important;
  line-height: 1.45 !important;
  text-align: left !important;
}

.ep-status-line[data-tone="loading"] {
  color: #277c6a !important;
}

.ep-status-line[data-tone="warning"] {
  background: #fff4ef !important;
  color: #a7502d !important;
}

.ep-status-line[data-tone="neutral"] {
  background: #f4f5f5 !important;
  color: #66716e !important;
}

html[dir="rtl"] .ep-status-line {
  text-align: right !important;
}

@keyframes ep-state-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  :is(.ep-ui-state, .ep-state-surface)[data-state-kind="loading"] :is(.ep-ui-state-icon),
  .ep-state-surface[data-state-kind="loading"]::before {
    animation-duration: 1.6s;
  }
}
