.sg-editor {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: none;
}
.sg-mobile-progress,
.sg-progress-desktop { order: 0; }
.sg-editor-main { order: 1; min-width: 0; }
.sg-editor-actions {
  order: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.sg-editor-actions .btn {
  box-sizing: border-box;
  min-height: 44px;
  flex: 1 1 auto;
}
.sg-editor-actions .btn.o { order: 1; flex: 0 0 auto; }
.sg-editor-actions .btn:not(.o) { order: 2; }
.sg-editor-kicker { margin: 0; color: var(--slate); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.sg-editor h2 { margin: 4px 0 12px; }
#sg-editor-heading:focus,
#sg-editor-heading:focus-visible { outline: none; }
.sg-mobile-label { margin: 0; font-weight: 700; color: var(--navy); }
.sg-progress-track {
  height: 4px;
  margin: 8px 0 10px;
  background: var(--mist);
  border-radius: 999px;
  overflow: hidden;
}
.sg-progress-track > span { display: block; height: 100%; background: var(--navy); }
.sg-all-steps { margin: 0; }
.sg-all-steps summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  font-weight: 700;
  color: var(--harbor);
}
.sg-progress-list { display: grid; gap: 8px; margin-top: 8px; }
.sg-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--mist);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
a.sg-step,
a.sg-step:hover,
a.sg-step:focus,
a.sg-step:visited {
  color: var(--navy);
  text-decoration: none;
}
a.sg-step:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
.sg-step-num { font-size: 12px; font-weight: 700; color: var(--brass-deep); }
.sg-step-name { font-size: 14px; font-weight: 700; line-height: 18px; }
.sg-step-state { font-size: 12px; color: var(--slate); }
.sg-step.is-current { border-color: var(--navy); background: var(--bone); }
.sg-step.is-saved .sg-step-state { color: var(--verified-text); }
.sg-errors {
  border: 1px solid #9b2c2c;
  background: #fde8e8;
  color: #7f1d1d;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.sg-errors ul { margin: 6px 0 0; padding-left: 18px; }
.sg-field-error { color: #9b2c2c; font-size: 14px; margin: -6px 0 12px; }
.sg-checks {
  border: 1px solid var(--mist);
  border-radius: 8px;
  margin: 0 0 16px;
  padding: 8px 12px 12px;
}
.sg-checks legend { font-weight: 700; color: var(--navy); padding: 0 4px; }
.sg-checks label, .sg-checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
}
.sg-checks input, .sg-checkline input { width: 22px; height: 22px; flex: 0 0 22px; }
.sg-gear-row {
  border: 1px solid var(--mist);
  border-radius: 8px;
  background: #fff;
  margin: 0 0 8px;
}
.sg-gear-row summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
}
.sg-gear-row summary::-webkit-details-marker { display: none; }
.sg-gear-count {
  color: var(--navy);
  background: var(--bone);
  border-radius: 999px;
  padding: 0 8px;
  font-size: 13px;
  line-height: 22px;
}
.sg-gear-chevron {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.sg-gear-row[open] .sg-gear-chevron { transform: rotate(-135deg); margin-top: 4px; }
.sg-gear-body { padding: 0 12px 12px; }
.sg-combo { position: relative; }
.sg-combo-label { display: block; font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 4px; }
.sg-combo-input { width: 100%; min-height: 44px; }
.sg-combo-list {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(20, 38, 61, .12);
  max-height: 280px;
  overflow: auto;
}
.sg-combo-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sg-combo-list button[aria-selected="true"], .sg-combo-list button:hover { background: var(--bone); }
.sg-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 8px 0; padding: 0; }
.sg-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--harbor);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
}
.sg-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sg-chip.is-pending { border-style: dashed; }
.sg-pending { font-size: 12px; font-weight: 700; color: var(--brass-deep); }
.sg-chip-x { font-size: 18px; line-height: 1; }
.sg-review-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--mist);
  padding: 12px 0;
}
.sg-review-block h3 { margin: 0; font-size: 16px; }
.sg-review-block ul { margin: 6px 0 0; padding-left: 18px; }
.sg-review-block .btn { min-height: 44px; align-self: flex-start; }
body.sg-editor-v2 .two { grid-template-columns: 1fr; }
.sg-progress-desktop { display: none; }
@media (max-width: 767px) {
  .sg-editor-kicker { display: none; }
}
@media (min-width: 768px) {
  .sg-mobile-progress { display: none; }
  .sg-progress-desktop {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 4px;
  }
  .sg-progress-desktop .sg-step {
    min-width: 0;
    min-height: 44px;
    height: 100%;
    padding: 6px;
    align-items: flex-start;
    justify-content: center;
  }
  .sg-progress-desktop .sg-step-name {
    font-size: 12px;
    line-height: 15px;
    white-space: normal;
    overflow-wrap: break-word;
  }
  .sg-progress-desktop .sg-step-state { width: auto; font-size: 11px; line-height: 14px; }
  .sg-review-block { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
