.sd-title { font-size: 40px; line-height: 1.2; letter-spacing: -.025em; margin: 0 0 26px; }
.sd-layout { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(0, 2.2fr); gap: 24px; align-items: start; }
.sd-list, .sd-editor { border: 1px solid var(--divider); border-radius: 12px; min-width: 0; }
.sd-list { display: grid; padding: 8px; gap: 3px; }
.sd-list button { background: transparent; border: 0; border-radius: 7px; text-align: left; padding: 12px; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; }
.sd-list button:hover { background: var(--bg); }
.sd-list button[aria-pressed=true] { color: #187143; background: #edf8f1; font-weight: 600; }
.sd-editor { padding: 24px; }
.sd-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.sd-header h2 { font-size: 20px; }
.sd-editor .btn { min-height: 40px; font-size: 14px; padding: 6px 14px; }
.sd-inputs { margin: 0; padding: 0; border: 0; min-width: 0; }
.sd-editor label, .sd-body-field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.sd-editor input { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 7px; font-size: 15px; font-weight: 400; line-height: 1.55; }
.sd-editor input:focus, .sd-writing-area:focus-within { outline: 2px solid #3189bd; outline-offset: 1px; }
.sd-body-field { margin-top: 18px; }
.sd-writing-area { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.sd-format-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 6px 9px; border-bottom: 1px solid var(--divider); background: #f7f8fa; }
.sd-format-bar button { border: 0; background: transparent; min-width: 32px; height: 32px; padding: 0 6px; font: 17px Georgia, serif; border-radius: 5px; color: #333d4b; }
.sd-format-bar .ql-clean { font: inherit; font-size: 13px; font-weight: 500; margin-left: 4px; padding: 0 10px; }
.sd-format-bar button:hover { background: #e8edf0; }
.sd-format-bar .ql-active { background: #e0f3e8; color: #12673b; }
.sd-body.ql-container { height: auto; font: inherit; font-size: 15px; font-weight: 400; }
.sd-body .ql-editor { min-height: 320px; max-height: 65vh; line-height: 1.8; padding: 14px; }
.sd-body .ql-editor strong { font-weight: 700; }
.sd-body .ql-editor em { font-style: italic; }
.sd-status { display: flex; align-items: center; gap: 14px; }
.sd-status p:not(:empty) { margin-bottom: 14px; color: #277448; }
.sd-status p.sd-error { color: #aa3927; }
.sd-status button { margin-bottom: 14px; white-space: nowrap; }
@media (min-width: 768px) and (max-width: 1080px), (max-width: 680px) {
  .sd-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sd-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sd-list button { padding: 7px 9px; font-size: 14px; }
}
@media (max-width: 540px) {
  .sd-title { font-size: 30px; margin-bottom: 18px; }
  .sd-editor { padding: 16px; }
  .sd-header { margin-bottom: 16px; }
}
