/* Keep writing tools available within the long document. */
#app#app#app#app#app#app#app .rich-ux-form .editor-dock{position:sticky;top:52px;z-index:18;background:#fff;border-bottom:1px solid #dce5df;padding:0 0 4px}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .compose56-toolbar{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:4px!important;padding:2px 0!important;scrollbar-width:thin;scrollbar-color:#b5c7bc #fff}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .compose56-toolbar button{flex:0 0 auto!important;min-width:44px!important;width:auto!important;padding:0 10px!important;font-size:16px!important;white-space:nowrap}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock button[aria-pressed=true]{background:#d9f0e3!important;color:#086331!important;box-shadow:inset 0 -2px #086331!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock button[aria-pressed=mixed]{background:#f0f5f2!important;color:#395c48!important;outline:1px dashed #395c48}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock button:focus-visible{outline:2px solid #086331!important;outline-offset:-2px}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .post-media-tools{margin:0!important;padding:0!important;border:0!important;display:flex!important;justify-content:flex-start!important;gap:12px!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .post-media-tools button{flex:0 0 auto!important;flex-direction:row!important;min-height:44px!important;gap:6px!important;font-size:14px!important;padding:0 8px!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .post-media-tools svg{width:20px;height:20px}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .post-tool-label{font-size:14px!important}
.editor-format-hint{display:flex;justify-content:space-between;gap:8px;font-size:12px;line-height:20px;color:#53675c;padding:0 4px}
#app#app#app#app#app#app#app .rich-ux-form [data-rich-editor56]{font-size:16px!important;line-height:1.75!important;caret-color:#087d3c;scroll-margin-top:210px}
#app#app#app#app#app#app#app .rich-ux-form [data-rich-editor56] :is(p,div){line-height:inherit!important;margin-block:0 12px}
#app#app#app#app#app#app#app .rich-ux-form [data-rich-editor56] :is(ul,ol){padding-inline-start:24px;margin-block:8px 16px}
#app#app#app#app#app#app#app .rich-ux-form [data-rich-editor56] blockquote{border-left:1px solid #7aab8e;margin:12px 0;padding:8px 12px;color:#45614f;background:#f0f7f3}
#app#app#app#app#app#app#app .rich-ux-form [data-rich-editor56]::selection,#app#app#app#app#app#app#app .rich-ux-form [data-rich-editor56] ::selection{background:#ccebd9;color:#163d27}
#app#app#app#app#app#app#app .post-badge-feature,#app#app#app#app#app#app#app .cm-badges .post-badge-feature{background:#c72d3a!important;color:#fff!important;border-color:#c72d3a!important}

#app#app#app#app#app#app#app .rich-ux-form .editor-dock .editor-extra{flex-wrap:wrap!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .editor-extra[hidden]{display:none!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock>.compose56-toolbar:first-child{justify-content:space-between!important}
/* Refined mobile editor: consistent geometry, quiet surfaces, deliberate groups. */
#app#app#app#app#app#app#app .rich-ux-form .editor-dock{--edit-ink:#34443c;--edit-muted:#66766c;--edit-line:#e5ebe7;--edit-surface:#f5f7f6;--edit-selected:#e4f2e9;--edit-accent:#096b38;padding:4px 0 0;border-bottom:1px solid var(--edit-line);box-shadow:0 5px 10px -9px #183c2c40}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock>.compose56-toolbar:first-child{display:grid!important;grid-template-columns:56px repeat(3,minmax(44px,1fr)) 64px!important;gap:8px!important;overflow:visible!important;padding:4px 0!important;border:0!important;min-height:52px!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .compose56-toolbar button{font-family:inherit!important;font-size:14px!important;font-weight:500!important;min-width:44px!important;min-height:44px!important;height:44px!important;padding:0 8px!important;border-radius:8px!important;gap:6px!important;line-height:20px!important;color:var(--edit-ink)!important;transition:background-color 120ms ease,color 120ms ease;box-shadow:none!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .compose56-toolbar button svg{width:20px!important;height:20px!important;flex:0 0 20px!important;display:block}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .compose56-toolbar button[aria-pressed=true],#app#app#app#app#app#app#app .rich-ux-form .editor-dock .compose56-toolbar button[aria-expanded=true]{background:var(--edit-selected)!important;color:var(--edit-accent)!important;box-shadow:none!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .compose56-toolbar button[aria-pressed=true] svg{stroke-width:2.2}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .compose56-toolbar button[data-rich-value56=p]{font-size:14px!important;font-weight:500!important;background:var(--edit-surface)!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .compose56-toolbar button[data-editor-more]{padding:0 4px!important;gap:4px!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .compose56-toolbar button:active{background:#d9e9df!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .editor-extra{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;border:0!important;background:var(--edit-surface)!important;border-radius:10px!important;padding:8px!important;margin:4px 0 8px!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .editor-extra button{display:flex!important;flex-direction:column!important;gap:4px!important;min-width:0!important;min-height:60px!important;height:60px!important;width:100%!important;max-width:none!important;padding:6px 0!important;font-size:12px!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .editor-extra[hidden]{display:none!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .post-media-tools{gap:8px!important;padding:4px 0!important;border-top:1px solid var(--edit-line)!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .post-media-tools button{color:var(--edit-ink)!important;border-radius:8px!important;padding:0 12px!important;gap:8px!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .post-media-tools button:first-child{background:var(--edit-surface)!important;color:var(--edit-accent)!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .post-media-tools button:active{background:var(--edit-selected)!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .post-tool-label{font-size:13px!important;line-height:20px!important;font-weight:500!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .post-media-tools svg{width:18px!important;height:18px!important;stroke-width:1.7!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-format-hint{padding:2px 0 6px;min-height:20px;line-height:20px;color:var(--edit-muted);font-size:12px}
#app#app#app#app#app#app#app .rich-ux-form [data-rich-editor56]:focus-visible{box-shadow:none!important}
@media(hover:hover){#app#app#app#app#app#app#app .rich-ux-form .editor-dock button:hover{background:var(--edit-surface)!important}}
@media(prefers-reduced-motion:reduce){#app#app#app#app#app#app#app .rich-ux-form .editor-dock button{transition:none!important}}

#app#app#app#app#app#app#app .rich-ux-form .editor-dock>.compose56-toolbar:first-child>button{width:100%!important;max-width:none!important}

/* Compact default: one row. Secondary tools are disclosed only on request. */
#app#app#app#app#app#app#app .rich-ux-form .editor-dock{padding:0;border-top:1px solid var(--edit-line);box-shadow:none}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock>.compose56-toolbar:first-child{grid-template-columns:80px 44px 44px 72px!important;justify-content:space-between!important;padding:4px 0!important;gap:8px!important;min-height:52px!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock [data-editor-image]{color:var(--edit-accent)!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-format-hint{position:absolute;width:1px;height:1px;min-height:0;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .editor-extra .post-media-tools{grid-column:1/-1;margin-top:0!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .editor-extra .post-media-tools [data-rich-file-trigger56=image]{display:none!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .editor-extra .post-media-tools button{width:auto!important;min-height:44px!important;height:44px!important;flex-direction:row!important;padding:0 12px!important}
/* User reference: a single icon rail directly above the software keyboard. */
#app#app#app#app#app#app#app .rich-ux-form .editor-dock{position:fixed!important;top:auto!important;bottom:var(--rich-dock-bottom,76px)!important;left:var(--rich-dock-left,0px)!important;width:var(--rich-dock-width,100%)!important;box-sizing:border-box;z-index:45!important;display:flex;flex-direction:column;background:#f8f9f8!important;border:0;border-top:1px solid #e8ece9;box-shadow:none;padding:0!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock>.compose56-toolbar:first-child{display:grid!important;grid-template-columns:repeat(6,minmax(44px,1fr))!important;gap:0!important;padding:4px 8px!important;min-height:52px!important;background:transparent!important;margin:0!important;border:0!important;order:2}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock>.compose56-toolbar:first-child>button{position:relative;display:flex!important;justify-content:center!important;align-items:center!important;width:100%!important;max-width:none!important;min-height:44px!important;padding:0!important;border-radius:0!important;background:transparent!important;color:#34413a!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock>.compose56-toolbar:first-child>button svg{width:23px!important;height:23px!important;flex-basis:23px!important;stroke-width:1.7!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock>.compose56-toolbar:first-child>button[aria-pressed=true],#app#app#app#app#app#app#app .rich-ux-form .editor-dock>.compose56-toolbar:first-child>button[aria-expanded=true]{background:transparent!important;color:#07813c!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock>.compose56-toolbar:first-child>button[aria-pressed=true]:after,#app#app#app#app#app#app#app .rich-ux-form .editor-dock>.compose56-toolbar:first-child>button[aria-expanded=true]:after{content:'';position:absolute;width:3px;height:3px;border-radius:50%;background:currentColor;bottom:2px;left:calc(50% - 1.5px)}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock .editor-extra{order:1;margin:0!important;border-radius:0!important;padding:12px 16px!important;max-height:var(--rich-panel-height,300px);overflow:auto;overscroll-behavior:contain;border-bottom:1px solid #e8ece9!important}
#app#app#app#app#app#app#app main.rich-ux-page{padding-bottom:calc(156px + env(safe-area-inset-bottom))!important}
#app#app#app#app#app#app#app .rich-ux-form [data-rich-editor56]{scroll-margin-top:68px;scroll-margin-bottom:140px}
html[data-rich-keyboard] #app#app#app#app#app#app#app .rich-ux-page .publisher-actions{display:none!important}

/* Reachable fallback when the host overlays its keyboard without viewport geometry. */
#app#app#app#app#app#app#app .rich-ux-form .editor-dock[data-overlay-fallback]{top:var(--rich-dock-top,52px)!important;bottom:auto!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock[data-overlay-fallback]>.compose56-toolbar:first-child{order:0}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock[data-overlay-fallback] .editor-extra{order:1;max-height:132px!important}
#app#app#app#app#app#app#app .rich-ux-form:has(.editor-dock[data-overlay-fallback]) [data-rich-editor56]{scroll-margin-top:116px}

#app#app#app#app#app#app#app .rich-ux-form .editor-dock [hidden]{display:none!important}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock>[data-rich-emoji-panel56],#app#app#app#app#app#app#app .rich-ux-form .editor-dock>[data-rich-mention-panel56]{position:static!important;order:1;width:100%!important;max-height:min(220px,var(--rich-panel-height,220px))!important;overflow:auto;box-sizing:border-box;margin:0!important;flex:none}
#app#app#app#app#app#app#app .rich-ux-form .editor-dock[data-overlay-fallback]>[data-rich-emoji-panel56],#app#app#app#app#app#app#app .rich-ux-form .editor-dock[data-overlay-fallback]>[data-rich-mention-panel56]{max-height:176px!important}
#app#app#app#app#app#app#app .rich-ux-form [data-rich-file-trigger56=video],#app#app#app#app#app#app#app .rich-ux-form [data-publisher-material-type=视频],#app#app#app#app#app#app#app .rich-ux-form label[hidden]{display:none!important}
#app#app#app#app#app#app#app .rich-ux-form .personal-toolbar72>label{display:none!important}

#app#app#app#app#app#app#app .rich-ux-form .personal-rich72{overflow:visible!important}
