.editor{min-height:100vh}
/* Inline, document-first editing. Publication tools remain outside the canvas. */
body:has([data-editor-root]) .portal-sidebar{display:none}
body:has([data-editor-root]) .portal-workspace{display:block;width:100%;max-width:none;margin:0}
body:has([data-editor-root]) .portal-workspace>main{width:100%;min-width:0}
.editor-toolbar{position:sticky;top:0;z-index:20;width:100%;overflow:hidden;background:var(--surface);border-bottom:1px solid var(--line)}
.toolbar-titlebar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;min-height:76px;padding:16px 24px;background:var(--surface)}
.toolbar-identity{display:flex;flex:1 1 260px;align-items:center;gap:20px;min-width:0}
.toolbar-identity>div{min-width:0;display:grid;gap:7px}
.toolbar-document-label{font:11px/1.4 Inter,sans-serif;color:var(--muted)}
.toolbar-identity h1{overflow:hidden;margin:0;font:22px/1.2 var(--display);text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap;max-width:36vw}
.editor-back{flex:0 0 auto;color:var(--teal-bright);font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:13px;text-decoration:none}
.toolbar-titlebar [data-status]{margin-left:auto;text-align:right}
.toolbar-titlebar [data-autosave-state]{color:var(--muted);font:12px/1.4 Inter,"Segoe UI",Arial,sans-serif;max-width:200px}
.toolbar-ribbon{display:flex;align-items:center;flex-wrap:wrap;gap:8px;width:100%;padding:10px 24px;overflow:hidden;background:var(--surface-2);border-top:1px solid var(--line)}
.toolbar-group{display:flex;flex:0 1 auto;min-width:0;max-width:100%;flex-direction:column;gap:10px;padding:6px 12px;border-right:1px solid #3b3b3b}
.toolbar-group:first-child{padding-left:4px}
.toolbar-group:last-child{border-right:0}
.toolbar-group-label{display:block;color:var(--muted);font:500 12px/1.4 Inter,"Segoe UI",Arial,sans-serif;text-align:left}
.editor-toolbar label{display:block;color:var(--muted);font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:12px}
.toolbar-fields-controls{display:flex;flex-wrap:wrap;gap:12px;padding:14px 0 4px}
.toolbar-fields{flex:1 1 520px}
.toolbar-fields label:first-child{flex:1 1 180px}
.toolbar-fields label:nth-child(2){flex:2 1 260px}
.toolbar-fields label:last-child{flex:0 0 54px}
.editor-toolbar input,.editor-toolbar textarea{display:block;width:100%;height:38px;margin-top:8px;padding:8px 12px;background:var(--surface-2);color:var(--text);border:1px solid var(--line);border-radius:4px;font-family:Inter,"Segoe UI",Arial,sans-serif}
.editor-toolbar textarea{resize:none}
.editor-toolbar input[type=color]{padding:3px}
.toolbar-add{flex:1 1 420px}
.editor-tools{display:flex;flex-wrap:wrap;gap:4px;width:100%}
.format-tools{display:flex;flex-wrap:wrap;gap:6px}
.format-tools [data-format]:not([data-format=link]){min-width:36px}
.editor-actions{display:flex;flex-wrap:wrap;gap:4px}
.child-controls{display:flex;flex-wrap:wrap;gap:5px}
.editor-toolbar button,.import-button,.child-controls button,.child-controls select,.block-fields input,.block-fields select,.history-panel button{min-height:34px;padding:8px 11px;background:var(--surface-2);color:var(--text);border:1px solid var(--line);border-radius:4px;font:13px/1.35 Inter,"Segoe UI",Arial,sans-serif;cursor:pointer}
.editor-toolbar button:hover,.editor-toolbar button:focus-visible,.import-button:hover,.import-button:focus-within,.child-controls button:hover,.history-panel button:hover{background:color-mix(in srgb,var(--teal) 16%,var(--surface));border-color:var(--teal-bright);outline:none}
.editor-toolbar button:focus-visible,.import-button:focus-within{box-shadow:0 0 0 2px var(--teal-bright)}
.editor-toolbar .primary{background:var(--teal);color:#fff;border-color:var(--teal-bright)}
.import-button{display:inline-flex!important;align-items:center;margin:0!important;color:#fff!important;font-size:13px!important}
.editor-error,[data-status]{margin:0;color:#20d0cf;font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:12px}
.editor-main{min-width:0;padding:55px 30px 100px}
.editor-canvas{max-width:820px;margin:auto}
.editor-canvas h1,.editor-canvas h2,.editor-canvas h3{font-family:var(--display)}
.editor-canvas h1,.editor-canvas h2,.editor-canvas h3{font-weight:400}
.editor-block{position:relative;min-width:0;padding:14px;margin:12px 0;border:1px solid var(--line);border-radius:4px}
.editor-block:hover{border-color:#3f6d6d}
.editor-block-tools{display:flex;align-items:center;gap:6px;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.editor-block-type{flex:1;min-width:0;color:var(--muted);font:12px/1.5 Inter,sans-serif}
.editor-block-tools button{flex:none;min-width:30px;min-height:30px;padding:4px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:4px;font:16px/1 Inter,"Segoe UI",Arial,sans-serif;cursor:pointer}
.editor-block [data-id]:not(.builder-columns):not(.builder-table):not(hr){outline:none;min-height:1.4em}
.editor-block [data-id]:focus{outline:2px solid var(--page-accent)}
.editor-canvas .builder-section{padding:24px}
.editor-canvas pre[data-id],.editor-canvas pre[data-id] code{font-family:Inter,"Segoe UI",Arial,sans-serif}
.editor-canvas pre[data-id] code{display:block;min-height:4em;cursor:text;white-space:pre-wrap}
.block-fields{display:flex;flex-wrap:wrap;gap:8px;padding:10px;background:#111}
.block-fields label{flex:1 1 160px;min-width:0;color:#aaa;font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:12px}
.block-fields input,.block-fields select{display:block;width:100%;min-width:0;max-width:100%;margin-top:4px;background:#222}
.editor-nested-list{min-width:0;border:1px dashed #555;padding:8px}
.editor-nested-list>.editor-block{margin-left:0;padding:12px}
.history-overlay{position:fixed;inset:0;z-index:50;display:block;width:min(700px,calc(100% - 32px));height:fit-content;max-height:calc(100dvh - 48px);margin:auto;overflow:auto;scrollbar-gutter:stable;padding:0;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:8px;box-shadow:0 24px 80px #0005}
.history-overlay::backdrop{background:#0009}
.history-overlay[hidden]{display:none}
.history-panel{width:100%;padding:28px;font:14px/1.6 Inter,sans-serif}
.history-header{display:flex;align-items:start;justify-content:space-between;gap:20px}
.history-kicker{display:block;margin-bottom:8px;color:var(--muted);font:12px/1.5 Inter,sans-serif}
.history-header h2{margin:0;font:30px/1.2 var(--display);font-weight:400}
.history-header .history-close{flex:none;font-size:24px;width:36px;height:36px;padding:0}
.history-description{margin:18px 0;color:var(--muted)}
.history-warning{display:flex;gap:12px;padding:16px;border:1px solid color-mix(in srgb,var(--teal) 40%,var(--line));border-radius:4px;background:color-mix(in srgb,var(--teal) 9%,var(--surface))}
.history-warning>span{font:24px/1 Inter,sans-serif;color:var(--teal-bright)}
.history-warning p{margin:0;font:13px/1.6 Inter,sans-serif}
.version-list{display:grid;gap:12px;padding:0;margin:24px 0;list-style:none}
.version-card{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:16px;padding:18px;border:1px solid var(--line);border-radius:6px;background:var(--surface-2)}
.version-card--current{border-color:color-mix(in srgb,var(--teal) 60%,var(--line))}
.version-number{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:50%;font:500 16px/1 Inter,sans-serif;color:var(--muted)}
.version-card--current .version-number{border-color:var(--teal-bright);color:var(--teal-bright)}
.version-details{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}
.version-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font:600 15px/1.6 Inter,sans-serif}
.version-badge{padding:2px 7px;border-radius:4px;background:color-mix(in srgb,var(--teal) 15%,var(--surface));color:var(--teal-bright);font:12px/1.5 Inter,sans-serif}
.version-author,.version-details time{font:12px/1.5 Inter,sans-serif;color:var(--muted)}
.history-panel .version-restore{min-width:0;white-space:normal;font:13px/1.4 Inter,sans-serif}
.history-empty{padding:30px 20px;text-align:center;border:1px dashed var(--line);border-radius:6px;color:var(--muted)}
.history-empty>span{font:36px/1 Inter,sans-serif}.history-empty h3{margin:14px 0 8px;font:24px/1.3 var(--display);color:var(--text)}.history-empty p{margin:0}
.history-footer{padding-top:16px;border-top:1px solid var(--line);color:var(--muted);font:12px/1.6 Inter,sans-serif}
html.editor-history-open,html.editor-history-open body{overflow:hidden}
@media(max-width:900px){.editor-toolbar{position:relative}.editor-main{padding:35px 20px}.toolbar-fields label:nth-child(2){width:210px}}
.editor-primary-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px}
.editor-toolbar .toolbar-icon-button{display:inline-flex;align-items:center;gap:8px;min-width:0;border-color:transparent;background:transparent;padding:8px 10px}
.toolbar-icon-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;flex:none}
.toolbar-separator{height:24px;width:1px;background:var(--line);margin:0 4px}
.editor-toolbar .toolbar-guide-button{display:inline-flex;gap:8px;align-items:center;margin-left:auto;border-color:transparent;background:transparent}
.toolbar-guide-button>span{display:grid;place-items:center;width:18px;height:18px;border:1px solid currentColor;border-radius:50%;font:12px/1 Inter,sans-serif}
.editor-toolbar button:disabled{opacity:.4;cursor:not-allowed}
.editor-toolbar button[aria-pressed=true]{border-color:var(--teal-bright);background:color-mix(in srgb,var(--teal) 25%,var(--surface))}
.editor-common-blocks,.editor-more-blocks>div{display:flex;flex-wrap:wrap;gap:6px}
.editor-more-blocks{flex-basis:100%;min-width:0}
.editor-more-blocks>div{padding-top:12px}
.editor-toolbar summary{cursor:pointer;color:var(--muted);font:13px/1.5 Inter,sans-serif;padding:6px 0}
.editor-toolbar summary:hover{color:var(--text)}
.editor-file-tools{margin:0;padding:0 10px;font:13px/1.5 Inter,sans-serif}
.editor-file-tools[open]{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.editor-file-tools .editor-actions{padding:0}
.editor-page-options{padding:10px 24px;border-top:1px solid var(--line)}
.editor-page-options summary span{margin-left:12px;font:12px/1.5 Inter,sans-serif;opacity:.7}
.editor-page-options label:first-child{flex:1 1 200px}
.editor-page-options label:nth-child(2){flex:2 1 260px}
.editor-page-options label:last-child{flex:0 0 100px}
.editor-page-options textarea{height:64px}
.editor [hidden],.editor-tooltip[hidden]{display:none!important}
.editor-canvas-intro{max-width:820px;margin:0 auto 26px;font-family:Inter,sans-serif}
.editor-canvas-intro h2{margin:0 0 8px;font:24px/1.2 var(--display)}
.editor-canvas-intro p{margin:0;color:var(--muted);font:13px/1.6 Inter,sans-serif}
.editor-canvas .builder-columns>div{min-width:0}
.child-controls select{max-width:100%;min-width:0}
.editor-empty{padding:32px;border:1px dashed var(--line);border-radius:4px;text-align:center;font:14px/1.6 Inter,sans-serif}
.editor-empty p{margin:10px 0 0;color:var(--muted)}
.editor-block [contenteditable=true]:empty::before{content:attr(data-placeholder);color:var(--muted);opacity:.6;pointer-events:none}
.editor-block .builder-button:empty,.editor-block .builder-embed:empty{min-height:48px}
.editor-block-tools button:hover{background:color-mix(in srgb,var(--teal) 14%,var(--surface));border-color:var(--teal-bright)}
.editor-block:focus-within{border-color:var(--teal-bright)}
.editor :is(button,summary,.import-button):focus-visible{outline:2px solid var(--teal-bright);outline-offset:3px}
.editor-tooltip{position:fixed;z-index:100;width:max-content;max-width:min(340px,calc(100vw - 24px));padding:14px 16px;border:1px solid var(--teal-bright);border-radius:5px;background:var(--surface);color:var(--text);box-shadow:0 8px 28px #0004;font:13px/1.6 Inter,sans-serif;pointer-events:none;overflow-wrap:anywhere}
.editor-guide{width:min(760px,calc(100% - 32px));max-height:calc(100dvh - 48px);padding:28px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--text);overflow:auto;scrollbar-gutter:stable;font:14px/1.7 Inter,sans-serif}
.editor-guide::backdrop{background:#0008}
.editor-guide__header{display:flex;justify-content:space-between;align-items:start;gap:16px}
.editor-guide__header h2{margin:0;font:30px/1.15 var(--display)}
.editor-guide__header button{flex:none;width:36px;height:36px;border:1px solid var(--line);border-radius:4px;background:var(--surface-2);color:var(--text);font:24px/1 Inter,sans-serif;cursor:pointer}
.editor-guide__intro{color:var(--muted);margin:14px 0 24px}
.editor-guide__steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 28px;padding:0;list-style:none}
.editor-guide__steps li{display:flex;align-items:start;gap:12px;min-width:0;padding:16px;border:1px solid var(--line);border-radius:4px;background:var(--surface-2)}
.editor-guide__steps li>span{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;background:var(--teal);color:#fff;font:500 14px/1 Inter,sans-serif}
.editor-guide h3{margin:0 0 8px;font:20px/1.25 var(--display)}
.editor-guide p{margin:0;color:var(--muted)}
.editor-guide>section{padding:20px 0;border-top:1px solid var(--line)}
.editor-guide__blocks{display:grid;gap:14px;margin:0}
.editor-guide__blocks div{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px}
.editor-guide__blocks dt{font-weight:500}
.editor-guide__blocks dd{margin:0;color:var(--muted)}
.editor-guide>footer{padding-top:16px}
.editor-guide>footer .small-button{font:13px/1.5 Inter,sans-serif;min-width:0;white-space:normal;cursor:pointer}
html.editor-guide-open,html.editor-guide-open body{overflow:hidden}
@media(max-width:600px){
  .toolbar-titlebar{padding:12px;gap:10px}
  .toolbar-identity{width:100%;gap:12px}
  .toolbar-titlebar [data-status]{margin:0;text-align:left;width:100%}
  .editor-primary-actions{width:100%}
  .editor-primary-actions [data-save],.editor-primary-actions [data-publish]{flex:1}
  .toolbar-ribbon{gap:14px}
  .toolbar-group{flex-basis:100%;border-right:0;padding:0}
  .editor-main{padding:28px 12px 64px}
  .editor-page-options{padding-inline:12px}
  .editor-page-options summary span{display:block;margin:4px 0 0}
  .editor-page-options label:last-child{flex-basis:100px}
  .editor-guide{padding:20px}
  .editor-guide__steps{grid-template-columns:1fr}
  .editor-guide__blocks div{grid-template-columns:1fr;gap:3px}
  .editor-guide__header h2{font-size:26px}
}

.editor-toolbar{box-shadow:none;background:var(--surface);border-color:var(--line)}
.toolbar-titlebar,.toolbar-ribbon{background:var(--surface)}
.toolbar-titlebar{gap:12px;justify-content:space-between}
.toolbar-identity{flex:1 1 220px}.toolbar-identity h1{font-size:17px;max-width:380px}
.toolbar-ribbon{padding:0 18px 10px}.toolbar-actions{padding:0!important;border:0;flex:1;gap:6px}
.toolbar-actions>.toolbar-group-label{display:none}.toolbar-actions .editor-actions{gap:6px}
.editor-file-tools{margin:0}.editor-file-tools>summary{font-size:12px}
.toolbar-accent{display:flex;align-items:center;gap:10px;margin-left:auto;font:12px/1.5 Inter,sans-serif;color:var(--muted)}
.toolbar-accent input[type=color]{width:34px;height:30px;min-height:30px;padding:2px;border:1px solid var(--line);border-radius:4px;background:var(--surface);cursor:pointer}
.editor-main{padding:48px 80px 100px}
.editor-block{padding:7px 0;margin:3px 0;border:1px solid transparent;border-radius:4px}
.editor-block:hover{border-color:transparent}
.editor-block:focus-within{border-color:transparent}
.editor-block-tools{position:absolute;left:-62px;top:var(--block-tools-top,7px);display:flex;gap:2px;margin:0;padding:0;border:0;opacity:0;transition:opacity .12s ease;z-index:3}
.editor-block:hover>.editor-block-tools,.editor-block:focus-within>.editor-block-tools{opacity:1}
.editor-block-tools button{display:grid;place-items:center;width:28px;height:30px;min-width:28px;padding:3px;border-color:transparent;background:transparent;color:var(--muted);font:21px/1 Inter,sans-serif}
.editor-block-tools [data-block-handle]{cursor:grab;touch-action:none}
.editor-block-tools [data-block-handle]:active{cursor:grabbing}
.editor-block-tools button:hover,.editor-block-tools button[aria-expanded=true]{background:var(--surface-2);border-color:var(--line);color:var(--text)}
html[data-theme=light] .editor .editor-block-tools button{background:transparent;border-color:transparent;color:var(--muted)}
html[data-theme=light] .editor .editor-block-tools button:hover,html[data-theme=light] .editor .editor-block-tools button[aria-expanded=true]{background:var(--surface-2);border-color:var(--line);color:var(--text)}
.editor-canvas .editor-block :is(p[data-id],h1[data-id],h2[data-id],h3[data-id]){margin:0;min-height:1.5em}
.editor-canvas .editor-block :is(h1[data-id],h2[data-id],h3[data-id]){padding-top:12px}
.editor-canvas .editor-block [contenteditable=true]{cursor:text;border-radius:3px;overflow-wrap:anywhere;outline:none}
.editor-block [data-id]:focus{outline:none}
.editor-canvas .editor-block hr[data-id]{min-height:0;height:0;border:0;border-top:1px solid var(--line);outline:none;margin:12px 0}
.editor-canvas .builder-section{padding:24px;margin:8px 0}
.editor-nested-list{border:0;padding:0;min-width:0}
.editor-nested-list>.editor-block,.editor-canvas .builder-section>.editor-block{margin-left:58px;padding:7px 0}
.editor-canvas .builder-columns{gap:24px}
.editor-list-add{display:flex;align-items:center;flex-wrap:wrap;min-height:56px;padding:4px 0;clear:both;cursor:text}
.editor-list-add .editor-text-append{flex:1 1 180px;min-height:48px;justify-content:flex-start;text-align:left}
.editor-list-add button:focus-visible{outline:2px solid var(--teal-bright);outline-offset:2px}
.editor-list-add button,.editor-empty button{display:flex;align-items:center;gap:8px;min-height:32px;padding:6px 10px;border:0;border-radius:4px;background:transparent;color:var(--muted);font:13px/1.5 Inter,sans-serif;cursor:pointer}
.editor-list-add button:hover,.editor-empty button:hover{background:var(--surface-2);color:var(--text)}
.editor-empty{border:0;text-align:left;padding:20px 0}
.editor-empty p{font-size:13px}
.editor-popover{position:fixed;z-index:45;max-width:calc(100vw - 24px);border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);box-shadow:0 10px 40px #0004;font:13px/1.5 Inter,sans-serif;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.editor-block-menu{width:340px;padding:8px;scroll-padding:70px 8px 8px}
.editor-block-search{position:sticky;top:-8px;display:block;padding:6px 4px 10px;background:var(--surface);z-index:1;color:var(--muted);font:12px/1.5 Inter,sans-serif}
.editor-block-search input{display:block;width:100%;min-height:36px;margin-top:6px;padding:8px 10px;border:1px solid var(--line);border-radius:4px;background:var(--surface-2);color:var(--text);font:13px/1.5 Inter,sans-serif}
.editor-block-choices{display:grid;gap:2px}
.editor-block-choices button{display:flex;align-items:center;gap:12px;width:100%;padding:9px 8px;border:0;border-radius:4px;background:transparent;color:inherit;text-align:left;cursor:pointer}
.editor-block-choices button>svg{flex:none;width:32px;height:32px;padding:4px;border:1px solid var(--line);border-radius:4px}
.editor-block-choices button>span{display:grid;gap:2px;min-width:0}
.editor-block-choices strong{font:500 13px/1.5 Inter,sans-serif}
.editor-block-choices small{color:var(--muted);font:11px/1.5 Inter,sans-serif;overflow-wrap:anywhere}
.editor-block-choices button:hover,.editor-block-choices button:focus-visible,.editor-block-actions button:hover{background:var(--surface-2)}
.editor-block-choices p{padding:12px;color:var(--muted);font-size:13px}
.editor-block-actions{width:240px;padding:6px}
.editor-block-actions button{display:flex;align-items:center;gap:12px;width:100%;padding:9px 10px;border:0;border-radius:4px;background:transparent;color:inherit;text-align:left;font:13px/1.5 Inter,sans-serif;cursor:pointer}
.editor-block-actions button>span{width:20px;text-align:center;font:18px/1 Inter,sans-serif}
.editor-block-actions [data-inline-action=delete]{color:#ed6565}
.editor-selection-toolbar{display:flex;flex-wrap:nowrap;align-items:center;gap:3px;padding:5px;width:max-content;overflow:visible;scrollbar-gutter:auto}
.editor-selection-toolbar button{height:32px;min-width:32px;padding:5px 10px;border:0;border-radius:3px;background:transparent;color:var(--text);font:13px/1.5 Inter,sans-serif;cursor:pointer}
.editor-selection-toolbar button:hover,.editor-selection-toolbar button[aria-pressed=true]{background:color-mix(in srgb,var(--teal) 20%,var(--surface));color:var(--teal-bright)}
.editor-block-options{margin:8px 0;font:12px/1.5 Inter,sans-serif}
.editor-block-options>summary{cursor:pointer;padding:6px 0;color:var(--muted)}
.editor-block-options .block-fields{padding:12px;border-radius:4px;background:var(--surface)}
.editor-image-placeholder{display:grid;place-items:center;min-height:120px;border:1px dashed var(--line);border-radius:4px;padding:20px;color:var(--muted);font:13px/1.6 Inter,sans-serif}
.is-block-dragging,.is-block-dragging *{cursor:grabbing!important;user-select:none!important}
.editor-block.is-drag-source{opacity:.35}
.editor-block[data-drop-side]::before{content:"";position:absolute;left:0;right:0;height:3px;border-radius:3px;background:var(--teal-bright);pointer-events:none;z-index:4}
.editor-block[data-drop-side=before]::before{top:-3px}.editor-block[data-drop-side=after]::before{bottom:-3px}
.editor-list-add.is-drop-list{background:color-mix(in srgb,var(--teal) 15%,var(--surface));outline:2px solid var(--teal-bright);border-radius:4px}
@media(hover:none){.editor-block-tools{opacity:1}}
.editor-canvas.is-image-drop-target{outline:2px dashed var(--teal-bright);outline-offset:8px;background:color-mix(in srgb,var(--teal) 7%,var(--surface))}
@media(max-width:900px){.editor-main{padding:32px 24px 80px 72px}.editor-toolbar{position:sticky}}
@media(max-width:600px){
  .editor-main{padding:26px 16px 64px 64px}.editor-block-tools{left:-52px;gap:0}
  .editor-block-tools button{width:25px;min-width:25px}.toolbar-identity h1{max-width:55vw}
  .editor-nested-list>.editor-block,.editor-canvas .builder-section>.editor-block{margin-left:40px}
  .editor-nested-list>.editor-block>.editor-block-tools,.editor-canvas .builder-section>.editor-block>.editor-block-tools{left:-46px}
  .editor-canvas .builder-section{padding:16px}.editor-selection-toolbar{gap:0}
  .editor-canvas-intro h2{font-size:20px}.editor-primary-actions button{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.editor-block-tools{transition:none}}
@media(max-width:700px){
  .toolbar-titlebar{padding:12px 16px}.toolbar-identity{flex-basis:100%}.toolbar-identity h1{max-width:64vw}
  .editor-primary-actions{width:100%;justify-content:flex-start}.toolbar-titlebar [data-autosave-state]{flex-basis:100%;max-width:none}
  .editor-primary-actions .small-button{min-width:0;flex:1;white-space:normal;font-size:13px}
  .toolbar-ribbon{padding:8px 12px;gap:4px}.editor-toolbar .toolbar-guide-button{margin-left:0}
  .toolbar-icon-button>span{font-size:12px}.toolbar-separator{display:none}.editor-page-options{padding-inline:16px}
  .history-panel{padding:20px}.version-card{grid-template-columns:36px minmax(0,1fr);gap:12px;padding:14px}
  .version-number{width:36px;height:36px}.version-restore{grid-column:2;justify-self:start}.history-header h2{font-size:26px}
}
