body{background:var(--paper);--editor-header-height:70px}button,input,textarea,select{font:inherit}[hidden]{display:none!important}.editor-header{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:18px;padding:14px 24px;background:var(--surface);border-bottom:1px solid var(--line)}.editor-back,.editor-header-actions,.secondary-button,.cover-actions{display:flex;align-items:center;gap:8px}.editor-back{font-size:13px}.editor-header strong{font-size:15px}.editor-header-actions{margin-left:auto}#save-state{font-size:11px;color:var(--muted)}.tool-button{display:inline-grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:9px;padding:8px}.tool-button svg,.secondary-button svg,.primary svg{width:18px;height:18px;flex:0 0 18px}.secondary-button{justify-content:center;min-height:38px;padding:8px 12px;border-radius:10px;font-size:12px;background:var(--paper);color:var(--ink)}.editor-header .primary{font-size:12px;min-height:38px;padding:8px 12px}.tool-button:hover,.secondary-button:hover{background:var(--tint)}button:disabled{opacity:.45;cursor:default}.editor-layout{display:grid;grid-template-columns:210px minmax(0,1fr) 260px;gap:28px;max-width:1580px;margin:auto;padding:20px 24px 60px}.editor-layout>*{min-width:0}.editor-library{position:sticky;top:calc(var(--editor-header-height) + 16px);align-self:start;max-height:calc(100dvh - var(--editor-header-height) - 40px);overflow:auto}.editor-layout summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px;font-size:14px;font-weight:600}.editor-layout summary::-webkit-details-marker{display:none}.editor-layout summary::after{content:'+';font-family:Onest;font-weight:400;color:var(--muted)}.editor-layout details[open]>summary::after{content:'−'}.editor-layout label{display:block;font-size:12px;margin:14px 0}.editor-layout input:not([type=checkbox]),.editor-layout textarea,#asset-dialog input{display:block;width:100%;margin-top:7px;border:0;background:var(--surface);border-radius:10px;padding:12px;box-sizing:border-box;outline-color:var(--lime)}.editor-layout textarea{resize:vertical}.editor-main #title{font-family:Igra,Onest,sans-serif;font-size:28px;line-height:1.3;font-variant-ligatures:none;letter-spacing:0;margin:0;background:transparent;padding:10px 0}.editor-title-label{color:var(--muted);font-size:11px!important;margin:0!important}.editor-main #excerpt{background:transparent;border-radius:0;padding:10px 0;margin:0 0 18px;min-height:72px;line-height:1.6;font-size:14px}.editor-options>details,.cover-settings{border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:14px}.editor-options h2{font-size:16px;margin:8px 0 16px}.editor-options details details{margin-top:14px}.editor-options .check{display:flex;align-items:center;gap:8px}.cover-actions{margin-bottom:14px}#cover-preview{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:12px;margin-bottom:12px}.format-toolbar{position:sticky;top:var(--editor-header-height);z-index:5;display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding:8px;background:var(--surface);border:0;border-bottom:1px solid var(--line);border-radius:16px 16px 0 0}.format-toolbar .tool-group{display:flex;gap:2px;align-items:center}.format-toolbar .tool-group+.tool-group{border-left:1px solid var(--line);padding-left:5px}.format-toolbar .tool-button{width:34px;height:34px;flex-basis:34px;padding:7px}.format-toolbar button[aria-pressed=true]{background:var(--tint);color:var(--ink)}.format-toolbar select{max-width:132px;width:132px;height:34px;border:0;border-radius:7px;background:var(--paper);padding:0 8px;font-size:12px;color:var(--ink);outline-color:var(--lime)}.editor-body{min-height:520px;background:var(--surface);padding:28px;border-radius:0 0 16px 16px;outline-color:var(--lime);overflow-wrap:anywhere;line-height:1.8;font-size:16px}.editor-body:focus{outline:2px solid var(--lime);outline-offset:-2px}.editor-body p{margin:0 0 16px}.editor-body h2{font-size:25px;margin:26px 0 14px}.editor-body h3{font-size:20px;margin:22px 0 12px}.editor-body h2,.editor-body h3{font-variant-ligatures:none}.editor-body blockquote{margin:20px 0;border-left:3px solid var(--lime);padding-left:18px}.editor-body pre{white-space:pre-wrap;background:var(--paper);padding:16px;border-radius:8px;font-size:13px}.editor-body table{table-layout:fixed;width:100%;border-collapse:collapse}.editor-body td,.editor-body th{padding:8px;border:1px solid var(--line);overflow-wrap:anywhere}.editor-body figure{margin:24px 0;position:relative}.editor-body img{display:block;max-width:100%;height:auto;border-radius:10px;cursor:pointer}.editor-body figure:focus-within,.editor-body img:focus{outline:2px solid var(--lime)}.editor-body figcaption{font-size:12px;color:var(--muted);text-align:center;line-height:1.6;margin-top:8px}.editor-body.drag-over{outline:2px dashed var(--lime);outline-offset:-6px}.editor-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);padding:12px 2px}#articles{display:flex;flex-direction:column;gap:5px;margin-top:12px}#articles button{text-align:left;padding:11px 12px;background:transparent;border-radius:10px;font-size:12px;line-height:1.5;border:1px solid transparent}#articles button:hover{background:var(--surface)}#articles button.active{background:var(--surface);border-color:var(--line)}#articles small{display:block;color:var(--muted);margin-top:5px}#draft-count{font-weight:400;color:var(--muted);font-size:12px}#status{margin:0;padding:8px 24px;min-height:32px;font-size:12px;color:var(--muted)}#status.error{color:#c43148}#status:empty{padding:0;min-height:8px}#preview-dialog{width:1100px;max-width:calc(100vw - 24px);height:90dvh;padding:12px;border:0;border-radius:20px}#preview-dialog>form{display:flex;justify-content:flex-end;margin-bottom:8px}#preview-dialog iframe{width:100%;height:calc(100% - 48px);border:0;border-radius:10px}#asset-dialog{width:420px;max-width:calc(100vw - 24px);padding:22px;border:0;border-radius:20px;color:var(--ink);background:var(--surface)}#asset-dialog label{display:block;font-size:12px;margin-top:18px}#asset-dialog input{background:var(--paper)}#asset-dialog .dialog-heading{display:flex;align-items:center;justify-content:space-between;margin:0}#asset-dialog h2{font-size:21px}.asset-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:22px}#asset-remove{margin-right:auto}.editor-header button:focus-visible,.format-toolbar button:focus-visible{outline:2px solid var(--lime);outline-offset:2px}
@media(max-width:1150px){.editor-layout{grid-template-columns:170px minmax(0,1fr);gap:22px}.editor-options{grid-column:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.editor-options>details:last-child{grid-column:1/-1}.editor-header{gap:12px}#save-state{display:none}}
@media(max-width:760px){.editor-header{padding:10px 14px;gap:10px;flex-wrap:wrap}.editor-header strong{margin-right:auto}.editor-header-actions{width:100%;margin:0;justify-content:space-between;gap:6px}.editor-header .secondary-button,.editor-header .primary{font-size:11px;padding:8px 9px}.editor-header .secondary-button svg,.editor-header .primary svg{width:16px;height:16px;flex-basis:16px}.editor-layout{display:flex;flex-direction:column;gap:18px;padding:12px 14px 40px}.editor-library{position:static;max-height:250px;overflow:auto}.editor-library summary{min-height:34px}.editor-main #title{font-size:25px}.editor-options{display:block}.editor-body{padding:20px 16px;font-size:15px;min-height:400px}.format-toolbar{gap:4px;padding:6px}.format-toolbar .tool-group+.tool-group{padding-left:4px}.format-toolbar .tool-button{width:32px;height:34px;flex-basis:32px}.format-toolbar select{width:119px;max-width:119px}.editor-footer{flex-wrap:wrap}#status{padding-inline:14px}}
@media(max-width:760px){.editor-header-actions #publish{width:34px;min-width:34px;padding:8px;justify-content:center}.editor-header-actions #publish span{display:none}.editor-options{width:100%}.editor-header-actions{min-width:0}.editor-header-actions #new{flex:0 0 32px;width:32px}}
.format-toolbar{margin-bottom:0}.editor-main{width:100%}
#button-dialog{width:420px;max-width:calc(100vw - 24px);padding:22px;border:0;border-radius:20px;color:var(--ink);background:var(--surface)}#button-dialog .dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}#button-dialog h2{font-size:21px}#button-dialog label{display:block;font-size:12px;margin-top:18px}#button-dialog input,#button-dialog select{width:100%;display:block;margin-top:7px;border:0;background:var(--paper);border-radius:10px;padding:12px;color:var(--ink);outline-color:var(--lime)}#button-error{margin-top:12px;color:#c43148;font-size:12px}#button-remove{margin-right:auto}.editor-body a[data-button]{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:12px 20px;border-radius:8px;font:600 14px/1.5 Onest,sans-serif;letter-spacing:0;text-align:center;text-decoration:none;white-space:normal;overflow-wrap:anywhere;cursor:pointer}.editor-body a[data-button=primary]{background:var(--lime);color:#202224}.editor-body a[data-button=secondary]{background:var(--tint);color:var(--ink)}.editor-body a[data-button]:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
