.epmai-wrap {
  max-width: 1100px;
  margin: 24px auto;
  font-family: inherit;
}
.epmai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.epmai-panel {
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.epmai-form label {
  display: block;
  margin: 14px 0 8px;
  font-weight: 600;
}
.epmai-form input[type="text"],
.epmai-form input[type="file"],
.epmai-form textarea,
.epmai-form select {
  width: 100%;
  box-sizing: border-box;
}
.epmai-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.epmai-check-item {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  margin: 0 !important;
  font-weight: 500 !important;
}
.epmai-check-item input[type="checkbox"] {
  width: auto;
  margin: 0;
}
.epmai-help {
  margin: 10px 0 0;
  color: #555;
  font-size: 13px;
}
.epmai-button {
  margin-top: 16px;
  background: #2271b1;
  color: #fff;
  border: 0;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
}
.epmai-button:hover {
  background: #135e96;
}
.epmai-button:disabled {
  opacity: 0.7;
  cursor: wait;
}
.epmai-status {
  margin-top: 12px;
  min-height: 24px;
  font-weight: 600;
}
.epmai-preview {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}
.epmai-preview-placeholder {
  min-height: 220px;
  border: 2px dashed #ddd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  text-align: center;
  padding: 20px;
}
.epmai-results {
  margin-top: 24px;
}
.epmai-extracted-text {
  width: 100%;
  box-sizing: border-box;
}
.epmai-error-card,
.epmai-score-row {
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  background: #fafafa;
}
.epmai-score-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.epmai-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 180px;
}
.epmai-button-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: epmai-spin 0.85s linear infinite;
}
.epmai-button.is-loading .epmai-button-spinner {
  display: inline-block;
}
.epmai-status {
  margin-top: 14px;
  min-height: 34px;
  font-weight: 600;
}
.epmai-status-inner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.epmai-loader-orbit {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(34,113,177,0.16);
  border-top-color: #2271b1;
  position: relative;
  display: none;
  animation: epmai-spin 0.9s linear infinite;
}
.epmai-loader-core {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: rgba(34,113,177,0.18);
  animation: epmai-pulse 1.15s ease-in-out infinite;
}
.epmai-status.is-loading .epmai-loader-orbit {
  display: inline-block;
}
.epmai-status.is-success .epmai-loader-orbit,
.epmai-status.is-error .epmai-loader-orbit {
  display: none;
}
@keyframes epmai-spin {
  to { transform: rotate(360deg); }
}
@keyframes epmai-pulse {
  0%, 100% { transform: scale(0.7); opacity: 0.45; }
  50% { transform: scale(1); opacity: 1; }
}
