.sf-article-editor {
  position: fixed;
  inset: 12px;
  z-index: 210;
  display: flex;
  flex-direction: column;
  border: 1px solid #ccd5df;
  border-radius: 12px;
  background: #f4f5f8;
  color: #172535;
  box-shadow: 0 12px 50px #0006;
}
.sf-article-editor[hidden] { display: none; }
.sf-article-editor > header, .sf-article-editor > footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid #dbe1e8;
}
.sf-article-editor > footer { justify-content: flex-end; border-top: 1px solid #dbe1e8; }
.sf-article-editor [data-article-notice] { margin: 0; padding: 8px 20px; color: #5c3aa0; }
.sf-article-editor-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); min-height: 0; flex: 1; }
.sf-article-editor-layout > aside { padding: 18px; overflow: auto; border-right: 1px solid #dbe1e8; background: #fff; }
.sf-article-editor-layout > article { padding: 20px; overflow: auto; }
.sf-article-editor .sf-document-page { min-height: auto; padding-bottom: 50px; }
.sf-article-editor button { cursor: pointer; padding: 8px 12px; border: 1px solid #c7d3df; border-radius: 6px; background: #fff; color: #203249; }
.sf-article-editor button:hover { background: #eee9fa; border-color: #9877d1; }
.sf-article-editor button[data-article-review] { background: #633caa; color: #fff; }
.sf-article-block-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
.sf-article-editor label { display: block; margin: 12px 0; }
.sf-article-editor input:not([type=checkbox]), .sf-article-editor textarea, .sf-article-editor select {
  display: block; width: 100%; box-sizing: border-box; padding: 8px; border: 1px solid #ccd5df; border-radius: 5px; background: #fff; color: #172535;
}
.sf-article-editor details { margin-top: 16px; }
.sf-article-editor details label { font-size: 12px; line-height: 1.5; }
.sf-article-images { margin-top: 25px; border-top: 1px solid #dbe1e8; }
.sf-article-images img { width: 100%; max-height: 170px; object-fit: contain; }
.sf-article-images figure { margin: 12px 0; }
.sf-article-images figcaption { font-size: 12px; }
.sf-article-images small { display: block; line-height: 1.5; }
.sf-document-table { overflow-x: auto; }
.sf-document-table table { width: 100%; border-collapse: collapse; }
.sf-document-table th, .sf-document-table td { padding: 12px; border: 1px solid #cbd6e0; vertical-align: top; text-align: left; min-width: 90px; }
.sf-document-table thead { background: #e6eef7; }
.sf-document-table tr:nth-child(even) { background: #f5f8fc; }
.sf-article-callout { margin: 24px 0; padding: 12px 18px; border-left: 4px solid #b6c5d1; font-style: italic; background: #f6f8fb; }
.sf-article-brand-footer { margin-top: 32px; }
.sf-article-brand-footer hr { margin-bottom: 28px; border: 0; border-top: 1px solid #ccd5df; }
.sf-article-faq, .sf-article-slug { max-width: 1040px; margin: 12px auto; padding: 12px 24px; background: #fff; box-sizing: border-box; }
.sf-article-editor .sf-document-flow [contenteditable=true]:focus { outline: 2px solid #7655e7; }
.sf-article-editor .sf-document-flow img { max-width: 100%; }
@media (max-width: 800px) {
  .sf-article-editor { inset: 0; border-radius: 0; }
  .sf-article-editor-layout { grid-template-columns: 1fr; overflow: auto; }
  .sf-article-editor-layout > aside { max-height: 240px; border-bottom: 1px solid #dbe1e8; }
  .sf-article-editor-layout > article { overflow: visible; padding: 8px; }
  .sf-article-editor > footer { flex-wrap: wrap; }
}

.sf-article-editor .sf-article-brand-footer { border-top: 1px solid #ccd5df; padding-top: 24px; color: #344453; }
