:root{color:#182026;background:#f4f6f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}.appShell{min-height:100vh;padding:24px}.topBar{justify-content:space-between;align-items:baseline;gap:16px;max-width:1280px;margin:0 auto 18px;display:flex}.topBar h1{margin:0;font-size:24px}.topBar p{color:#5d6b78;margin:0}.historyControls{background:#fff;border:1px solid #d9e0e7;border-radius:8px;grid-template-columns:minmax(160px,1fr) auto auto auto auto minmax(0,auto);align-items:center;gap:8px;max-width:1280px;margin:0 auto 18px;padding:10px 12px;display:grid}.historyControls input[type=range]{min-width:0}.historyControls button{color:#23313d;cursor:pointer;background:#fff;border:1px solid #cbd5df;border-radius:6px;min-height:32px;padding:0 10px}.historyControls button:hover{background:#eef3f7}.historyCount,.historyStatus{color:#657380;white-space:nowrap;font-size:13px}.historyImportInput{display:none}.keystrokeLog{color:#2d3b47;max-width:1280px;margin:-8px auto 18px;font-size:12px}.keystrokeLog summary{cursor:pointer;background:#fff;border:1px solid #cbd5df;border-radius:6px;align-items:center;min-height:28px;padding:0 10px;display:inline-flex}.keystrokeLog ol{background:#fff;border:1px solid #d9e0e7;border-radius:8px;max-height:220px;margin:8px 0 0;padding:8px 12px 8px 34px;overflow:auto}.keystrokeLog li{grid-template-columns:52px 72px minmax(0,1fr) 56px;gap:8px;padding:2px 0;display:grid}.keystrokeLog p{color:#657380;margin:8px 0 0}.editorGrid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;max-width:1280px;margin:0 auto;display:grid}.editorPanel{background:#fff;border:1px solid #d9e0e7;border-radius:8px;min-width:0;overflow:hidden;box-shadow:0 10px 28px #202d3914}.editorPanel.offline{border-color:#d39846}.editorHeader{background:#fbfcfd;border-bottom:1px solid #e6ebf0;justify-content:space-between;align-items:center;padding:14px 16px;display:flex}.editorHeader h2{margin:0 0 2px;font-size:16px}.editorHeader span{color:#657380;font-size:13px}.switch{color:#33414d;align-items:center;gap:8px;font-size:14px;display:inline-flex}.toolbar{border-bottom:1px solid #e6ebf0;gap:6px;padding:8px 12px;display:flex}.toolbar button,.dragHandle{color:#23313d;cursor:pointer;background:#fff;border:1px solid #cbd5df;border-radius:6px;place-items:center;min-width:32px;height:32px;display:inline-grid}.toolbar button:hover,.dragHandle:hover{background:#eef3f7}.blockList{min-height:420px;padding:14px 12px 18px}.blockRow{margin-left:calc(var(--block-depth,0) * 24px);grid-template-columns:34px minmax(0,1fr);align-items:start;gap:8px;padding:3px 0;display:grid;position:relative}.blockRow.dropBefore:before,.blockRow.dropAfter:after{content:"";left:calc(42px + var(--drop-offset,0px));background:#1b75bb;border-radius:999px;height:2px;position:absolute;right:0}.blockRow.dropBefore:before{top:0}.blockRow.dropAfter:after{bottom:0}.blockRow.dragging{opacity:.58}.blockRow.draggingRoot{opacity:.46}.dragHandle{color:#7a8793;cursor:grab;-webkit-user-select:none;user-select:none;margin-top:1px}.dragHandle:active{cursor:grabbing}.editableBlock{white-space:pre-wrap;overflow-wrap:anywhere;border-radius:6px;outline:none;min-height:34px;padding:5px 6px;line-height:1.55}.editableBlock:focus{background:#f7fafc;box-shadow:inset 0 0 0 1px #a8c8e8}.editableBlock[data-empty=true]:before{content:"";width:1px;display:inline-block}.markBold{font-weight:700}.markItalic{font-style:italic}.retainedSelectionHighlight{background:#d8ead7;box-shadow:0 0 0 1px #4c814e1f}.retainedSelectionCaret{pointer-events:none;font-size:0;line-height:0;display:inline;position:relative}.retainedSelectionCaret:after{content:"";pointer-events:none;background:#4c814e;border-radius:999px;width:2px;height:1.25rem;position:absolute;bottom:-.2rem;left:-1px}@media (width<=860px){.appShell{padding:14px}.topBar{display:block}.topBar p{margin-top:6px}.historyControls{grid-template-columns:1fr auto}.historyControls button,.historyStatus{grid-column:span 1}.editorGrid{grid-template-columns:1fr}}
