/* Modern browser replacement for the retired Flash upload buttons.
 * Do not style/position Discuz's upload menu containers here: they retain
 * the native markup required for thumbnail insertion and attachment removal. */
.cid-html5-upload-control { display:inline-flex; align-items:center; gap:8px; min-height:32px; margin:6px 0; }
.cid-html5-upload-control input[type="file"] { position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; pointer-events:none; }
.cid-html5-upload-button { display:inline-flex!important; align-items:center; justify-content:center; min-height:32px; padding:0 14px; border:1px solid #9e1d17!important; border-radius:5px; background:#a01818!important; color:#fff!important; box-shadow:none!important; cursor:pointer; font:600 14px/1.2 "Microsoft YaHei",Arial,sans-serif!important; }
.cid-html5-upload-button:hover { background:#7e1313!important; color:#fff!important; }
.cid-html5-upload-status { display:inline-block; min-height:20px; color:#755b42; font-size:13px; line-height:20px; }
.cid-html5-upload-status.is-error { color:#a01818; }
.cid-html5-upload-status.is-success { color:#39754b; }
/* A stale Flash object can remain in a browser cache after deployment. Hide
 * just that object, never the surrounding native Discuz menu or file list. */
#imgSpanButtonPlaceholder object,#imgSpanButtonPlaceholder embed,#spanButtonPlaceholder object,#spanButtonPlaceholder embed { display:none!important; }
.cid-editor-page .p_pop,.cid-editor-page .p_pof,.cid-editor-page .fwin { opacity:1!important; background:#fffdf8!important; color:#3b2a20!important; border-color:#c8a779!important; }
/* The editor menus are appended outside #ct, so keep their controls opaque too.
 * A long attachment collection must scroll within its own menu, leaving the
 * upload and confirm controls on-screen. */
.cid-body #append_parent .p_pop,.cid-body #append_parent .p_pof,.cid-body #append_parent .fwin{opacity:1!important;background:#fffdf8!important;color:#3b2a20!important;border:1px solid #c8a779!important;box-shadow:0 16px 36px rgba(47,29,17,.28)!important}
#e_image_menu,#e_img_menu,#e_attach_menu,#e_attachment_menu{box-sizing:border-box!important;max-width:calc(100vw - 32px)!important;max-height:calc(100vh - 44px)!important;overflow:auto!important;background:#fffdf8!important}
#e_image_menu .f_c,#e_img_menu .f_c,#e_attach_menu .f_c,#e_attachment_menu .f_c{box-sizing:border-box!important;background:#fffdf8!important;color:#3b2a20!important}
#e_image_menu a,#e_img_menu a,#e_attach_menu a,#e_attachment_menu a{color:#8f1814!important;text-shadow:none!important;opacity:1!important}
#e_image_menu .flbc,#e_img_menu .flbc,#e_attach_menu .flbc,#e_attachment_menu .flbc,#e_image_menu a[title*="关闭"],#e_img_menu a[title*="关闭"],#e_attach_menu a[title*="关闭"],#e_attachment_menu a[title*="关闭"]{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:28px!important;min-height:28px!important;padding:0 8px!important;border:1px solid #a01818!important;border-radius:5px!important;background:#a01818!important;color:#fff!important;font-weight:700!important;line-height:1!important;text-indent:0!important;overflow:visible!important}
#e_image_menu .flbc:hover,#e_img_menu .flbc:hover,#e_attach_menu .flbc:hover,#e_attachment_menu .flbc:hover,#e_image_menu a[title*="关闭"]:hover,#e_img_menu a[title*="关闭"]:hover,#e_attach_menu a[title*="关闭"]:hover,#e_attachment_menu a[title*="关闭"]:hover{background:#751310!important;color:#fff!important}
#imgattachlist,#attachlist{box-sizing:border-box!important;max-height:280px!important;overflow:auto!important;margin-top:8px!important;padding:8px!important;background:#fff!important;border:1px solid #e3cfb2!important;border-radius:6px!important}
#imgattachlist table,#attachlist table{width:100%!important;table-layout:fixed!important;background:#fff!important}
#imgattachlist td{padding:6px!important;vertical-align:top!important;background:#fff!important}
#imgattachlist img{max-width:100%!important;height:auto!important;object-fit:contain!important}
#imgattachlist .imgdeleted{opacity:.35!important;text-decoration:line-through!important}
@media(max-width:720px){#e_image_menu,#e_img_menu,#e_attach_menu,#e_attachment_menu{max-width:calc(100vw - 16px)!important;max-height:calc(100vh - 24px)!important}#imgattachlist,#attachlist{max-height:210px!important}}
