/* Shared compact reply row. Scope excludes publishers and the host App chrome. */
#app#app form.rtd-form,dialog.remix-app-editor form.rtd-form{display:flex!important;flex-direction:column;align-items:stretch!important;gap:0!important;padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important;background:#fff;border-top:1px solid #e7ece9;box-sizing:border-box;color:#25312b}
#app#app .remix-reply-dock form.rtd-form,dialog.remix-app-editor form.rtd-form{padding:10px 12px!important;border:0}
.rtd-form *{box-sizing:border-box}
#app#app .rtd-form .rtd-row,dialog .rtd-form .rtd-row{display:flex;align-items:center;gap:8px;width:100%;min-width:0;margin:0;padding:0;border:0}
#app#app .rtd-form .rtd-toggle,dialog .rtd-form .rtd-toggle{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:#46534c;box-shadow:none;cursor:pointer}
.rtd-form .rtd-toggle svg{display:block;width:26px;height:26px;flex:none}
#app#app .rtd-form .rtd-field,dialog .rtd-form .rtd-field{position:relative;flex:1 1 0;min-width:0;width:0}
#app#app .rtd-form .rtd-field :is(textarea,input),dialog .rtd-form .rtd-field :is(textarea,input){display:block;flex:none;width:100%;min-width:0;min-height:44px;height:44px;max-height:120px;margin:0;padding:10px 54px 10px 12px;border:1px solid #e3e8e5;border-radius:11px;background:#f6f8f7;color:#25312b;font-family:inherit;font-size:16px;line-height:22px;resize:none;box-shadow:none;outline:none}
.rtd-form .rtd-field :is(textarea,input)::placeholder{color:#758079;opacity:1}
#app#app .rtd-form .rtd-field :is(textarea,input):focus,dialog .rtd-form .rtd-field :is(textarea,input):focus{border-color:#7cb992;outline:none;box-shadow:none}
#app#app .rtd-form .rtd-count,dialog .rtd-form .rtd-count{position:absolute;right:8px;bottom:7px;max-width:46px;margin:0;padding:0;color:#65746b;font-size:10px;line-height:14px;white-space:nowrap;pointer-events:none}
#app#app .rtd-form .rtd-send,dialog .rtd-form .rtd-send{flex:0 0 56px;width:56px;height:44px;min-width:56px;min-height:44px;align-self:center;margin:0;padding:0;border:0;border-radius:10px;background:#009b43;color:#fff;font-family:inherit;font-size:15px;font-weight:600;line-height:20px;text-align:center;box-shadow:none;cursor:pointer}
#app#app .rtd-form .rtd-send:disabled,dialog .rtd-form .rtd-send:disabled{background:#d6e9dd;color:#526b5c;opacity:1;cursor:default}
#app#app .rtd-form .rtd-tools,dialog .rtd-form .rtd-tools{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));align-items:start;gap:4px;width:100%;min-width:0;margin:10px 0 0;padding:10px 0 0;border:0;border-top:1px solid #edf0ee;background:#fff;max-height:none;overflow:visible}
#app#app .rtd-form .rtd-tools[hidden],dialog .rtd-form .rtd-tools[hidden],.rtd-form .rtd-emojis[hidden],.rtd-form[data-rtd-open=false] :is(.post28-emoji,.rich-reply-emoji){display:none!important}
#app#app .rtd-form .rtd-tools .rtd-tool,dialog .rtd-form .rtd-tools .rtd-tool{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;min-width:0;width:100%;min-height:68px;height:auto;margin:0;padding:0 0 4px;border:0;border-radius:0;background:transparent;color:#46534c;font-family:inherit;font-weight:400;font-size:11px;line-height:16px;white-space:nowrap;box-shadow:none;cursor:pointer}
.rtd-form .rtd-tool-icon{display:grid;place-items:center;width:40px;height:40px;min-width:40px;border:1px solid #e9eeeb;border-radius:10px;background:#f6f8f7;color:#25312b}
.rtd-form .rtd-tool-icon svg{display:block;width:23px;height:23px}
.rtd-form .rtd-tool-label{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.rtd-form .rtd-emojis{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:2px;padding:8px 0 0;width:100%;background:#fff}
.rtd-form .rtd-emojis button{min-width:0;min-height:44px;margin:0;padding:0;border:0;background:transparent;font-size:23px;line-height:30px;cursor:pointer}
.rtd-form :is(button,a,input,textarea):focus-visible{outline:2px solid #087c3b!important;outline-offset:2px}
#app#app main:has(>form.rtd-form[data-comment-form])>.content{padding-bottom:calc(var(--rtd-composer-height,68px) + 20px)}
dialog.remix-app-editor .rtd-form>header{padding:0 0 10px;margin:0;min-height:44px}
dialog.remix-app-editor .rtd-form>header strong{font-size:14px}
@media(max-width:340px){#app#app form.rtd-form,dialog.remix-app-editor form.rtd-form{padding-left:8px!important;padding-right:8px!important}.rtd-form .rtd-row{gap:6px!important}#app#app .rtd-form .rtd-field :is(textarea,input),dialog .rtd-form .rtd-field :is(textarea,input){padding-right:46px;padding-left:9px}.rtd-form .rtd-tool-icon{width:38px;height:38px;min-width:38px}}
@media(prefers-reduced-motion:reduce){.rtd-form *{animation:none!important;transition:none!important}}

dialog.remix-app-editor:has(.rtd-form){width:min(calc(100% - 16px),430px);padding:12px 8px}
dialog.remix-app-editor form.rtd-form{padding:0!important}
/* Override the incumbent post design's explicit 40px and inline-toolbar rules. */
#app#app .post-design.reply-design form.rtd-form{padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important}
#app#app .post-design.reply-design .rtd-form .rtd-row{gap:8px!important}
#app#app .post-design.reply-design .rtd-form .rtd-field textarea{flex:none!important;width:100%!important;min-height:44px!important;height:var(--rtd-input-height,44px)!important;max-height:120px!important;padding:10px 54px 10px 12px!important;border:1px solid #e3e8e5!important;border-radius:11px!important;background:#f6f8f7!important;font-size:16px!important;line-height:22px!important}
#app#app .post-design.reply-design .rtd-form .rtd-send{height:44px!important;min-height:44px!important;border-radius:10px!important;font-size:15px!important;background:#009b43!important}
#app#app .post-design.reply-design .rtd-form .rtd-send:disabled{background:#d6e9dd!important;color:#526b5c!important}
#app#app .post-design.reply-design .rtd-form .rtd-tools{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:start!important;gap:4px!important;margin:10px 0 0!important;padding:10px 0 0!important;border-top:1px solid #edf0ee!important;min-height:0!important}
#app#app .post-design.reply-design .rtd-form .rtd-tools[hidden]{display:none!important}
#app#app .post-design.reply-design .rtd-form .rtd-tools .rtd-tool{font-size:11px!important;line-height:16px!important;min-height:68px!important}
#app#app .rtd-form .rtd-toggle svg,dialog .rtd-form .rtd-toggle svg{width:26px!important;height:26px!important}
#app#app .rtd-form .rtd-tool-icon svg,dialog .rtd-form .rtd-tool-icon svg{width:23px!important;height:23px!important}
@media(max-width:340px){#app#app .post-design.reply-design form.rtd-form{padding-inline:8px!important}#app#app .post-design.reply-design .rtd-form .rtd-row{gap:6px!important}#app#app .post-design.reply-design .rtd-form .rtd-field textarea{padding-left:9px!important;padding-right:46px!important}}
#app#app .rtd-form .rtd-toggle svg,dialog .rtd-form .rtd-toggle svg{min-width:26px!important;max-width:26px!important;min-height:26px!important;max-height:26px!important;flex:none!important}
#app#app .rtd-form .rtd-tool-icon svg,dialog .rtd-form .rtd-tool-icon svg{min-width:23px!important;max-width:23px!important;min-height:23px!important;max-height:23px!important;flex:none!important}
