/* KBH PC native private-message dialog. Presentation only; no messaging logic. */
.fwinmask:has(.pm){border-radius:16px;box-shadow:0 16px 60px rgba(17,45,53,.18);}
.fwinmask:has(.pm)>.fwin{border-collapse:separate;border-spacing:0;}
.fwinmask:has(.pm)>.fwin>tbody>tr>td:is(.t_l,.t_c,.t_r,.m_l,.m_r,.b_l,.b_c,.b_r){width:0;height:0;padding:0;font-size:0;line-height:0;background:none;}
.fwinmask:has(.pm) .m_c{background:#fff;border:1px solid #dce5e1;border-radius:16px;}
.fwinmask .pm{width:min(480px,calc(100vw - 32px));overflow:hidden;border-radius:15px;background:#fff;color:#20352c;font-size:14px;line-height:1.5;}
.fwinmask .pm .flb{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:16px;height:auto;min-height:64px;margin:0;padding:16px 20px;background:#fff;border-bottom:1px solid #e8eeeb;}
.fwinmask .pm .flb em{float:none;min-width:0;font-size:16px;font-weight:650;line-height:1.5;text-shadow:none;color:#183c32;overflow-wrap:anywhere;}
.fwinmask .pm .flb em::before{display:none;}
.fwinmask .pm .flb>span{float:none;flex:none;}
.fwinmask .pm .flbc{display:block;float:none;width:32px;height:32px;line-height:32px;margin:0;border-radius:50%;background:#f2f5f3;text-align:center;}
.fwinmask .pm .flbc::before{color:#52675e;}
.fwinmask .pm .flbc:hover{background:#e7eee9;}
.fwinmask .pm .pm_tac{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;padding:12px 20px;background:#fff;border-bottom:1px solid #e8eeeb;}
.fwinmask .pm .pm_tac a{float:none;color:#496d5c;font-size:13px;}
.fwinmask .pm .pm_tac a.y{order:2;}
.fwinmask .pm .c{padding:0;background:#f6f8f7;}
.fwinmask .pm .pmb{box-sizing:border-box;width:100%;height:clamp(120px,30vh,260px);padding:20px;overflow:auto;overscroll-behavior:contain;}
.fwinmask .pm .pmb h4{margin:0 0 14px;color:#819087;font-size:12px;font-weight:400;}
.fwinmask .pm .pmb li{margin-bottom:14px;}
.fwinmask .pm .pmt{display:none;}
.fwinmask .pm .pmd{max-width:85%;box-sizing:border-box;padding:10px 14px;border:1px solid #e1e9e4;border-radius:12px 12px 12px 3px;box-shadow:none;background:#fff;color:#233b30;font-size:14px;line-height:1.65;overflow-wrap:anywhere;}
.fwinmask .pm .pmm .pmd{background:#e9f7dd;border-color:#d8ebc9;border-radius:12px 12px 3px 12px;box-shadow:none;}
.fwinmask .pm .pmd img{max-width:100%;height:auto;}
.fwinmask .pm .pmfm{padding:16px 20px 18px;border-top:1px solid #e5ece7;background:#fff;}
.fwinmask .pm .pmfm .tedt{box-sizing:border-box;width:100%;border:1px solid #cfdbd3;border-radius:10px;background:#fff;}
.fwinmask .pm .pmfm .tedt:focus-within{border-color:#619474;box-shadow:0 0 0 3px rgba(97,148,116,.12);}
.fwinmask .pm .tedt .bar{padding:7px 10px;min-height:24px;border:0;border-bottom:1px solid #e8eeeb;background:#f8faf9;border-radius:10px 10px 0 0;}
.fwinmask .pm .tedt .area{padding:0;background:#fff;border-radius:0 0 10px 10px;}
.fwinmask .pm .pmfm #pmmessage{display:block;box-sizing:border-box;width:100%;height:92px;min-height:64px;max-height:160px;padding:12px 14px!important;border:0!important;outline:0;background:transparent;box-shadow:none;font:inherit;line-height:1.6;resize:vertical;}
.fwinmask .pm .pmfm .pns{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;}
.fwinmask .pm .pmfm .pns::after{display:none;}
.fwinmask .pm .pmfm .pma{float:none;order:0;margin:0;color:#6b7d72;font-size:13px;}
.fwinmask .pm #pmsubmit_btn{order:1;float:none;box-sizing:border-box;min-width:96px;height:40px;padding:0 22px;border:0;border-radius:8px;background:#80db35;color:#142b20;box-shadow:none;font:inherit;font-weight:650;cursor:pointer;}
.fwinmask .pm #pmsubmit_btn:hover{background:#73ce2c;}
.fwinmask .pm #pmsubmit_btn strong{padding:0;line-height:40px;}
.fwinmask .pm a:focus-visible,.fwinmask .pm button:focus-visible{outline:2px solid #387a54;outline-offset:3px;}
[dir=rtl] .fwinmask .pm .pmd{float:right;}
[dir=rtl] .fwinmask .pm .pmm .pmd{float:left;}
@media(max-height:620px){.fwinmask .pm .pmb{height:120px;}.fwinmask .pm .flb{min-height:48px;padding-block:10px;}.fwinmask .pm .pmfm{padding-block:10px;}.fwinmask .pm .pmfm #pmmessage{height:64px;}}

/* Keep the translated close label accessible without rendering it beside the icon. */
.fwinmask .pm .flb .flbc{position:relative;font-size:0!important;text-indent:0;overflow:hidden;}
.fwinmask .pm .flb .flbc::before{content:"\00d7";display:block;position:absolute;inset:0;font:24px/32px Arial,sans-serif;text-align:center;color:#52675e;}
/* The editor wrapper provides the focus indicator; suppress the global square textarea ring. */
body.kbh-pc .fwinmask .pm .pmfm #pmmessage:is(:focus,:focus-visible){outline:none!important;outline-offset:0!important;border:0!important;box-shadow:none!important;border-radius:0 0 10px 10px;}

/* Native PM toolbar: consistent 20px monochrome vector icons, original actions intact. */
.fwinmask .pm .tedt .fpd{display:flex;align-items:center;flex-wrap:wrap;gap:4px;height:auto;}
.fwinmask .pm .tedt .fpd a{display:inline-flex;align-items:center;justify-content:center;float:none;box-sizing:border-box;width:32px;height:32px;margin:0;padding:0;overflow:hidden;font-size:0!important;line-height:0;text-indent:0;background:none!important;border:0;border-radius:6px;color:#52675e;cursor:pointer;}
.fwinmask .pm .tedt .fpd a:hover{background:#e7eee9!important;color:#203e30;}
.fwinmask .pm .tedt .fpd a::before{content:"";display:block;width:20px;height:20px;flex:none;background:currentColor;-webkit-mask:var(--pm-icon) center/contain no-repeat;mask:var(--pm-icon) center/contain no-repeat;}
.fwinmask .pm .tedt .fpd a.fbld{--pm-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%204h7a4%204%200%200%201%200%208H6zm0%208h8a4%204%200%200%201%200%208H6z%22%2F%3E%3C%2Fsvg%3E");}
.fwinmask .pm .tedt .fpd a.fclr{--pm-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%2016%206-12%206%2012M8%2012h8M5%2021h14%22%2F%3E%3C%2Fsvg%3E");}
.fwinmask .pm .tedt .fpd a.fmg{--pm-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%223%22%2F%3E%3Ccircle%20cx%3D%228%22%20cy%3D%228%22%20r%3D%221.5%22%2F%3E%3Cpath%20d%3D%22m3%2017%205-5%204%204%204-6%205%207%22%2F%3E%3C%2Fsvg%3E");}
.fwinmask .pm .tedt .fpd a.flnk{--pm-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m10%2013%204-4M8%2015l-2%202a4%204%200%200%201-5-5l5-5a4%204%200%200%201%206%200m0%2010a4%204%200%200%200%206%200l5-5a4%204%200%200%200-5-5l-2%202%22%20transform%3D%22translate%280%200%29%20scale%28.95%29%22%2F%3E%3C%2Fsvg%3E");}
.fwinmask .pm .tedt .fpd a.fqt{--pm-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%205H4v7h5v4l-4%203m15-14h-5v7h5v4l-4%203%22%2F%3E%3C%2Fsvg%3E");}
.fwinmask .pm .tedt .fpd a.fcd{--pm-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m8%206-6%206%206%206m8-12%206%206-6%206%22%2F%3E%3C%2Fsvg%3E");}
.fwinmask .pm .tedt .fpd a.fsml{--pm-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M8%2014a4%204%200%200%200%208%200M8%209h.01M16%209h.01%22%2F%3E%3C%2Fsvg%3E");}

/* PM composer exposes only image and emoji tools. */
.fwinmask .pm .tedt .fpd a:not(.fmg):not(.fsml){display:none!important;}
