/* Leptos host adjustments; shared C editor styles live in authoring.css. */
.admin-shell:has(.admin-editor) { max-width:1800px; padding-inline:24px; }
.editor-topbar { position:sticky; top:0; z-index:30; display:flex; flex-wrap:wrap; align-items:center; gap:16px; padding:12px 0; background:var(--surface); border-bottom:1px solid var(--border-soft); }
.editor-actions { display:flex; flex-wrap:wrap; gap:8px; margin-left:auto; }
.editor-metadata { max-width:900px; margin:40px auto 24px; }
.editor-metadata label,.comment-form label,.comment-delete-page label,.admin-dialog label { display:grid; gap:8px; margin-bottom:16px; }
.editor-metadata input,.editor-metadata textarea,.editor-metadata select,.comment-delete-page input { box-sizing:border-box; width:100%; min-height:44px; border:1px solid var(--border); border-radius:12px; background:var(--surface); color:var(--text); padding:10px 12px; font:inherit; }
.editor-metadata textarea { min-height:88px; resize:vertical; }
.editor-title { font-size:32px!important; font-weight:650!important; }
.editor-settings summary { display:flex; align-items:center; justify-content:space-between; padding-block:12px; cursor:pointer; list-style:none; }
.editor-settings summary::-webkit-details-marker { display:none; }
.editor-settings[open] summary svg { transform:rotate(180deg); }
.editor-settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-block:16px; }
.editor-host { min-height:350px; }
.editor-bottom-actions,.comment-pagination { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-block:24px; }
.admin-post-list { list-style:none; padding:0; }
.admin-post-list>li { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:24px 0; border-bottom:1px solid var(--border-soft); }
.admin-post-list h2 { margin:8px 0; font-size:21px; }
.admin-filters { display:flex; flex-wrap:wrap; gap:16px; margin-block:24px; }
.admin-filters label { display:grid; gap:8px; flex:1; }
.admin-filters :is(input,select) { min-height:44px; padding:10px 12px; border:1px solid var(--border); border-radius:12px; background:var(--surface); color:var(--text); font:inherit; }
.recovery-banner { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:16px; background:var(--surface-soft); }
.article-preview-dialog { width:min(1400px,96vw); max-width:96vw; max-height:94dvh; }
.preview-controls { display:flex; gap:12px; margin-block:16px; }
.preview-frame { max-height:72dvh; overflow:auto; background:var(--surface); border:1px solid var(--border-soft); margin-inline:auto; width:100%; }
.preview-frame.is-mobile { width:390px; max-width:100%; }
.preview-site-header,.preview-site-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px; padding:24px; border-bottom:1px solid var(--border-soft); }
.preview-site-header nav { display:flex; gap:24px; }
.preview-frame.is-mobile .preview-site-header nav { display:none; }
.preview-frame.is-mobile .desktop-nav,.preview-frame.is-mobile .search-trigger kbd { display:none; }
.preview-frame.is-mobile .mobile-menu-trigger { display:inline-flex; }
.preview-frame.is-mobile .site-header { padding-inline:20px; gap:12px; }
.preview-frame.is-mobile .footer-top,.preview-frame.is-mobile .footer-bottom { align-items:flex-start; flex-direction:column; gap:24px; }
.preview-frame.is-mobile .footer-top nav { flex-wrap:wrap; gap:20px; }
.preview-frame .article-body { max-width:680px; margin-inline:auto; }
.preview-frame.is-mobile .container { padding-inline:20px; width:100%; }
.preview-frame.is-mobile .article-heading h1 { font-size:30px; }
.comments-section { max-width:800px; margin:64px auto; }
.comment-body { white-space:pre-wrap; overflow-wrap:anywhere; }
.comment-delete-page { max-width:680px; }
.comment-delete-page form { margin-block:32px; }
.comment-form .comment-field>label { margin-bottom:0; }
.admin-nav>button { margin-left:auto; }
.check-field { display:flex!important; align-items:center; }
.check-field input { width:auto; }
.admin-dialog :is(input,textarea,select) { max-width:100%; }
@media(max-width:700px) {
  .admin-shell:has(.admin-editor) { padding-inline:12px; }
  .editor-topbar { gap:8px; }
  .editor-topbar .wordmark { font-size:20px; }
  .editor-topbar .save-status { font-size:12px; }
  .editor-actions { width:100%; margin:0; }
  .editor-actions .button { flex:1; padding-inline:8px; }
  .editor-settings-grid { grid-template-columns:1fr; }
  .admin-nav { gap:12px; flex-wrap:wrap; padding-block:12px; }
  .admin-nav>div { gap:16px; }
  .admin-nav .admin-brand { display:none; }
  .admin-post-list h2 { font-size:18px; }
}
