.blog-editor { padding-block: clamp(26px, 4vw, 58px) var(--section); }
.editor-header, .editor-library-head, .editor-form-head, .editor-actions, .editor-pagination {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.editor-header { margin-bottom: clamp(24px, 3vw, 45px); }
.editor-crumb { margin-bottom: 10px; color: var(--quiet); font-size: 14px; }
.editor-header h1 { font-size: clamp(30px, 3.1vw, 47px); line-height: 1.24; letter-spacing: -.045em; }
.editor-view-blog, .editor-public-post, .editor-preview a {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-weight: 650;
}
.editor-view-blog:hover, .editor-public-post:hover, .editor-preview a:hover {
  text-decoration: underline; text-underline-offset: .2em;
}
.editor-access { padding: clamp(20px, 3vw, 40px); border: 1px solid var(--line); background: #fff; }
.editor-access p { margin-bottom: 10px; }
.editor-workspace { display: grid; align-items: start; grid-template-columns: minmax(215px, .36fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); }
.editor-library { border-top: 2px solid var(--blue); }
.editor-library-head { padding-block: 15px; }
.editor-library h2, .editor-pick h2 { margin: 0; font-size: 22px; }
.editor-library section { padding: 19px 0 13px; border-top: 1px solid var(--line); }
.editor-library h3 { margin: 0 0 8px; color: var(--quiet); font-size: 14px; font-weight: 650; }
.editor-library [data-list] { max-height: min(65svh, 720px); overflow-y: auto; }
.editor-no-articles, .editor-pick p { color: var(--quiet); font-size: 14px; }
.blog-editor button, .blog-editor .editor-primary {
  min-height: 44px; padding: 7px 14px; border: 1px solid #abc1d6; border-radius: 4px;
  background: #fff; color: #214c73; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.blog-editor button:hover { background: #edf6ff; }
.blog-editor button:disabled { color: #67788a; background: #f1f4f7; cursor: default; }
.blog-editor .editor-primary { display: inline-flex; align-items: center; background: var(--blue); border-color: var(--blue); color: #fff; }
.blog-editor .editor-primary:hover:not(:disabled) { background: #154780; }
.blog-editor .editor-article-link {
  display: block; width: 100%; margin: 0; padding: 9px 11px; border-color: transparent;
  border-radius: 2px; text-align: left; background: transparent; color: var(--ink);
}
.editor-article-link strong, .editor-article-link span { display: block; }
.editor-article-link strong { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.editor-article-link span { margin-top: 3px; color: var(--quiet); font-size: 12px; font-weight: 500; }
.blog-editor .editor-article-link[aria-current=true] { border-left: 3px solid var(--blue); background: #e9f3fc; }
.editor-pagination { padding-top: 13px; border-top: 1px solid var(--line); font-size: 13px; }
.editor-desk { min-width: 0; padding: clamp(17px, 3vw, 39px); background: #fff; border: 1px solid var(--line); }
.editor-form-head { align-items: flex-end; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.editor-state { color: var(--link-blue); font-size: 13px; font-weight: 650; }
.editor-form-head h2 { margin: 3px 0 0; font-size: clamp(23px, 2vw, 30px); line-height: 1.4; }
.editor-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.editor-fields label { display: block; margin: 17px 0 5px; color: var(--ink); font-size: 15px; font-weight: 650; }
.editor-fields label small { margin-left: 3px; color: var(--quiet); font-size: 12px; font-weight: 500; }
.editor-fields input, .editor-fields textarea {
  display: block; width: 100%; min-height: 46px; padding: 9px 12px; background: #fff;
  border: 1px solid #aabfd1; border-radius: 3px; color: var(--ink); font: inherit;
  font-size: 16px; line-height: 1.65; letter-spacing: -.02em;
}
.editor-fields textarea { resize: vertical; }
.editor-fields :disabled { color: var(--quiet); background: #f6f9fc; }
.editor-preview { padding-block: 23px; overflow-wrap: anywhere; }
.editor-preview-category { color: var(--link-blue); font-size: 14px; font-weight: 650; }
.editor-preview h3 { margin: 6px 0; font-size: clamp(24px, 2.3vw, 36px); line-height: 1.35; }
.editor-preview-summary { margin: 8px 0; color: var(--quiet); white-space: pre-wrap; }
.editor-preview-body { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); line-height: 1.9; white-space: pre-wrap; }
.editor-actions { flex-wrap: wrap; justify-content: flex-start; gap: 8px; padding-top: 18px; }
.editor-actions .editor-cancel { border-color: transparent; }
.editor-changes, .editor-feedback, .editor-error { margin: 8px 0 0; font-size: 14px; }
.editor-changes { color: var(--quiet); }
.editor-feedback { color: var(--blue); }
.editor-error { color: #9b353d; }
.editor-changes:empty, .editor-feedback:empty, .editor-error:empty { margin: 0; }
.editor-desk > button { margin-top: 9px; }
.editor-public-post { margin-top: 6px; font-size: 14px; }
.editor-search { padding: 4px 0 18px; }
.editor-search label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 650; }
.editor-search > div { display: flex; gap: 6px; }
.editor-search input { min-width: 0; width: 100%; border: 1px solid #aabfd1; border-radius: 4px; padding: 8px 10px; font: inherit; font-size: 16px; }
.blog-editor .editor-search-clear { margin-top: 6px; border-color: transparent; padding-left: 0; }
.editor-photo-section { margin-block: 24px; padding: 20px; border-radius: 18px; background: #f0f7ff; }
.editor-photo-section h3 { margin: 0 0 6px; font-size: 20px; }
.editor-photo-section h3 small { margin-left: 8px; color: var(--blue); font-size: 14px; font-weight: 550; }
.editor-photo-section p { margin: 6px 0; font-size: 14px; line-height: 1.7; }
.editor-photo-help { color: var(--quiet); }
.editor-photo-upload { display: flex; flex-wrap: wrap; gap: 8px; }
.editor-photo-upload input { flex: 1; min-width: 180px; font-size: 14px; }
.editor-photo-list { padding: 0; margin: 22px 0 0; list-style: none; }
.editor-photo-list:empty { margin: 0; }
.editor-photo-list li { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 16px; padding-block: 16px; border-top: 1px solid var(--line); }
.editor-photo-list img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.editor-photo-list label { margin-top: 0; }
.editor-photo-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.editor-preview-photos figure { margin: 30px 0; }
.editor-preview-photos img { display: block; max-width: 100%; height: auto; border-radius: 12px; }
.editor-preview-photos figcaption { margin-top: 10px; color: var(--quiet); font-size: 14px; }
@media (max-width: 850px) {
  .editor-workspace { grid-template-columns: minmax(0, 1fr); }
  .editor-library [data-list] { max-height: 275px; overflow-y: auto; }
}
@media (max-width: 500px) {
  .editor-header { flex-wrap: wrap; gap: 4px; }
  .editor-view-blog { min-height: 44px; }
  .editor-desk { padding: 16px; }
  .editor-actions { gap: 6px; }
  .editor-photo-section { padding: 14px; }
  .editor-photo-list li { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
}
