/* Comments and inline replies share a visual editor with a compact bottom toolbar. */
body.content-v6 :is(#discussion,#experience-comments,#post-replies) [data-comment-composer]{position:relative;padding:0 0 0 48px;margin:24px 0 28px;min-width:0;border:0;background:transparent;scroll-margin-top:var(--reading-offset,88px)}
body.content-v6 [data-comment-composer] .comment-composer-avatar{display:grid;top:6px;width:36px;height:36px;font-size:14px}
body.content-v6 [data-comment-composer] .content-editor{border:1px solid #d7e1f2;border-radius:13px;box-shadow:none;background:#fff;margin:0;min-width:0}
body.content-v6 [data-comment-composer] .content-editor:focus-within{border-color:#97b5fb;box-shadow:0 0 0 3px #f0f4fe}
body.content-v6 [data-comment-composer] .content-editor [hidden]{display:none!important}
body.content-v6 [data-comment-composer] .comment-rich-editor .tiptap{outline:none;padding:12px 16px 4px;min-height:44px;max-height:280px;overflow-y:auto;overscroll-behavior:contain;color:#405778;font-size:15px;line-height:1.8;overflow-wrap:anywhere;caret-color:#245adf}
body.content-v6 [data-comment-composer].is-expanded .comment-rich-editor .tiptap{min-height:108px;padding-top:16px}
body.content-v6 [data-comment-composer] .comment-rich-editor .tiptap p{margin:0 0 8px}
body.content-v6 [data-comment-composer] .comment-rich-editor .tiptap p:last-child{margin-bottom:0}
body.content-v6 [data-comment-composer] .comment-rich-editor .tiptap p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;height:0;color:#93a3bd;pointer-events:none}
body.content-v6 [data-comment-composer] .comment-rich-editor .tiptap :is(ul,ol){padding-left:24px;margin:8px 0}
body.content-v6 [data-comment-composer] .comment-rich-editor .tiptap blockquote{margin:10px 0;border-left:3px solid #d7e3f7;padding-left:14px;color:#788da9}
body.content-v6 [data-comment-composer] .comment-rich-editor .tiptap strong{font-weight:700;color:#203e6b}
body.content-v6 [data-comment-composer] .comment-rich-editor .tiptap code{font-family:SFMono-Regular,Consolas,monospace;font-size:.85em;padding:2px 5px;border-radius:4px;color:#3862a3;background:#edf3fe}
body.content-v6 [data-comment-composer] .comment-rich-editor .tiptap pre{border:1px solid #e5ebf4;white-space:pre-wrap;background:#f5f7fb;border-radius:7px;padding:10px 13px;line-height:1.65;margin:10px 0;font-size:12px;color:#4f6688}
body.content-v6 [data-comment-composer] .comment-rich-editor .tiptap pre code{padding:0;font-size:inherit;color:inherit;background:none}
body.content-v6 [data-comment-composer] .comment-rich-editor .tiptap a{color:#2b67eb;text-decoration:underline;text-underline-offset:3px}
body.content-v6 [data-comment-composer] .comment-rich-editor .tiptap table{border-collapse:collapse;max-width:100%;font-size:12px}
body.content-v6 [data-comment-composer] .comment-rich-editor .tiptap :is(td,th){border:1px solid #e5ebf4;padding:6px}
body.content-v6 [data-comment-composer]:not(.is-expanded) :is(.comment-rich-actions,.comment-rich-count,.comment-attachments,.comment-compose-footer){display:none}
body.content-v6 [data-comment-composer] .comment-rich-count{display:flex;justify-content:flex-end;padding:4px 16px 8px;min-height:26px;color:#8e9eb8;font-size:11px;font-variant-numeric:tabular-nums}
body.content-v6 [data-comment-composer] .comment-rich-count.is-over-limit{color:#c34e4e}
body.content-v6 [data-comment-composer] .comment-rich-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border-top:1px solid #eff2f8;background:#fcfdff;border-radius:0 0 12px 12px}
body.content-v6 [data-comment-composer] .comment-rich-tools{display:flex;align-items:center;gap:3px;min-width:0}
body.content-v6 [data-comment-composer] .comment-rich-tools button{display:flex;align-items:center;justify-content:center;gap:7px;padding:7px 9px;min-height:36px;border-radius:7px;color:#7083a0;font-size:12px;white-space:nowrap}
body.content-v6 [data-comment-composer] .comment-rich-tools button svg{width:18px;height:18px;flex:none}
body.content-v6 [data-comment-composer] .comment-rich-tools button:hover{background:#f0f4fc;color:#2c67eb}
body.content-v6 [data-comment-composer] .comment-rich-tools button:is([aria-pressed=true],[aria-expanded=true]){background:#edf3ff;color:#2964e5}
body.content-v6 [data-comment-composer] .comment-tool-divider{height:17px;width:1px;background:#e2e8f3;margin:0 6px;flex:none}
body.content-v6 [data-comment-composer] .comment-rich-actions .button{min-height:36px;padding:9px 17px;background:#2862ee;color:#fff;font-size:12px;border-radius:8px;line-height:1.5;white-space:nowrap;margin:0;flex:none}
body.content-v6 [data-comment-composer] .comment-rich-actions .button:hover:not(:disabled){background:#1754df}
body.content-v6 [data-comment-composer] .comment-rich-editor button:disabled{opacity:.45;cursor:default}
body.content-v6 [data-comment-composer] .comment-attachments{display:flex;align-items:center;gap:8px;padding:8px 16px 4px;flex-wrap:wrap}
body.content-v6 [data-comment-composer] .comment-attachment{position:relative;width:68px;height:68px;flex:none;border-radius:8px;border:1px solid #e3eaf7;background:#f4f7fc}
body.content-v6 [data-comment-composer] .comment-attachment-view{width:100%;height:100%;border:0;padding:0;border-radius:7px;background:none;overflow:hidden;display:block}
body.content-v6 [data-comment-composer] .comment-attachment img{width:100%;height:100%;object-fit:cover;display:block}
body.content-v6 [data-comment-composer] .comment-attachment-remove{position:absolute;top:-2px;right:-2px;width:32px;height:32px;isolation:isolate;display:grid;place-items:center;padding:0;background:transparent;color:#fff;font-size:18px;line-height:1}
body.content-v6 [data-comment-composer] .comment-attachment-remove:before{content:'';position:absolute;inset:5px;border-radius:50%;background:#223653bb;border:1px solid #ffffff80;z-index:-1}
body.content-v6 [data-comment-composer] .comment-attachment-remove:hover:before{background:#1a3156}
body.content-v6 [data-comment-composer] .comment-add-image{width:68px;height:68px;border:1px dashed #cad8ee;border-radius:8px;background:#fafcff;color:#8a9ebb;display:grid;place-items:center;padding:0;font-size:30px;font-weight:300;flex:none}
body.content-v6 [data-comment-composer] .comment-add-image:hover{border-color:#80a6f5;color:#2b66e8;background:#f3f7ff}
body.content-v6 [data-comment-composer] .comment-attachment-count{color:#9aa8bd;font-size:11px;margin-left:4px;white-space:nowrap}
body.content-v6 [data-comment-composer] .comment-attachment.is-pending{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;padding:18px 4px 4px}
body.content-v6 [data-comment-composer] .comment-attachment-status{font-size:10px;color:#8a9ebb}
body.content-v6 [data-comment-composer] .comment-attachment-retry{padding:0 4px;font-size:11px;color:#2862ee}
body.content-v6 [data-comment-composer] .comment-compose-footer{display:flex;align-items:center;gap:12px;margin:12px 0 0;flex-wrap:wrap}
body.content-v6 [data-comment-composer] .comment-compose-footer .identity-control{display:flex;flex:1;min-width:0;gap:8px 10px;flex-wrap:wrap}
body.content-v6 [data-comment-composer] .comment-compose-footer .identity-control label{font-size:12px;white-space:nowrap}
body.content-v6 [data-comment-composer] .comment-compose-footer .identity-control input{width:16px;height:16px}
body.content-v6 [data-comment-composer] .comment-compose-footer .identity-hint{display:block;font-size:11px;border-left:1px solid #dfe7f1;padding-left:10px;overflow-wrap:anywhere;min-width:0;color:#8b9bb4}
body.content-v6 [data-comment-composer] .comment-image-hint{margin-left:auto;color:#99a7bd;font-size:10px;white-space:nowrap}
body.content-v6 [data-comment-composer] .form-error:empty{display:none}
body.content-v6 [data-comment-composer] .reply-context{padding:8px 12px;margin:0;border:0;border-bottom:1px solid #ecf0f7;background:#f6f8fc;border-radius:12px 12px 0 0}
body.content-v6 .comment-inline-compose{margin:4px 0 14px 42px;padding-left:0;max-width:720px}
body.content-v6 :is(#discussion,#experience-comments,#post-replies) [data-comment-composer].comment-inline-compose{margin:10px 0 16px 48px;padding-left:0}
body.content-v6 .comment-inline-compose>.comment-composer-avatar{display:none}
body.content-v6 .comment-replies{margin-top:0;margin-bottom:12px}
body.content-v6 .comment-thread{padding-bottom:8px}
body.content-v6 .comment-replies .thread-content .comment{padding-top:10px;padding-bottom:8px}
body.content-v6 .comment-replies .comment-inline-compose{margin-left:36px}
.rich-content ul:has(>.content-task),.md-preview ul:has(>.content-task){list-style:none;padding-left:0}
.content-task{list-style:none;display:flex;align-items:flex-start;gap:10px}
.content-task input{width:15px;height:15px;margin:calc((1.85em - 15px)/2) 0 0;padding:0;flex:none;accent-color:#2563eb}
.content-task-body{flex:1;min-width:0;overflow-wrap:anywhere}
.content-task-body>p{margin:0}.content-task-body>ul,.content-task-body>ol{margin-top:6px;margin-bottom:0}
body.content-v6 [data-comment-composer] .reply-context-content{flex:1;width:100%;min-width:0}
body.content-v6 .comment-editor-popover{position:fixed;inset:auto;margin:0;border:1px solid #e1e8f5;background:#fff;color:#536a8c;border-radius:10px;padding:6px;box-shadow:0 12px 30px #20345425;overflow:auto;font-size:12px}
body.content-v6 .comment-code-menu{width:175px}
body.content-v6 .comment-code-menu>button{display:block;width:100%;text-align:left;padding:10px;border-radius:6px}
body.content-v6 .comment-code-menu>button small{display:block;margin-top:3px;color:#9aa8be;font-size:10px}
body.content-v6 .comment-code-menu>button:is(:hover,[aria-pressed=true]){color:#2863e4;background:#f0f5ff}
body.content-v6 .comment-link-panel{width:300px;padding:16px}
body.content-v6 .comment-link-heading{display:flex;align-items:center;justify-content:space-between;font-size:14px;margin-bottom:12px}
body.content-v6 .comment-link-heading button{width:32px;height:32px;font-size:22px;color:#8796af}
body.content-v6 .comment-link-panel label{display:block;font-size:12px;margin:10px 0 6px}
body.content-v6 .comment-link-panel input{width:100%;border:1px solid #d7e2f2;border-radius:7px;padding:9px;color:#4b6486;font-size:14px}
body.content-v6 .comment-link-error{font-size:11px;color:#b85050;margin:8px 0;min-height:16px}
body.content-v6 .comment-link-actions{display:flex;justify-content:flex-end;align-items:center;gap:16px}
body.content-v6 .comment-link-actions button{padding:8px 12px;font-size:12px;color:#4274d7}
body.content-v6 .comment-link-actions button:last-child{background:#2862ee;color:#fff;border-radius:7px}
body.content-v6 .comment-main .comment-media{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px}
body.content-v6 .comment-main .comment-media button{width:96px;height:96px;border:1px solid #e1e8f4;border-radius:8px;padding:0;background:#f6f9fd;overflow:hidden}
body.content-v6 .comment-main .comment-media img{width:100%;height:100%;object-fit:cover;display:block;margin:0;border-radius:0}
body.content-v6 .comment-image-viewer{width:auto;min-width:0;max-width:min(920px,calc(100vw - 32px));max-height:calc(100dvh - 48px);border:0;border-radius:12px;padding:10px;background:#fff;overflow:auto;box-shadow:0 18px 80px #1f365940}
body.content-v6 .comment-image-viewer::backdrop{background:#23375877;backdrop-filter:blur(3px)}
body.content-v6 .comment-image-viewer>img{display:block;max-width:100%;max-height:calc(100dvh - 72px);object-fit:contain;border-radius:8px}
body.content-v6 .comment-image-viewer>button{position:absolute;right:15px;top:15px;display:grid;place-items:center;z-index:2;background:#203858aa;color:#fff;border:1px solid #ffffff80;border-radius:50%;width:36px;height:36px;font-size:26px}
.block-editor [hidden],.write-menu [hidden]{display:none!important}
@media(max-width:700px){
 body.content-v6 :is(#post-editor,#experience-editor,#share-dialog){--dialog-width:calc(100vw - 16px);width:var(--dialog-width);max-width:var(--dialog-width);max-height:calc(100dvh - 16px);border-radius:12px}
 body.content-v6 :is(#post-editor .post-editor-content,#share-dialog .question-editor-content){padding:20px 16px}
 body.content-v6 #experience-editor .editor-section{padding-left:16px;padding-right:16px}
 body.content-v6 #experience-editor .editor-review{margin-left:16px;margin-right:16px}
 body.content-v6 :is(#discussion,#experience-comments,#post-replies) [data-comment-composer]{padding-left:0;margin:20px 0 24px}
 body.content-v6 [data-comment-composer] .comment-composer-avatar{display:none}
 body.content-v6 [data-comment-composer] .comment-rich-editor .tiptap{font-size:16px;min-height:48px;max-height:230px;padding:11px 13px 4px}
 body.content-v6 [data-comment-composer].is-expanded .comment-rich-editor .tiptap{min-height:118px;padding-top:13px}
 body.content-v6.mobile-comment-keyboard [data-comment-composer].is-expanded .comment-rich-editor .tiptap{min-height:64px;max-height:120px}
 body.content-v6 [data-comment-composer] .comment-rich-actions{padding:7px 8px;gap:4px;flex-wrap:wrap}
 body.content-v6 [data-comment-composer] .comment-rich-tools{gap:2px;flex-shrink:0}
 body.content-v6 [data-comment-composer] .comment-rich-tools button{min-width:44px;min-height:44px;padding:10px;gap:0}
 body.content-v6 [data-comment-composer] .comment-rich-tools button>span{display:none}
 body.content-v6 [data-comment-composer] .comment-tool-divider{display:none}
 body.content-v6 [data-comment-composer] .comment-rich-actions .button{min-height:44px;padding:9px 10px;font-size:11px;border-radius:7px;margin-left:auto}
 body.content-v6 [data-comment-composer] .comment-rich-count{padding:4px 13px 8px;font-size:10px}
 body.content-v6 [data-comment-composer] .comment-attachments{padding:8px 13px 4px;gap:7px}
 body.content-v6 [data-comment-composer] :is(.comment-attachment,.comment-add-image){width:60px;height:60px}
 body.content-v6 [data-comment-composer] .comment-attachment-count{margin-left:0;font-size:9px}
 body.content-v6 [data-comment-composer] .comment-compose-footer{gap:9px;margin-top:12px}
 body.content-v6 [data-comment-composer] .comment-compose-footer .identity-control{flex:1 1 100%;min-width:0}
 body.content-v6 [data-comment-composer] .comment-compose-footer .identity-control label{font-size:11px}
 body.content-v6 [data-comment-composer] .comment-compose-footer .identity-hint{font-size:10px}
 body.content-v6 .comment-link-panel input{font-size:16px}
 body.content-v6 .comment-main .comment-media button{width:72px;height:72px}
 body.content-v6 .composer-taxonomy>label{flex:1;min-width:0}
 body.content-v6 .composer-taxonomy .ui-select{width:100%;min-width:0}
 body.content-v6 .comment-inline-compose{margin-left:12px;padding-left:0}
 body.content-v6 .comment-replies .comment-inline-compose{margin-left:0}
 body.content-v6 :is(#discussion,#experience-comments,#post-replies) [data-comment-composer].comment-inline-compose{margin-left:12px}
 body.content-v6 :is(#discussion,#experience-comments,#post-replies) .comment-replies [data-comment-composer].comment-inline-compose{margin-left:0}
 body.content-v6 .block-editor .write-canvas{padding-left:28px;min-height:180px}
 body.content-v6 .block-editor .write-text{font-size:16px}
 body.content-v6 .block-editor--compact .write-canvas{min-height:40px}
 body.content-v6 .block-editor .write-plus{width:26px;height:36px;left:-3px}
 body.content-v6 .block-editor .write-bar{gap:1px;flex-wrap:wrap}
 body.content-v6 .block-editor .write-bar button{height:40px;width:32px}
 body.content-v6 .block-editor .write-hint{flex:1;font-size:10px}
 body.content-v6 .block-editor .content-counter{margin-left:4px;font-size:10px}
 .write-menu-basic button{min-height:44px}.write-menu-items button{min-height:44px}
}
.write-table-tools{display:flex;gap:6px;margin-bottom:6px}.write-table-tools button{font-size:11px;padding:5px 9px;border:1px solid #e4eaf2;background:#fff;border-radius:5px;color:#73859d}

@media(max-width:350px){body.content-v6 [data-comment-composer] .comment-image-hint{display:none}}
@media(max-width:360px){body.content-v6 [data-comment-composer] .comment-rich-actions{padding-left:3px;padding-right:3px;gap:3px}}

/* Collapsing keeps the live editor, its marks and attachments mounted. */
body.content-v6 [data-comment-composer] .comment-collapsed-entry{display:block;box-sizing:border-box;width:100%;min-height:46px;padding:12px 16px;margin:0;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:1px solid #d7e1f2;border-radius:13px;background:var(--surface);color:#93a3bd;font-size:15px;line-height:1.5}
body.content-v6 [data-comment-composer].is-expanded .comment-collapsed-entry{display:none}
body.content-v6 [data-comment-composer]:not(.is-expanded)>.comment-rich-editor,body.content-v6 [data-comment-composer]:not(.is-expanded)>textarea{display:none}
body.content-v6 [data-comment-composer]:not(.is-expanded) .form-error:empty{display:none}
@media(max-width:700px){body.content-v6 [data-comment-composer] .comment-collapsed-entry{min-height:48px;padding:12px 13px;font-size:16px}}
