.reference-page .public-site-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.home-footer .public-site-logo {
  width: 32px;
  height: 32px;
}
.site-content-manager {
  min-width: 0;
}
.sc-intro {
  background: linear-gradient(110deg, #f0f6ff, #fff);
  border: 1px solid #e0eafa;
  border-radius: 10px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}
.sc-intro strong {
  font-size: 17px;
  color: #24466f;
}
.sc-intro p {
  font-size: 12px;
  color: #7e92ad;
  margin: 8px 0 0;
  line-height: 1.9;
}
.sc-intro > a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2672d4;
  font-size: 12px;
  white-space: nowrap;
}
.sc-error,
.sc-message {
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 13px;
  margin: 16px 0;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.sc-error {
  color: #ac4c4c;
  background: #fff2f2;
}
.sc-error button {
  background: white;
  color: #ac4c4c;
  border: 1px solid #e7c4c4;
  padding: 6px 10px;
  border-radius: 4px;
}
.sc-message {
  color: #287861;
  background: #edf9f4;
}
.sc-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #e2eafa;
  overflow: auto;
  padding-bottom: 14px;
  margin-bottom: 24px;
}
.sc-tabs button {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #f3f7fc;
  color: #5d779a;
  border: 1px solid #e4ecf8;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  white-space: nowrap;
}
.sc-tabs button[aria-selected="true"] {
  background: #166ddf;
  border-color: #166ddf;
  color: #fff;
}
.sc-tabs span {
  font-size: 10px;
  opacity: 0.65;
}
.sc-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.sc-tools > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sc-tools h2 {
  font-size: 20px;
  margin: 0;
  color: #1b3b66;
}
.sc-tools > div > span {
  font-size: 12px;
  color: #92a4bb;
}
.sc-tools > label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dce6f3;
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: #8ba0bb;
}
.sc-tools input {
  border: 0;
  background: none;
  outline: none;
  font-size: 12px;
  width: 230px;
  padding: 10px 0;
}
.sc-fields {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.sc-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.sc-field {
  min-width: 0;
  background: #fff;
  border: 1px solid #e0e8f3;
  border-radius: 9px;
  padding: 20px;
  transition: border-color 0.15s;
}
.sc-field.sc-changed {
  border-color: #81b3f3;
}
.sc-field-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.sc-field-heading > label {
  font-size: 13px;
  line-height: 1.8;
  color: #3d5b83;
  overflow-wrap: anywhere;
}
.sc-field-heading > button {
  color: #91a4be;
  background: none;
  font-size: 10px;
  display: flex;
  gap: 4px;
  align-items: center;
  white-space: nowrap;
  margin-top: 3px;
  padding: 0;
}
.sc-field textarea,
.sc-field > input {
  width: 100%;
  font-size: 13px;
  color: #244064;
  line-height: 1.8;
  padding: 10px 12px;
  background: #fcfdff;
  border: 1px solid #dfe7f2;
  border-radius: 6px;
}
.sc-field textarea {
  min-height: 76px;
  resize: vertical;
}
.sc-field > small {
  font-size: 10px;
  color: #91a3bd;
  display: block;
  margin-top: 9px;
}
.sc-field .sc-unsaved {
  color: #3c85df;
}
.sc-image-preview {
  height: 170px;
  background: #f0f4fa;
  border: 1px solid #e7edf5;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  color: #a0b0c5;
  font-size: 12px;
}
.sc-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sc-upload {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  border: 1px dashed #a7c3e9;
  background: #f5f9ff;
  border-radius: 5px;
  color: #5285c6;
  font-size: 12px;
  margin-top: 12px;
  overflow: hidden;
  cursor: pointer;
}
.sc-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.sc-save-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding: 18px 22px;
  border: 1px solid #dce7f5;
  border-radius: 8px;
  background: #ffffffed;
  backdrop-filter: blur(16px);
  box-shadow: 0 -5px 24px #163c6b0a;
  z-index: 10;
}
.sc-save-bar strong {
  font-size: 13px;
  font-weight: 500;
  color: #4d6d96;
}
.sc-save-bar small {
  display: block;
  font-size: 10px;
  color: #9babc2;
  margin-top: 5px;
}
.sc-save-bar > button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #106ee4;
  color: white;
  border-radius: 6px;
  padding: 11px 22px;
  font-size: 13px;
  white-space: nowrap;
}
.sc-help {
  padding: 12px 16px;
  background: #fff9ed;
  border: 1px solid #f2e7cc;
  font-size: 12px;
  color: #9a8052;
  border-radius: 6px;
}
.sc-loading,
.sc-empty {
  padding: 35px;
  text-align: center;
  color: #8fa3bf;
}
.sc-loading button {
  margin-left: 12px;
  color: #2177d9;
  background: none;
}
@media (max-width: 1100px) {
  .sc-field-grid {
    gap: 16px;
  }
  .sc-field {
    padding: 16px;
  }
  .sc-intro {
    padding: 18px;
  }
  .sc-tools input {
    width: 180px;
  }
}
@media (max-width: 768px) {
  .sc-field-grid {
    grid-template-columns: 1fr;
  }
  .sc-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .sc-tools {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .sc-tools > label {
    width: 100%;
  }
  .sc-tools input {
    width: 100%;
  }
  .sc-tabs {
    gap: 6px;
  }
  .sc-tabs button {
    font-size: 11px;
    padding: 8px 10px;
  }
  .sc-save-bar {
    padding: 14px;
    gap: 12px;
  }
  .sc-save-bar > button {
    padding: 10px 13px;
    font-size: 12px;
  }
  .sc-save-bar strong {
    font-size: 12px;
  }
  .sc-save-bar small {
    font-size: 9px;
  }
}
