/* Kept separate and versioned so a cached site stylesheet cannot break the editor. */
.blog-site {
  --bg: #ffffff;
  --surface: #fff;
  --text: #202124;
  --muted: #637183;
  --faint: #778598;
  --line: #e0e6ed;
  --link: #34668f;
  --link-bg: #eef4f9;
  --accent: #5b86aa;
  --font-reading: var(--font-main);
  background: var(--bg);
}
html[data-theme='dark'] .blog-site {
  --bg: #141c26;
  --surface: #1a2430;
  --text: #e5eaf0;
  --muted: #afbac8;
  --faint: #92a2b5;
  --line: #303e4e;
  --link: #9ec5e4;
  --link-bg: #253748;
  --accent: #7ca6c8;
}
.blog-site [hidden] { display: none !important; }
.blog-site button:not(.theme-toggle), .blog-site input, .blog-site textarea { font: inherit; }
.blog-site button { cursor: pointer; }
.blog-site button:disabled { cursor: progress; opacity: .55; }
.blog-site :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.blog-site .site-header { background: var(--bg); backdrop-filter: none; }
.blog-site .nav-links a[aria-current='page'] { color: var(--link); }
.blog-site .site-footer { max-width: 1080px; font-size: .83rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.blog-page { width: min(calc(100% - 48px), 646px); max-width: none; padding: 72px 0 96px; min-height: calc(100vh - 168px); }
.blog-page[data-view='editor'] { width: min(calc(100% - 48px), var(--editor-page-width, 1120px)); padding-top: 30px; }
.blog-page[data-view='editor'] > .blog-header, .blog-page[data-view='post'] > .blog-header { display: none; }
.blog-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.blog-header h1 { font-family: var(--font-reading); font-size: 3.4rem; font-weight: 500; letter-spacing: -.05em; line-height: 1.1; margin: 0; }
.blog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; flex-shrink: 0; padding: 0 0 4px; }
.blog-site .primary-button { display: inline-flex; gap: 9px; align-items: center; justify-content: center; min-height: 40px; border-radius: 2px; padding: 8px 18px; border: 1px solid #34668f; background: #34668f; color: #fff; font-size: .88rem; font-weight: 600; line-height: 1.4; white-space: nowrap; transition: background 120ms; }
.blog-site .primary-button:hover { background: #285272; border-color: #285272; }
.blog-site .write-button span { font-size: 1.2rem; font-weight: 400; }
.blog-site .text-button, .blog-site .quiet-button, .blog-site .back-button { border: 0; background: transparent; padding: 4px 0; color: var(--muted); font: inherit; font-size: .88rem; font-weight: 500; }
.blog-site .text-button:hover, .blog-site .quiet-button:hover, .blog-site .back-button:hover { color: var(--link); }
.blog-feed-heading { display: flex; justify-content: space-between; align-items: center; margin: 28px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.blog-feed-heading h2 { font-size: .92rem; letter-spacing: 0; font-weight: 600; }
.blog-feed-heading span, .comments-heading span { font-size: .8rem; color: var(--faint); }
.blog-status { color: var(--muted); font-size: .9rem; margin: 24px 0; }
.blog-status:empty { display: none; }
.blog-empty { text-align: center; padding: 70px 10px 60px; }
.blog-empty svg { width: 42px; height: 42px; color: var(--accent); margin-bottom: 17px; }
.blog-empty h3 { font-family: var(--font-reading); font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; margin-bottom: 10px; }
.blog-feed-item { padding: 28px 0; border-bottom: 1px solid var(--line); }
.blog-feed-link { display: block; text-decoration: none; color: var(--text); }
.blog-feed-link h2 { font: 500 1.85rem/1.3 var(--font-reading); letter-spacing: -.025em; margin: 8px 0 10px; }
.blog-feed-link:hover h2 { color: var(--link); }
.blog-feed-summary { margin: 0 0 14px; color: var(--muted); line-height: 1.7; }
.blog-feed-meta, .blog-post-meta, .comment-meta { margin: 0; color: var(--faint); font-size: .8rem; letter-spacing: .01em; }
.blog-post-view { padding: 0; }
.blog-site .back-button { margin: 0 0 40px; }
.blog-post { padding-bottom: 48px; }
.blog-post > h1 { margin: 18px 0; font: 500 clamp(2.1rem, 3.825vw, 3rem)/1.16 var(--font-reading); letter-spacing: -.035em; }
.blog-post-summary { font-size: 1.15rem; line-height: 1.65; margin: 0 0 36px; }
.blog-post-summary:empty { display: none; }
.blog-post-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.blog-site .blog-post-topbar .back-button { margin: 0; }
.blog-site .blog-edit-button { padding: 8px 14px; border: 1px solid var(--line); border-radius: 2px; color: var(--link); white-space: nowrap; }
.blog-site .blog-edit-button:hover { background: var(--link-bg); border-color: var(--accent); }
.prose { color: var(--text); font: 400 1.12rem/1.85 var(--font-reading); overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p { color: inherit; margin: 0 0 1.3em; white-space: normal; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--font-reading); font-weight: 600; line-height: 1.35; letter-spacing: -.02em; margin: 1.6em 0 .65em; }
.prose h1 { font-size: 1.8em; }
.prose h2 { font-size: 1.45em; }
.prose h3 { font-size: 1.2em; }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.3em; }
.prose li + li { margin-top: .3em; }
.prose blockquote { border-left: 2px solid var(--accent); padding-left: 20px; margin: 1.6em 0; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose code { font-family: var(--font-code); font-size: .8em; background: var(--link-bg); border-radius: 3px; padding: .15em .3em; }
.prose pre { padding: 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; overflow: auto; line-height: 1.6; white-space: pre; }
.prose pre code { padding: 0; background: none; }
.prose img { max-width: 100%; height: auto; border-radius: 5px; margin: 1em auto; }
.prose table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font: .88em/1.6 var(--font-main); margin: 1.5em 0; }
.prose th, .prose td { padding: 9px 14px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--bg); }
.prose .math-block { display: block; overflow-x: auto; overflow-y: hidden; padding: 12px 2px; margin: 1.3em 0; }
.prose .katex { font-size: 1.05em; }
.prose .katex-display { margin: .2em 0; }
.prose .math-error { color: #b64d49; font-family: var(--font-code); font-size: .85em; white-space: pre-wrap; }
.comments { border-top: 1px solid var(--line); padding-top: 30px; }
.comments-heading { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.comments-heading h2 { font-size: 1.05rem; }
.comment { padding: 22px 0; border-bottom: 1px solid var(--line); }
.comment-body { color: var(--text); margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.empty-comments { margin: 24px 0; color: var(--muted); font-size: .92rem; }
.blog-auth { max-width: 440px; margin: 40px auto 0; padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.blog-panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.blog-panel-heading h2 { font: 500 1.7rem/1.3 var(--font-reading); }
.blog-panel-heading .venue { font-size: .66rem; margin-bottom: 8px; }
.blog-form { display: grid; gap: 18px; }
.blog-form label { display: grid; gap: 7px; font-size: .86rem; font-weight: 500; color: var(--muted); }
.blog-form input, .blog-form textarea { display: block; width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--text); font: inherit; resize: vertical; }
.blog-form input:focus, .blog-form textarea:focus { border-color: var(--accent); outline: 2px solid var(--link-bg); outline-offset: 1px; }
.blog-form-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form-status { color: var(--muted); font-size: .86rem; margin: 0; }
.comment-form { margin-top: 30px; max-width: 620px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Writing surface */
.blog-editor { margin: 0; padding: 0; border: 0; background: transparent; }
.editor-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 22px; }
.editor-breadcrumb, .editor-publish-actions { display: flex; align-items: center; gap: 16px; }
.editor-breadcrumb > span { color: var(--line); }
.editor-breadcrumb h2 { color: var(--muted); font-size: .86rem; font-weight: 400; letter-spacing: 0; }
.draft-status { color: var(--faint); font-size: .79rem; }
.editor-paper { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.editor-metadata { padding: 36px 36px 22px; }
.editor-title-input, .editor-summary-input { display: block; width: 100%; border: 0; border-radius: 0; background: transparent; color: var(--text); resize: none; overflow: hidden; }
.blog-site .editor-title-input { padding: 0 0 12px; font: 500 clamp(1.8rem,3.3vw,2.6rem)/1.25 var(--font-reading); letter-spacing: -.035em; }
.blog-site .editor-summary-input { padding: 0; color: var(--muted); font-size: 1rem; line-height: 1.7; min-height: 54px; }
.editor-title-input::placeholder { color: var(--faint); opacity: .7; }
.editor-summary-input::placeholder, .post-editor-body::placeholder { color: var(--faint); opacity: .85; }
.editor-title-input:focus-visible, .editor-summary-input:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
.editor-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 22px; border-block: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 65%, var(--surface)); }
.format-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; }
.format-toolbar button { min-width: 34px; min-height: 34px; padding: 4px 8px; border: 0; background: transparent; color: var(--muted); border-radius: 2px; font-size: .94rem; line-height: 1; }
.format-toolbar button:hover, .format-toolbar button[aria-expanded='true'] { background: var(--link-bg); color: var(--link); }
.format-toolbar .subscript { font-size: .6em; }
.toolbar-divider { width: 1px; height: 16px; background: var(--line); margin: 0 5px; }
.format-toolbar .math-trigger { display: flex; align-items: center; gap: 7px; font-size: .84rem; }
.math-trigger > span { font-family: Georgia, serif; font-size: 1.25rem; }
.view-switch { display: flex; flex-shrink: 0; padding: 3px; border: 1px solid var(--line); border-radius: 2px; }
.view-switch button { border: 0; border-radius: 2px; padding: 5px 11px; background: transparent; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.view-switch button[aria-pressed='true'] { background: var(--surface); color: var(--link); outline: 1px solid var(--line); }
.math-tools { padding: 18px 28px; background: var(--bg); border-bottom: 1px solid var(--line); }
.math-tools-heading { display: flex; justify-content: space-between; gap: 12px; color: var(--text); font-size: .85rem; margin-bottom: 12px; }
.math-note { color: var(--muted); font-size: .78rem; }
.math-templates { display: flex; flex-wrap: wrap; gap: 8px; }
.math-templates button { display: grid; align-content: center; justify-items: center; gap: 4px; min-height: 72px; min-width: 85px; border: 1px solid var(--line); border-radius: 2px; padding: 10px 13px; background: var(--surface); color: var(--text); }
.math-templates button:hover { border-color: var(--accent); background: var(--link-bg); }
.math-templates .template-label { font-size: .67rem; color: var(--muted); }
.math-templates .katex { font-size: 1.05em; }
.math-templates p { margin: 0; color: inherit; }
.editor-workspace { display: block; min-height: 440px; }
.editor-workspace[data-mode='split'] { display: grid; grid-template-columns: minmax(0,var(--editor-left, 50fr)) 12px minmax(0,var(--editor-right, 50fr)); grid-template-rows: minmax(0,1fr); height: clamp(440px, 65vh, 720px); }
.editor-source, .editor-preview { min-width: 0; padding: 24px 28px 28px; }
.editor-source { display: flex; flex-direction: column; }
.editor-preview { border-left: 1px solid var(--line); overflow-wrap: anywhere; overflow-y: auto; }
.editor-workspace[data-mode='split'] .editor-preview { border-left: 0; }
.pane-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--faint); font-size: .71rem; margin: 0 0 22px; letter-spacing: .02em; }
.pane-heading label { color: var(--muted); }
.live-indicator::before { display: inline-block; content: ''; width: 5px; height: 5px; background: #67937c; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.blog-site .post-editor-body { display: block; flex: 1; width: 100%; min-width: 0; min-height: 0; resize: none; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--text); font: .92rem/1.85 var(--font-code); tab-size: 2; }
.post-editor-body:focus-visible { outline: none; }
.editor-source:focus-within { outline: 2px solid var(--accent); outline-offset: -2px; }
.preview-content { font-size: 1.02rem; }
.preview-placeholder { color: var(--faint); font: 400 1.35rem/1.5 var(--font-reading); margin-top: 8px; }
.editor-workspace[data-mode='preview'] .editor-preview { border-left: 0; max-width: 780px; width: 100%; margin-inline: auto; padding-block: 32px 48px; }
.editor-footnote { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 13px 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: .73rem; }
.editor-bottom-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 20px; margin-top: 16px; }
.editor-bottom-actions { display: flex; align-items: flex-start; gap: 20px; margin-left: auto; }
.editor-size-controls { position: relative; color: var(--muted); font-size: .8rem; }
.editor-size-controls > summary { cursor: pointer; padding: 4px 0; white-space: nowrap; }
.editor-size-options { position: absolute; z-index: 5; bottom: calc(100% + 10px); right: 0; width: 260px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.editor-size-options label { display: flex; justify-content: space-between; gap: 12px; }
.editor-size-options output { color: var(--faint); font-variant-numeric: tabular-nums; }
.editor-size-options input { display: block; width: 100%; margin: 12px 0 18px; accent-color: var(--accent); }
.editor-divider { position: relative; cursor: col-resize; touch-action: none; }
.editor-divider::before { content: ''; position: absolute; inset: 0 auto 0 5px; width: 1px; background: var(--line); }
.editor-divider::after { content: ''; position: absolute; width: 4px; height: 36px; top: calc(50% - 18px); left: 4px; border-radius: 4px; background: var(--line); }
.editor-height-handle { display: flex; justify-content: center; align-items: center; height: 18px; cursor: row-resize; touch-action: none; }
.editor-height-handle span { width: 52px; height: 3px; border-radius: 4px; background: var(--line); }
.editor-divider:hover, .editor-divider:focus-visible, .editor-height-handle:hover, .editor-height-handle:focus-visible, .is-resizing { background: var(--link-bg); }
.editor-divider:hover::after, .editor-divider:focus-visible::after, .editor-height-handle:hover span, .editor-height-handle:focus-visible span { background: var(--accent); }
.editor-resizing, .editor-resizing * { user-select: none !important; }
.writing-help { color: var(--muted); font-size: .8rem; max-width: 650px; }
.writing-help summary { cursor: pointer; padding: 4px 0; }
.writing-help-content { padding: 15px 0; }
.writing-help-content p { margin: 0 0 8px; }
.writing-help code { font-size: .9em; color: var(--link); }
.blog-site .editor-bottom-bar .quiet-button { font-size: .8rem; white-space: nowrap; }
.editor-status { padding-top: 10px; }

/* Direct, in-document editing. Folding never removes content from the document. */
.editor-workspace[data-mode='write'] { height: auto; min-height: 460px; }
.editor-workspace[data-mode='source'] { height: min(65vh, 640px); }
.editor-workspace[data-mode='source'] .editor-source { height: 100%; }
.editor-visual { max-width: 850px; margin-inline: auto; padding: 30px 40px 60px; }
.visual-pane-heading { display: none; }
.editor-workspace[data-mode='split'] .editor-visual { min-width: 0; width: 100%; margin: 0; padding: 24px 28px 28px; overflow-y: auto; }
.editor-workspace[data-mode='split'] .visual-pane-heading { display: flex; }
.editor-workspace[data-mode='split'] .block-editor { font-size: 1.02rem; }
.editor-workspace[data-custom-height] { min-height: 320px; overflow: hidden; }
.editor-workspace[data-custom-height] > .editor-visual, .editor-workspace[data-custom-height] > .editor-source, .editor-workspace[data-custom-height] > .editor-preview { height: 100%; min-height: 0; max-height: none; overflow-y: auto; }
.editor-workspace[data-custom-height] .block-editor { min-height: 180px; }
.blog-page[data-view='editor'] .editor-visual { width: 100%; }
.blog-page[data-custom-width] .editor-visual, .blog-page[data-custom-width] .editor-workspace[data-mode='preview'] .editor-preview { max-width: none; }
.block-editor { min-height: 350px; outline: none; overflow-wrap: anywhere; white-space: pre-wrap; }
.block-editor:focus-visible { outline: none; }
.block-editor p.is-empty::before, .block-editor summary.is-empty::before { content: attr(data-placeholder); float: left; height: 0; color: var(--faint); pointer-events: none; }
.block-editor > :first-child { margin-top: 0; }
.block-editor img { max-width: 100%; height: auto; }
.block-editor .ProseMirror-selectednode { outline: 2px solid var(--accent); outline-offset: 3px; }
.block-editor [data-type='details'] { display: flex; gap: 5px; margin: 12px 0; }
.block-editor [data-type='details'] > button { flex: 0 0 28px; align-self: flex-start; min-height: 30px; padding: 0; margin-top: 1px; border: 0; background: transparent; color: var(--muted); font-size: 1.2rem; line-height: 1.5; border-radius: 4px; }
.block-editor [data-type='details'] > button:hover { background: var(--link-bg); }
.block-editor [data-type='details'].is-open > button { transform: rotate(90deg); }
.block-editor [data-type='details'] > div { flex: 1; min-width: 0; }
.block-editor summary { display: block; min-height: 32px; list-style: none; cursor: text; font-weight: 550; }
.block-editor summary::-webkit-details-marker { display: none; }
.block-editor [data-type='detailsContent'] { margin: 4px 0 4px 1px; padding: 2px 0 2px 16px; border-left: 1px solid var(--line); }
.block-editor [data-type='detailsContent'] > :first-child { margin-top: 0; }
.block-editor [data-type='details']:not(.is-open) > div > [data-type='detailsContent'] { display: none; }
.blog-toggle { margin: 16px 0; }
.blog-toggle > summary { cursor: pointer; font-weight: 550; color: var(--text); padding: 3px 0; }
.blog-toggle > summary::marker { color: var(--muted); font-size: .8em; }
.blog-toggle > div { margin: 8px 0 8px 6px; padding-left: 18px; border-left: 1px solid var(--line); }
.blog-toggle > div > :first-child { margin-top: 0; }
.block-editor .math-source { cursor: text; font-family: var(--font-code); font-size: .88em; color: var(--link); white-space: pre-wrap; overflow-wrap: anywhere; }
.math-source::before, .math-source::after { content: '$'; color: var(--muted); }
.math-source[data-display='true']::before, .math-source[data-display='true']::after { content: '$$'; }
.block-editor .math-source-block { display: block; margin: 1.3em 0; line-height: 1.7; }
.math-source-block::before, .math-source-block::after { display: block; }
.format-toolbar .toggle-tool { white-space: nowrap; font-size: .83rem; }
.block-editor table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.block-editor td, .block-editor th { border: 1px solid var(--line); padding: 6px 10px; vertical-align: top; }
.block-editor ul[data-type='taskList'] { padding-left: 0; list-style: none; }
.block-editor li[data-type='taskItem'] { display: flex; gap: 9px; align-items: baseline; }
.block-editor li[data-type='taskItem'] > div { flex: 1; }
.editor-dialog { width: min(540px, calc(100% - 32px)); max-height: 85vh; overflow: auto; padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); }
.editor-dialog::backdrop { background: #0e18284d; }
.editor-dialog h2 { margin: 0 0 22px; font-size: 1.2rem; }
.editor-dialog label { display: block; font-size: .82rem; margin-bottom: 8px; }
.editor-dialog textarea, .editor-dialog input { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 5px; padding: 12px; }
.editor-dialog textarea { font-family: var(--font-code); resize: vertical; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 20px; margin-top: 20px; }
.format-toolbar .footnote-tool { white-space: nowrap; font-size: .83rem; }
.editor-footnote-ref, .blog-footnote-ref { font-family: var(--font-main); font-size: .72em; vertical-align: super; line-height: 0; }
.editor-footnote-ref { cursor: pointer; color: var(--link); padding: 3px; border-radius: 3px; }
.editor-footnote-ref:hover { background: var(--link-bg); }
.blog-footnote-ref a { text-decoration: none; padding: 3px; }
.blog-footnotes { margin-top: 3em; padding-top: 1.4em; border-top: 1px solid var(--line); font-size: .88em; }
.prose .blog-footnotes h2 { margin: 0 0 1em; font-family: var(--font-main); font-size: .9em; font-weight: 600; }
.blog-footnotes li { padding-left: .35em; margin-bottom: 1em; scroll-margin-top: 100px; }
.blog-footnotes li > p:last-of-type { display: inline; }
.footnote-backlink { display: inline-block; margin-left: .55em; font-family: var(--font-main); text-decoration: none; }
.editor-unused-footnote { margin: 12px 0; padding: 10px 14px; border-left: 2px solid var(--line); color: var(--muted); font-size: .85em; cursor: pointer; }
.footnote-dialog-preview { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .95rem; max-height: 220px; overflow-y: auto; }
.footnote-dialog-preview:empty { display: none; }
.dialog-actions .footnote-remove { margin-right: auto; font-size: .8rem; }

@media (max-width: 900px) {
  .editor-controls { flex-wrap: wrap; padding-inline: 16px; }
  .editor-topbar { align-items: flex-start; }
  .editor-publish-actions { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  .editor-workspace[data-mode='split'] { grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto; height: auto; }
  .editor-workspace[data-mode='split'] .editor-visual { min-height: 360px; max-height: 520px; }
  .editor-workspace[data-mode='split'] .editor-source { min-height: 420px; }
  .editor-workspace[data-mode='split'] .editor-preview { max-height: 520px; }
  .editor-workspace[data-mode='split'] .editor-preview { border-left: 0; border-top: 1px solid var(--line); }
  .editor-workspace[data-mode='split'][data-custom-height] { grid-template-rows: minmax(0,1fr) minmax(0,1fr); min-height: 640px; }
  .editor-workspace[data-mode='split'][data-custom-height] > .editor-visual, .editor-workspace[data-mode='split'][data-custom-height] > .editor-source, .editor-workspace[data-mode='split'][data-custom-height] > .editor-preview { min-height: 0; max-height: none; }
}
@media (max-width: 600px) {
  .blog-page { width: calc(100% - 36px); padding-top: 42px; padding-bottom: 64px; }
  .blog-page[data-view='editor'] { width: calc(100% - 24px); padding-top: 20px; }
  .blog-header { align-items: flex-start; flex-direction: column; gap: 26px; padding-bottom: 28px; }
  .blog-header h1 { font-size: 2.8rem; }
  .blog-intro { font-size: .98rem; }
  .blog-actions { gap: 18px; }
  .blog-empty { padding-block: 50px; }
  .blog-auth { padding: 24px; }
  .editor-topbar { gap: 10px; margin-bottom: 16px; }
  .editor-breadcrumb { flex-shrink: 0; gap: 8px; padding-top: 8px; white-space: nowrap; }
  .editor-publish-actions { min-width: 0; }
  .editor-breadcrumb h2, .editor-breadcrumb > span { display: none; }
  .draft-status { order: 2; width: 100%; text-align: right; font-size: .68rem; }
  .editor-metadata { padding: 26px 20px 18px; }
  .editor-title-input { font-size: 1.8rem; }
  .editor-controls { gap: 10px; padding: 10px 12px; }
  .format-toolbar { gap: 1px; }
  .format-toolbar button { min-width: 30px; padding-inline: 6px; }
  .toolbar-divider { margin-inline: 3px; }
  .view-switch { margin-left: auto; }
  .editor-source, .editor-preview { padding: 22px 20px; }
  .editor-visual { padding: 24px 20px 45px; }
  .editor-workspace[data-mode='split'] .editor-visual { padding-inline: 20px; }
  .block-editor [data-type='detailsContent'] { padding-left: 10px; }
  .editor-footnote { padding-inline: 20px; font-size: .69rem; }
  .editor-footnote > span:last-child { max-width: 210px; text-align: right; }
  .math-tools { padding: 16px; }
  .math-tools-heading { display: grid; gap: 3px; }
  .math-templates { gap: 6px; }
  .math-templates button { min-width: 76px; padding-inline: 8px; }
  .prose { font-size: 1.05rem; }
  .editor-bottom-bar { gap: 10px; padding-inline: 4px; }
  .editor-size-options { position: fixed; inset: auto 16px 20px; width: auto; }
}
