.sc-container {
  border-color: #d8def0;
  box-shadow: 0 10px 35px rgba(46, 63, 104, 0.08);
}

.sc-intro {
  margin-bottom: 14px;
}

.sc-intro a,
.sc-info-container a,
.sc-next-step a,
.sc-label a {
  color: #2351c7;
  text-decoration: underline;
  font-weight: 600;
}

.sc-intro a:hover,
.sc-info-container a:hover,
.sc-next-step a:hover,
.sc-label a:hover {
  text-decoration: none;
}

.sc-blink {
  margin-bottom: 18px;
  border: 1px solid #f0d98d;
}

.sc-mainarea {
  border-color: #8fdcff;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,251,255,0.98));
}

.sc-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.sc-field {
  margin-bottom: 18px;
}

.sc-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
}

.sc-inline-help-link {
  font-size: 0.9rem;
  margin-left: 8px;
}

.sc-optional {
  color: #6f7c97;
  font-weight: 500;
  font-size: 0.92rem;
}

.sc-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c8d1e5;
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  font-size: 1rem;
  color: #243049;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sc-input:focus {
  border-color: #5d8fff;
  box-shadow: 0 0 0 4px rgba(93, 143, 255, 0.12);
}

.sc-help {
  margin-top: 7px;
  font-size: 0.92rem;
  color: #5d667d;
  line-height: 1.55;
}

.sc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.sc-tool-btn {
  min-width: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.sc-editor {
  min-height: 260px;
  background: #fff;
  border: 1px solid #c8d1e5;
  border-radius: 12px;
  padding: 16px;
  line-height: 1.65;
  color: #243049;
  outline: none;
  overflow-wrap: anywhere;
}

.sc-editor:focus {
  border-color: #5d8fff;
  box-shadow: 0 0 0 4px rgba(93, 143, 255, 0.12);
}

.sc-editor:empty:before {
  content: attr(data-placeholder);
  color: #8b94aa;
  pointer-events: none;
}

.sc-editor a {
  color: #2351c7;
  text-decoration: underline;
}

.sc-editor ul,
.sc-editor ol {
  margin-left: 22px;
}

.sc-actions {
  margin-top: 8px;
}

#sc-analyze-btn.sc-busy {
  opacity: 0.75;
  cursor: wait;
}

.sc-result-card {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid #d7e0f4;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 12px 36px rgba(34, 58, 110, 0.08);
}

.sc-analysis-source {
  display: inline-block;
  margin: 14px 0 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2745a6;
  font-size: 0.92rem;
  font-weight: 600;
}

.sc-score-wrap {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 24px;
}

.sc-score-ring {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
  background:
    radial-gradient(closest-side, #fff 72%, transparent 73% 100%),
    conic-gradient(#dce5fb 0deg, #e7ebf7 0deg);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
}

.sc-score-number {
  text-align: center;
  color: #243049;
}

.sc-score-number span {
  display: inline-block;
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
}

.sc-score-number small {
  font-size: 1.15rem;
  font-weight: 700;
}

.sc-risk-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.sc-risk-low {
  background: #e9f9ef;
  color: #10733d;
}

.sc-risk-medium {
  background: #fff4d7;
  color: #9b6400;
}

.sc-risk-high {
  background: #ffe6df;
  color: #b62d18;
}

.sc-risk-critical {
  background: #ffe1eb;
  color: #b10f4f;
}

.sc-summary-text {
  margin-bottom: 14px;
  color: #4a556f;
}

.sc-progress {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #e7ebf7;
  overflow: hidden;
  margin-bottom: 16px;
}

.sc-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8a2be2, #00c5ff);
  transition: width 0.35s ease;
}

.sc-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sc-mini-card {
  border: 1px solid #dde4f3;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
}

.sc-mini-label {
  font-size: 0.82rem;
  color: #6a748e;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sc-mini-value {
  font-weight: 700;
  color: #253250;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.sc-results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.sc-panel {
  border: 1px solid #dde4f3;
  border-radius: 16px;
  background: #fff;
  padding: 18px;
  margin-bottom: 18px;
}

.sc-panel h3 {
  margin-top: 0;
  margin-bottom: 14px;
}

.sc-list {
  margin: 0;
  padding-left: 20px;
  color: #3e4963;
}

.sc-list li {
  margin-bottom: 10px;
  line-height: 1.55;
}

.sc-empty-note {
  list-style: none;
  margin-left: -20px;
  color: #6b7590;
}

.sc-link-table {
  display: grid;
  gap: 12px;
}

.sc-link-row {
  border: 1px solid #e1e7f5;
  border-radius: 14px;
  padding: 14px;
  background: #fbfcff;
}

.sc-link-url,
.sc-link-text {
  margin-bottom: 8px;
  color: #2f3a56;
  overflow-wrap: anywhere;
}

.sc-link-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.sc-link-safe {
  background: #e9f8ef;
  color: #137746;
}

.sc-link-warn {
  background: #fff3d6;
  color: #9a6502;
}

.sc-link-danger {
  background: #ffe5e0;
  color: #b12c1c;
}

.sc-next-step p {
  margin-bottom: 10px;
}

.sc-next-step ul {
  margin-top: 10px;
  padding-left: 20px;
}

.sc-engine-status {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 16px;
}

.sc-engine-live {
  background: #e9f9ef;
  color: #10733d;
}

.sc-engine-alert {
  background: #ffe6df;
  color: #b62d18;
}

.sc-engine-local {
  background: #eef2f9;
  color: #50607d;
}

.sc-engine-mini-grid {
  margin-bottom: 16px;
}

.sc-info-section {
  margin-top: 26px;
}

.sc-mail-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 14px;
}

.sc-mail-help-card {
  border: 1px solid #dde4f3;
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}

.sc-image-placeholder {
  min-height: 220px;
  border: 2px dashed #c9d5f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #f9fbff, #f3f7ff);
  color: #6f7c97;
  font-weight: 600;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .sc-score-wrap,
  .sc-results-grid,
  .sc-grid-2,
  .sc-mail-help-grid {
    grid-template-columns: 1fr;
  }

  .sc-score-ring {
    width: 170px;
    height: 170px;
  }
}

@media (max-width: 768px) {
  .sc-result-card {
    padding: 16px;
  }

  .sc-toolbar {
    gap: 6px;
  }

  .sc-tool-btn {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .sc-editor {
    min-height: 220px;
    padding: 14px;
  }

  .sc-mini-grid {
    grid-template-columns: 1fr;
  }

  .sc-image-placeholder {
    min-height: 180px;
  }
}

.sc-mail-help-card {
  border: 1px solid #dde4f3;
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.sc-help-shot {
  min-height: 280px;
  border: 2px dashed #c9d5f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #f9fbff, #f3f7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  margin-bottom: 14px;
}

.sc-help-shot img {
  display: block;
  max-width: 100%;
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0;
  border-radius: 10px;
}

.sc-mail-help-card p {
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .sc-help-shot {
    min-height: 200px;
    padding: 12px;
  }

  .sc-help-shot img {
    max-height: 220px;
  }
}