.deep-report-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(45, 27, 78, 0.45);
  backdrop-filter: blur(3px);
}

.deep-report-modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(45, 27, 78, 0.2);
}

.deep-report-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
  border-bottom: 1px solid #f0e6ff;
}

.deep-report-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px;
}

.deep-report-modal-title {
  margin: 0;
  color: #7b2cbf;
  font-size: 1.15rem;
  font-weight: 700;
}

.deep-report-modal-chart-name {
  margin: 0 0 12px;
  color: #2d1b4e;
  font-size: 1rem;
  font-weight: 700;
}

.deep-report-modal-footer {
  flex: 0 0 auto;
  display: flex;
  padding: 14px 20px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid #f0e6ff;
}

.deep-report-modal-confirm {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid #7b2cbf;
  border-radius: 8px;
  background: #7b2cbf;
  color: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.deep-report-modal-confirm:hover {
  background: #5a189a;
  border-color: #5a189a;
  color: #fff;
}

.deep-report-modal-confirm:focus-visible {
  outline: 3px solid rgba(123, 44, 191, 0.3);
  outline-offset: 2px;
}

.deep-report-modal-scope,
.deep-report-modal-language {
  color: #6b5c80;
  font-size: 0.88rem;
  line-height: 1.5;
}

.deep-report-modal-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1.5px solid #c89bf5;
  border-radius: 50%;
  background: #f8f2ff;
  color: #7b2cbf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
}

.deep-report-modal-close:hover {
  background: #f1e4ff;
  color: #5a1d94;
}

.deep-report-modal-close:focus-visible {
  outline: 3px solid rgba(123, 44, 191, 0.3);
  outline-offset: 2px;
}

.deep-report-modal-scope-list {
  margin: 0.65rem 0 1rem;
  padding-left: 1.25rem;
  color: #51445f;
  font-size: 0.86rem;
  line-height: 1.55;
}

.deep-report-modal-product-distinction {
  margin: 0.85rem 0;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid #c89bf5;
  background: #f8f2ff;
  color: #51445f;
  font-size: 0.8rem;
  line-height: 1.45;
}

.deep-report-modal-product-distinction p {
  margin: 0.25rem 0;
}

.deep-report-modal-status,
.deep-report-modal-error {
  margin: 0.75rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.deep-report-modal-status {
  color: #6b5c80;
}

.deep-report-modal-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 1rem 0 0;
  text-align: center;
}

.deep-report-modal-progress[hidden] {
  display: none;
}

.deep-report-modal-spinner-wrap {
  width: 52px;
  height: 52px;
}

.deep-report-modal-spinner-wrap .global-nav-loading__spinner {
  width: 52px;
  height: 52px;
  border-width: 4px;
}

.deep-report-modal-progress-primary,
.deep-report-modal-progress-secondary {
  margin: 0;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}

.deep-report-modal-progress-primary {
  color: #4a148c;
  font-size: 1rem;
  font-weight: 700;
}

.deep-report-modal-progress-secondary {
  color: #6b5c80;
  font-size: 0.86rem;
}

.deep-report-modal-status.is-warning {
  color: #8a5a16;
}

.deep-report-modal-error {
  color: #a33a2b;
}

@media (min-width: 560px) {
  .deep-report-modal-confirm { width: 100%; }
}
