/* Shared attachment cards and native media controls. */
body.pg_viewthread.mfcn-thread-page #postlist .tattl.mfcn-file-card{box-sizing:border-box;display:flex;gap:14px;width:100%;max-width:100%;margin:12px 0;padding:16px;border:1px solid var(--mf-line,#dbe5df);border-radius:12px;background:var(--mf-paper,#fffefa);text-align:left;line-height:1.7}
body.pg_viewthread.mfcn-thread-page #postlist .mfcn-file-card dt{float:none;flex:0 0 36px;width:36px;margin:0;padding:4px 0}
body.pg_viewthread.mfcn-thread-page #postlist .mfcn-file-card dd{float:none;flex:1;min-width:0;width:auto;margin:0;padding:0;overflow-wrap:anywhere}
body.pg_viewthread.mfcn-thread-page #postlist .mfcn-file-card .attnm{margin:0 0 7px!important;font-size:14px;font-weight:600}
body.pg_viewthread.mfcn-thread-page #postlist .mfcn-file-card dd>p{margin:4px 0!important;color:var(--mf-muted,#64766a);font-size:12px;line-height:1.7}
.mfcn-media-card{box-sizing:border-box;max-width:100%;margin:16px 0 8px;padding:16px;border:1px solid var(--mf-line,#dbe5df);border-radius:14px;background:var(--mf-paper,#fffefa);overflow:hidden}
.mfcn-media-heading{margin-bottom:12px;color:var(--mf-text,#263e35);font-size:14px;font-weight:600;overflow-wrap:anywhere}
.mfcn-media-card video,.mfcn-native-media{display:block;width:100%;max-width:100%;max-height:70vh;border-radius:10px;background:#12201a}
.mfcn-media-card video{aspect-ratio:16/9;object-fit:contain}
.mfcn-media-card audio{display:block;width:100%;min-height:54px;border-radius:12px}
.mfcn-media-note{margin:10px 0!important;font-size:12px!important;line-height:1.7!important;color:var(--mf-muted,#64766a)}
.mfcn-media-start,.mfcn-media-upload{padding:8px 14px;border:1px solid #126653;border-radius:8px;background:#126653;color:white;font:13px/1.5 "Microsoft YaHei",sans-serif;cursor:pointer}
.mfcn-media-upload{margin:5px;min-height:34px}.mfcn-media-upload-help{margin:10px!important;padding:12px;border-radius:8px;background:#eaf3ed;color:#325c49;font-size:12px;line-height:1.8}
body.pg_post #e_attach_menu{box-sizing:border-box;max-width:calc(100vw - 24px);border:1px solid #d4e2d8;border-radius:12px;box-shadow:0 14px 40px #183c2420}
body.pg_post #e_attach_menu .p_opt{box-sizing:border-box;max-width:100%}
body.pg_post #e_attach_menu .upfl{max-height:360px;overflow:auto}
body.pg_post #e_attach_menu td{padding-top:9px;padding-bottom:9px}
body.pg_post #e_attach_menu .px{box-sizing:border-box;max-width:100%;padding:6px;border:1px solid #ccd9cf;border-radius:6px}
body.pg_post #e_attach_menu .webuploader-pick{border-radius:7px;background:#126653;color:white;font-size:0}
body.pg_post #e_attach_menu .webuploader-pick::after{content:'选择文件上传';font-size:12px}
body.pg_post #e_attach_menu .webuploader-container{border-radius:7px;overflow:hidden}
@media(max-width:700px){.mfcn-media-card{padding:12px;margin:12px 0}.mfcn-media-heading{font-size:13px}body.pg_viewthread.mfcn-thread-page #postlist .tattl.mfcn-file-card{padding:12px;gap:9px}body.pg_post #e_attach_menu .post_tablelist{overflow-x:auto}}

/* v3.18: attachment dialog, including the legacy nine-cell window frame. */
body.pg_post #e_attach_menu{width:740px!important;max-width:calc(100vw - 24px)!important;padding:0!important;background:var(--mf-paper,#fffefa)!important;border:1px solid #d4e2d8!important;border-radius:16px!important;box-shadow:0 20px 64px rgba(22,55,39,.18)!important;color:#32483d;font:13px/1.8 "Microsoft YaHei",sans-serif;overflow:hidden}
body.pg_post #e_attach_menu>.fwin{width:100%!important;table-layout:fixed;border:0!important;border-spacing:0!important;background:none!important}
body.pg_post #e_attach_menu .fwin .t_l,body.pg_post #e_attach_menu .fwin .t_c,body.pg_post #e_attach_menu .fwin .t_r,body.pg_post #e_attach_menu .fwin .b_l,body.pg_post #e_attach_menu .fwin .b_c,body.pg_post #e_attach_menu .fwin .b_r,body.pg_post #e_attach_menu .fwin .m_l,body.pg_post #e_attach_menu .fwin .m_r{display:none!important;width:0!important;height:0!important;padding:0!important;border:0!important;background:none!important}
body.pg_post #e_attach_menu .fwin .m_c{width:100%!important;padding:0!important;border:0!important;background:var(--mf-paper,#fffefa)!important;border-radius:0!important}
body.pg_post #e_attach_menu .m_c>.mtm{margin:0!important;padding:0!important}
body.pg_post #e_attach_menu #e_attach_ctrl{display:flex;align-items:center;gap:8px;min-height:56px;margin:0!important;padding:10px 18px!important;border:0!important;border-bottom:1px solid #e0e8e1!important;background:#f4f8f4!important}
body.pg_post #e_attach_menu #e_attach_ctrl::after{display:none!important}
body.pg_post #e_attach_menu #e_attach_ctrl li{float:none!important;margin:0!important;padding:0!important;border:0!important;background:none!important}
body.pg_post #e_attach_menu #e_attach_ctrl li.y{order:9;margin-left:auto!important}
body.pg_post #e_attach_menu #e_attach_ctrl a{display:inline-flex;align-items:center;min-height:32px;margin:0!important;padding:4px 10px!important;border:0!important;background:transparent!important;color:#126653!important;font-size:15px!important;font-weight:600;line-height:1.5}
body.pg_post #e_attach_menu .flbc{display:inline-flex;align-items:center;justify-content:center;width:30px!important;height:30px!important;margin:0!important;padding:0!important;border:1px solid #d7e3da;border-radius:50%;background:#fff!important;color:#527361;font-size:0!important;cursor:pointer;text-indent:0!important;overflow:hidden}
body.pg_post #e_attach_menu .flbc::before{content:'×';font:22px/1 Arial;color:#527361}
body.pg_post #e_attach_menu .flbc:hover{background:#e4efe7!important}
body.pg_post #e_attach_menu .p_opt{padding:18px!important;font-size:13px;line-height:1.8}
body.pg_post #e_attach_menu #e_attachlist>.pbm{padding:0 0 16px!important;border:0!important}
body.pg_post #e_attach_menu #spanButtonPlaceholder{position:relative;display:inline-block!important;vertical-align:middle;width:124px!important;height:38px!important;background:#126653!important;border-radius:8px!important;overflow:hidden}
body.pg_post #e_attach_menu #spanButtonPlaceholder .webuploader-pick{box-sizing:border-box;display:flex!important;align-items:center;justify-content:center;width:124px!important;height:38px!important;padding:0!important;margin:0!important;background:#126653!important;color:#fff!important;font-size:0!important;border:0!important;border-radius:8px!important;line-height:38px!important}
body.pg_post #e_attach_menu #spanButtonPlaceholder .webuploader-pick::after{font:13px/1.5 "Microsoft YaHei",sans-serif;content:'＋ 选择文件'}
body.pg_post #e_attach_menu #spanButtonPlaceholder>div:not(.webuploader-pick){width:124px!important;height:38px!important;inset:0!important}
body.pg_post #e_attach_menu #spanButtonPlaceholder input[type=file]{cursor:pointer}
body.pg_post #e_attach_menu .notice.upnf{box-sizing:border-box;margin:12px 0 0!important;padding:12px 14px!important;background:#f2f6f1!important;border:1px solid #dfe8df;border-radius:9px;color:#607367!important;font-size:12px!important;line-height:1.9!important;overflow-wrap:anywhere;word-break:normal}
body.pg_post #e_attach_menu .upnf .xi1{color:#126653!important;font-size:inherit!important;font-weight:500}
body.pg_post #e_attach_menu .upnf strong{color:#324e3d;font-size:inherit!important;font-weight:600}
body.pg_post #e_attach_menu .o{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin:0!important;padding:12px 18px!important;background:#f6f8f3!important;border:0!important;border-top:1px solid #e0e8e1!important}
body.pg_post #e_attach_menu .pn{box-sizing:border-box;height:36px!important;margin:0!important;padding:0 20px!important;border:1px solid #126653!important;border-radius:8px!important;background:#126653!important;box-shadow:none!important;text-shadow:none!important;color:#fff!important;font-size:13px!important;line-height:34px!important}
body.pg_post #e_attach_menu .pn strong,body.pg_post #e_attach_menu .pn span{padding:0!important;background:none!important;color:inherit!important;line-height:34px!important;font-size:13px!important}
body.pg_post #e_controls>.mfcn-media-upload{display:inline-flex!important;align-items:center;justify-content:center;float:none!important;width:auto!important;max-width:100%;margin:7px 10px!important;padding:7px 14px!important;min-height:34px;line-height:20px!important;font-size:12px!important}
body.pg_post #e_attach_menu>.mfcn-media-upload-help{margin:12px!important;padding:10px 13px!important;font-size:12px;line-height:1.8}
@media(max-width:700px){body.pg_post #e_attach_menu .p_opt{padding:12px!important}body.pg_post #e_attach_menu #e_attach_ctrl{padding:8px 12px!important}body.pg_post #e_attach_menu .o{padding:12px!important}body.pg_post #e_attach_menu .upfl{max-height:240px}}
body.pg_post #e_attach_menu #e_attach_ctrl{list-style:none!important}body.pg_post #e_attach_menu #e_attach_ctrl li{list-style:none!important}
