/* SVG Studio suite */
.sv-hero {
  padding: 48px 0 20px;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(229, 57, 53, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(21, 101, 192, 0.1), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f4f7fc 100%);
}
.sv-hero-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.sv-hero .small-title {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff0ef;
  color: #E53935;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sv-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #10172f;
  letter-spacing: -0.03em;
}
.sv-hero p {
  margin: 0 auto;
  max-width: 740px;
  color: #5c6478;
  font-size: 17px;
  line-height: 1.7;
}
.sv-wrap { padding: 24px 0 64px; background: #f4f6fb; }
.sv-card {
  position: relative;
  background: #fff;
  border: 1px solid #e8ebf5;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 14px 36px rgba(17, 24, 47, 0.06);
  box-sizing: border-box;
}
.sv-privacy {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef5ff;
  border: 1px solid #cfe0ff;
  color: #0d47a1;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.sv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}
.sv-workspace { min-width: 0; display: grid; gap: 14px; }
.sv-inspector {
  position: sticky;
  top: 16px;
  border: 1px solid #e8ebf5;
  border-radius: 14px;
  background: #fbfcff;
  padding: 14px;
  max-height: calc(100vh - 40px);
  overflow: auto;
}
.sv-inspector h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: #10172f;
}
.sv-inspector h4 {
  margin: 14px 0 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5c6478;
}
.sv-score {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}
.sv-score strong {
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.sv-score span { color: #5c6478; font-weight: 700; }
.sv-score-good strong { color: #2e7d32; }
.sv-score-mid strong { color: #ef6c00; }
.sv-score-bad strong { color: #c62828; }
.sv-check-list, .sv-warn-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sv-check-list li, .sv-warn-list li {
  font-size: 13px;
  font-weight: 600;
  color: #10172f;
  padding: 4px 0;
}
.sv-check-list li.ok { color: #2e7d32; }
.sv-check-list li.bad { color: #c62828; }
.sv-insp-empty { margin: 0; color: #5c6478; font-size: 13px; font-weight: 600; }
.sv-stat-dl { margin: 0; display: grid; gap: 6px; }
.sv-stat-dl div { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.sv-stat-dl dt { color: #5c6478; font-weight: 700; }
.sv-stat-dl dd { margin: 0; font-weight: 800; color: #10172f; text-align: right; }

.sv-section {
  border: 1px solid #e8ebf5;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}
.sv-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.sv-toolbar h3 { margin: 0; font-size: 14px; font-weight: 800; color: #10172f; }
.sv-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sv-textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 1px solid #dde2ef;
  border-radius: 12px;
  padding: 12px;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #10172f;
  background: #fbfcff;
  box-sizing: border-box;
}
.sv-code {
  margin: 0;
  max-height: 320px;
  overflow: auto;
  padding: 12px;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
.sv-preview-stage {
  min-height: 240px;
  border-radius: 12px;
  border: 1px solid #e8ebf5;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: auto;
}
.sv-preview-stage.is-light {
  background:
    linear-gradient(45deg, #eef1f8 25%, transparent 25%),
    linear-gradient(-45deg, #eef1f8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef1f8 75%),
    linear-gradient(-45deg, transparent 75%, #eef1f8 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  background-color: #f7f8fc;
}
.sv-preview-stage.is-dark { background: #1a1f2e; border-color: #2c3348; }
.sv-preview { width: 100%; display: grid; place-items: center; }
.sv-preview-inner { width: 100%; display: grid; place-items: center; }
.sv-preview-inner svg { display: block; }
.sv-preview-error { color: #c62828; font-weight: 700; margin: 0; }

.sv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
}
.sv-btn-primary { background: #E53935; color: #fff; }
.sv-btn-dark { background: #10172f; color: #fff; }
.sv-btn-blue { background: #1565c0; color: #fff; }
.sv-btn-gray { background: #eef1f8; color: #10172f; }
.sv-btn-outline {
  background: #fff;
  color: #10172f;
  border: 1px solid #dde2ef;
}
.sv-file-btn { position: relative; overflow: hidden; }
.sv-field { margin-bottom: 12px; }
.sv-field label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #5c6478;
}
.sv-field input[type="range"] { width: 100%; }
.sv-field input[type="color"],
.sv-field input[type="text"],
.sv-field input[type="number"],
.sv-field select {
  width: 100%;
  height: 40px;
  border: 1px solid #dde2ef;
  border-radius: 10px;
  padding: 0 10px;
  box-sizing: border-box;
}
.sv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.sv-tab {
  border: 1px solid #e8ebf5;
  background: #f7f8fc;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #5c6478;
  cursor: pointer;
}
.sv-tab.is-active { background: #fff0ef; border-color: #f0c7c6; color: #E53935; }
.sv-report-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sv-report-table th, .sv-report-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eef1f8;
  text-align: left;
}
.sv-report-table th { width: 42%; color: #5c6478; font-weight: 700; }
.sv-report-table td { font-weight: 800; color: #10172f; font-variant-numeric: tabular-nums; }

.sv-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #10172f, #1e293b);
  color: #fff;
}
.sv-cta strong { display: block; font-size: 15px; margin-bottom: 4px; }
.sv-cta span { font-size: 13px; opacity: 0.85; }
.sv-status {
  margin-top: 10px;
  min-height: 18px;
  font-size: 13px;
  font-weight: 700;
  color: #2e7d32;
}
.sv-grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}
.sv-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 991px) {
  .sv-layout { grid-template-columns: 1fr; }
  .sv-inspector { position: static; max-height: none; }
  .sv-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .sv-card { padding: 14px; }
  .sv-hero { padding: 32px 0 12px; }
}
