dialog.example-editor-dialog{width:min(780px,calc(100vw - 32px));max-width:780px;padding:0;max-height:94dvh;overflow:auto}
.example-editor-dialog>.modal-head{position:sticky;top:0;z-index:4;background:#151515;padding:20px 24px;border-bottom:1px solid var(--line)}
.example-editor-dialog>.modal-content{padding:0}
.example-editor{padding:0 24px 0;display:flex;flex-direction:column;min-height:480px}
.editor-topline{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 0;color:var(--muted);font-size:12px}
.editor-topline .text-button{min-height:36px}
.editor-surface{border:1px solid var(--line);border-radius:12px;padding:16px;background:#101010}
.editor-text-label{display:block;font-size:12px;color:var(--muted);margin-bottom:10px}
.post-emoji-tools{border-top:1px solid var(--line);margin-top:8px;padding-top:8px}
.post-emoji-tools summary{width:fit-content;cursor:pointer;color:var(--accent);font-size:13px;padding:5px 0}
.post-emoji-row{display:flex;gap:8px;align-items:end;padding:8px 0 3px}
.post-emoji-row label{display:grid;gap:5px;min-width:0;flex:1;color:var(--muted);font-size:12px}
.post-emoji-row input{width:100%;min-width:0}
.post-emoji-tools .form-error:empty{display:none}
.example-editor textarea{width:100%;min-height:190px;resize:vertical;background:transparent;border:0;color:var(--text,#eee);font:inherit;line-height:1.65;padding:0;outline:none;box-sizing:border-box}
.editor-text-meta{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted);border-top:1px solid var(--line);padding-top:10px}
.editor-text-meta .over{color:#ffad91}
.editor-tools{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}
.editor-options{border-top:1px solid var(--line);padding:14px 0;margin-top:8px}
.editor-options>summary{cursor:pointer;font-size:13px;min-height:30px}
.editor-options .field{max-width:340px;margin-top:12px}
.editor-final{display:flex;gap:10px;align-items:center;font-size:13px;padding-bottom:8px}
.editor-final input{width:18px;height:18px}
.editor-footer{position:sticky;bottom:0;z-index:3;background:#151515;border-top:1px solid var(--line);padding:13px 0 18px;margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.editor-footer p{font-size:11px;line-height:1.4;color:var(--muted);max-width:240px;margin:0}
.editor-footer>div{display:flex;gap:9px;flex-shrink:0}
.editor-footer .btn{min-height:44px}
.editor-media{display:none}
.editor-media.has-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:15px}
.editor-file{border:1px solid var(--line);border-radius:8px;overflow:hidden;min-width:0;background:#191919}
.editor-file.has-error{border-color:#9c5b43}
.editor-file-preview{height:115px;display:grid;place-items:center;background:#242424;overflow:hidden;font-size:12px;color:var(--muted)}
.editor-file-preview img{width:100%;height:100%;object-fit:cover}
.editor-file-preview>span{padding:12px;overflow-wrap:anywhere}
.editor-file-info{padding:8px;display:flex;flex-direction:column;gap:6px}
.editor-file-info>span{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.editor-file-info small{display:block;font-size:10px;margin-top:4px;color:var(--muted)}
.editor-file-actions{display:flex;gap:4px;align-items:center;justify-content:flex-end}
.editor-file-actions .iconbtn{min-width:32px;min-height:32px}
.editor-file .form-error{padding:0 8px 8px;margin:0;font-size:11px}
.editor-preview{padding:16px;border:1px solid var(--line);border-radius:12px;margin-bottom:12px;background:#202020}
.editor-preview h3{font-size:12px;color:var(--muted);margin:0 0 10px}
#editor-preview-media{display:flex;gap:5px;flex-wrap:wrap}
#editor-preview-media img,#editor-preview-media video{width:calc(50% - 3px);max-height:220px;object-fit:contain;border-radius:5px;background:#171717}
#editor-preview-media :only-child:is(img,video){width:100%;max-height:360px}
#editor-preview-media>span{border:1px solid var(--line);padding:9px;font-size:12px;border-radius:4px}
#editor-preview-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;margin:12px 0 0}
.editor-notice,.editor-conflict{padding:12px 14px;background:#252318;border:1px solid #625831;border-radius:8px;margin:0 0 13px;font-size:12px;line-height:1.6}
.editor-notice{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.editor-notice span{flex:1}
.editor-conflict p{margin:0 0 10px}
.example-editor-dialog .form-error{margin:0 24px 15px;overflow-wrap:anywhere}
.example-editor-dialog [hidden]{display:none!important}
@media(max-width:600px){
 dialog.example-editor-dialog{width:100vw;height:100dvh;max-height:100dvh;max-width:100vw;margin:0;border-radius:0;border:0}
 .example-editor-dialog>.modal-head{padding:16px}
 .example-editor-dialog>.modal-head h2{font-size:20px}
 .example-editor{padding:0 16px;min-height:calc(100dvh - 90px)}
 .editor-topline{font-size:11px}
 .editor-surface{padding:13px}
 .example-editor textarea{font-size:16px;min-height:230px}
 .editor-text-meta>span:last-child{display:none}
 .editor-footer{margin-top:auto;position:sticky;display:block;padding:9px 0 calc(10px + env(safe-area-inset-bottom))}
 .editor-footer p{max-width:none;margin-bottom:8px;font-size:10px}
 .editor-footer>div{display:grid;grid-template-columns:1.2fr 1fr;gap:8px}
 .editor-footer .btn{justify-content:center;padding:12px 8px;font-size:12px;min-height:46px}
 .editor-file-preview{height:95px}
 .editor-file-actions .iconbtn{min-width:34px;min-height:36px}
 .editor-tools .btn{font-size:12px;min-height:42px}
 .example-editor-dialog .form-error{margin:0 16px 14px}
}
