.jade-widget-wrap,
.jade-widget-wrap * {
  box-sizing: border-box;
}

.jade-widget-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: #1a1a2e;
}

.jade-widget-wrap .jade-header {
  text-align: center;
  margin-bottom: 24px;
}

.jade-widget-wrap .jade-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #2d6a4f;
  margin: 0;
}

.jade-widget-wrap .jade-header p {
  margin-top: 8px;
  color: #6b7280;
  font-size: 0.95rem;
}

.jade-widget-wrap .jade-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 28px 24px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.jade-widget-wrap .jade-upload-zone {
  border: 2px dashed #a8d5ba;
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.jade-widget-wrap .jade-upload-zone:hover,
.jade-widget-wrap .jade-upload-zone.drag-over {
  border-color: #2d6a4f;
  background: #f0faf4;
}

.jade-widget-wrap .jade-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.jade-widget-wrap .jade-upload-icon {
  font-size: 2.1rem;
  line-height: 1;
  margin-bottom: 8px;
}

.jade-widget-wrap .jade-upload-zone p {
  color: #6b7280;
  font-size: 0.88rem;
  margin-top: 4px;
}

.jade-widget-wrap .jade-upload-zone .jade-hint {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 8px;
}

.jade-widget-wrap .jade-preview-list {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jade-widget-wrap .jade-preview-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #e5e7eb;
}

.jade-widget-wrap .jade-preview-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  display: block;
}

.jade-widget-wrap .jade-video-thumb {
  width: 120px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #6b7280;
}

.jade-widget-wrap .jade-remove-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.jade-widget-wrap .jade-file-name {
  font-size: 0.7rem;
  padding: 2px 4px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jade-widget-wrap .jade-error-msg {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  font-size: 0.88rem;
  display: none;
}

.jade-widget-wrap .jade-submit-btn {
  margin-top: 24px;
  width: 100%;
  padding: 13px;
  background: #2d6a4f;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.jade-widget-wrap .jade-submit-btn:hover:not(:disabled) {
  background: #1b4332;
}

.jade-widget-wrap .jade-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.jade-widget-wrap .jade-loading-status {
  margin-top: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #2d6a4f;
  font-size: 0.92rem;
  font-weight: 600;
}

.jade-widget-wrap .jade-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #cde6d8;
  border-top-color: #2d6a4f;
  animation: jade-spin 0.8s linear infinite;
}

@keyframes jade-spin {
  to {
    transform: rotate(360deg);
  }
}

.jade-widget-wrap .jade-result-section {
  max-width: 680px;
  margin: 24px auto 0;
  display: none;
}

.jade-widget-wrap .jade-result-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #2d6a4f;
  margin-bottom: 12px;
}

.jade-widget-wrap .jade-result-box {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  padding: 24px 20px;
  white-space: pre-wrap;
  line-height: 1.75;
  font-size: 0.93rem;
  color: #374151;
  word-break: break-word;
}
