.editor-top-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin: 0 0 18px; }
.template-picker > h1 { margin: 6px 0 10px; font-size: clamp(34px, 6vw, 52px); letter-spacing: -1.6px; }
.template-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:12px; margin-top:28px; }
.template-card { position:relative; display:block; padding:24px; border:1px solid #dfe3e8; border-radius:18px; background:#fff; color:inherit; text-decoration:none; transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.template-card:hover { transform:translateY(-2px); border-color:#b9c0ca; box-shadow:0 10px 30px rgba(20,28,38,.06); }
.template-card h2 { margin:22px 0 8px; font-size:22px; }
.template-card p { min-height:42px; color:#707784; font-size:13px; line-height:1.6; }
.template-card strong { font-size:12px; }
.template-code { display:inline-flex; width:32px; height:32px; align-items:center; justify-content:center; border-radius:9px; background:#f0f2f5; color:#69717c; font-size:11px; font-weight:800; }
.template-empty-start { margin-top:18px; }

.similar-warning { margin: -6px 0 18px; padding:14px 16px; border:1px solid #f0d7a5; border-radius:13px; background:#fff9ed; }
.similar-warning > strong { display:block; font-size:13px; }
.similar-warning > p { margin:4px 0 10px; color:#7a6846; font-size:12px; }
.similar-list { display:grid; gap:6px; }
.similar-list a { display:flex; justify-content:space-between; gap:12px; padding:8px 10px; border-radius:9px; background:rgba(255,255,255,.8); color:#363b43; text-decoration:none; }
.similar-list a b { font-size:12px; }
.similar-list a span { color:#8a7959; font-size:11px; }

.draft-preview-panel { margin:26px 0; padding:20px; border:1px solid #dce1e7; border-radius:17px; background:#fff; scroll-margin-top:80px; }
.draft-preview-head { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; margin-bottom:18px; }
.draft-preview-head h2 { margin:4px 0 0; font-size:22px; }
.draft-score { flex:0 0 auto; padding:7px 10px; border-radius:999px; background:#1d2026; color:#fff; font-size:11px; font-weight:800; }
.draft-preview-grid { display:grid; grid-template-columns:minmax(0, 1.5fr) minmax(240px, .8fr); gap:18px; }
.draft-document { min-height:220px; padding:18px; border:1px solid #e2e5ea; border-radius:13px; background:#fbfcfd; font-size:14px; line-height:1.75; overflow-wrap:anywhere; }
.draft-check-column { padding:16px; border-radius:13px; background:#f6f7f9; }
.draft-check-column h3 { margin:0 0 10px; font-size:14px; }
.draft-checks { list-style:none; display:grid; gap:9px; padding:0; margin:0; }
.draft-checks li { display:grid; gap:2px; padding-bottom:8px; border-bottom:1px solid #e3e6eb; }
.draft-checks li:last-child { border-bottom:0; padding-bottom:0; }
.draft-checks strong { font-size:11px; }
.draft-checks span { color:#7b828d; font-size:10px; line-height:1.45; }
.draft-checks .ok strong { color:#21733f; }
.draft-checks .todo strong { color:#8a5b00; }
.authoring-note { margin:10px 0 0; color:#8a9099; font-size:10px; }
.error-note { color:#a33b3b; }

@media (max-width: 760px) {
  .template-grid { grid-template-columns:1fr; }
  .template-card p { min-height:auto; }
  .draft-preview-head { flex-direction:column; }
  .draft-preview-grid { grid-template-columns:1fr; }
  .similar-list a { flex-direction:column; gap:3px; }
}
