/* 2026-10-30 Claude hp12：房源编辑弹窗统一（首页弹窗标准）+ 二级密码弹窗。回滚：index.html 删 em.css / em.js 引用 */
.em-hide,html body .em-hide:not(#_a):not(#_b):not(#_c):not(#_d){display:none!important}
.em-ov.em-ov.em-ov{position:fixed!important;inset:0!important;z-index:100000!important;background:rgba(30,46,70,.42)!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:24px!important;box-sizing:border-box!important;overflow:auto!important;backdrop-filter:none!important}
.em-ov .em-box{position:relative;background:#f4f6fa;border-radius:16px;box-shadow:0 24px 72px rgba(15,30,60,.30);width:600px;max-width:100%;max-height:calc(100vh - 48px);display:flex;flex-direction:column;overflow:hidden;font-family:inherit;color:#0f172a;text-align:left;margin:auto}
.em-ov .em-box.em-s{width:600px}.em-ov .em-box.em-m{width:860px}.em-ov .em-box.em-l{width:960px}
.em-ov .em-box *{box-sizing:border-box}
.em-ov .em-hd{display:flex;align-items:center;gap:14px;background:#fff;padding:18px 24px 16px;border-bottom:1px solid #eef2f7;flex:none}
.em-ov .em-tl{width:48px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center;flex:none}
.em-ov .em-ht{flex:1;min-width:0}
.em-ov .em-t1{display:flex;align-items:center;gap:8px}
.em-ov .em-t1 b{font-size:22px;font-weight:700;line-height:1.3;color:#0f172a}
.em-ov .em-bdg{font-size:12px;font-weight:600;background:currentColor;border-radius:999px;padding:2px 9px;position:relative}
.em-ov .em-bdg{background:none;border:1px solid currentColor}
.em-ov .em-t2{font-size:13px;color:#64748b;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.em-ov .em-x{width:36px;height:36px;border:1px solid #dbe5ef;border-radius:10px;background:#fff;color:#64748b;display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none;padding:0}
.em-ov .em-x:hover{background:#f1f5f9;color:#0f172a}
.em-ov .em-bd{flex:1;overflow:auto;padding:16px 24px 4px;display:flex;flex-direction:column;gap:14px;min-height:0}
.em-ov .em-cd{background:#fff;border-radius:16px;box-shadow:0 1px 2px rgba(15,30,60,.05),0 4px 14px rgba(15,30,60,.05);padding:18px 20px;display:flex;flex-direction:column;gap:14px}
.em-ov .em-ct{display:flex;align-items:baseline;gap:4px 10px;flex-wrap:wrap}
.em-ov .em-ct b{white-space:nowrap}
.em-ov .em-ct b{font-size:15px;font-weight:700;color:#0f172a;padding-left:9px;border-left:3px solid #1675ff;line-height:1}
.em-ov .em-ct small{font-size:12px;color:#94a3b8}
.em-ov .em-gd{display:grid;gap:14px 16px}
.em-ov .em-c1{grid-template-columns:1fr}.em-ov .em-c2{grid-template-columns:repeat(2,minmax(0,1fr))}.em-ov .em-c3{grid-template-columns:repeat(3,minmax(0,1fr))}.em-ov .em-c4{grid-template-columns:repeat(4,minmax(0,1fr))}
.em-ov .em-full{grid-column:1/-1}
.em-ov .em-f{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0}
.em-ov .em-f>*{flex-shrink:0}
.em-ov .em-lb{font-size:13px;font-weight:600;color:#475569}
.em-ov .em-lb i{color:#e11d48;font-style:normal;margin-left:2px}
.em-ov .em-ctl{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:0}
.em-ov .em-ctl>.em-ip,.em-ov .em-ctl>.em-ipx{flex:1 1 0}
.em-ov .em-ctl>.em-lk{flex:none}
.em-ov .em-ip,.em-ov .em-box input.em-ip,.em-ov .em-box select.em-ip,.em-ov .em-box textarea.em-ip{height:44px!important;width:100%!important;min-width:0;border:1px solid #dbe5ef!important;border-radius:11px!important;background:#fff!important;padding:0 13px!important;font-size:14px!important;color:#0f172a!important;outline:none!important;box-shadow:none!important;margin:0!important;font-family:inherit}
.em-ov .em-box textarea.em-ip{height:auto!important;min-height:88px;padding:10px 13px!important;line-height:1.6;resize:vertical}
.em-ov .em-ip:focus,.em-ov .em-ipx:focus-within,.em-ov .em-pw:focus-within{border-color:#1675ff!important;box-shadow:0 0 0 4px rgba(22,117,255,.12)!important}
.em-ov .em-ipx{display:flex;align-items:center;height:44px;border:1px solid #dbe5ef;border-radius:11px;background:#fff;padding:0 0 0 13px;min-width:0;width:100%}
.em-ov .em-ipx input,.em-ov .em-ipx .em-in{flex:1;min-width:0;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;height:42px!important;padding:0!important;font-size:14px!important;color:#0f172a;margin:0!important;width:auto!important}
.em-ov .em-ipx u{text-decoration:none;font-size:13px;color:#94a3b8;padding:0 12px;white-space:nowrap}
.em-ov .em-ipx.em-ro{background:#f6f8fc;justify-content:space-between;padding-right:12px;font-size:14px}
.em-ov .em-ipx.em-ro em{font-style:normal;font-size:12px;color:#94a3b8}
.em-ov .em-hn{font-size:12px;color:#94a3b8;flex-basis:100%}
.em-ov .em-lk,.em-ov .em-ctl>button{height:44px;border:1px solid #cfe0ff;background:#eff6ff;color:#1675ff;border-radius:11px;padding:0 14px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}
.em-ov .em-lk:disabled{color:#94a3b8;background:#f1f5f9;border-color:#e2e8f0;cursor:default}
.em-ov .em-line{display:flex;gap:8px}
.em-ov .em-line .em-ip{flex:1}
.em-ov .em-fb{display:flex;align-items:center;gap:10px;background:#fff;border-radius:14px;margin:12px 24px 20px;padding:10px 12px 10px 16px;box-shadow:0 4px 16px rgba(15,30,60,.08);flex:none}
.em-ov .em-fm{flex:1;font-size:12px;color:#94a3b8;min-width:0}
.em-ov .em-fb .em-btn{height:44px!important;min-width:96px;border-radius:11px!important;padding:0 20px!important;font-size:15px!important;font-weight:600!important;cursor:pointer;border:1px solid #dbe5ef!important;background:#fff!important;color:#334155!important;margin:0!important;box-shadow:none!important;width:auto!important;flex:none!important;line-height:1!important;display:inline-flex!important;align-items:center;justify-content:center}
.em-ov .em-fb .em-btn.em-p{background:#1675ff!important;border-color:#1675ff!important;color:#fff!important;box-shadow:0 6px 16px rgba(22,117,255,.28)!important}
.em-ov .em-fb .em-btn.em-p.em-dz{background:#dc2626!important;border-color:#dc2626!important;box-shadow:0 6px 16px rgba(220,38,38,.28)!important}
.em-ov .em-fb .em-btn:disabled{opacity:.6;cursor:default}
/* 保持原结构的弹窗（配套/跟进/到期/定位/照片）：原内容在白卡片里统一字号和输入框 */
.em-ov .em-keep{gap:12px}
.em-ov .em-keep>*{max-width:100%}
.em-ov .em-keep input:not([type=checkbox]):not([type=radio]):not([type=file]),.em-ov .em-keep select{height:44px!important;border:1px solid #dbe5ef!important;border-radius:11px!important;padding:0 13px!important;font-size:14px!important;background:#fff!important;box-shadow:none!important}
.em-ov .em-keep textarea{background:#fff!important;border:1px solid #dbe5ef!important;border-radius:11px!important;padding:10px 13px!important;font-size:14px!important;line-height:1.6;box-shadow:none!important}
.em-ov .em-keep input:focus,.em-ov .em-keep select:focus,.em-ov .em-keep textarea:focus{border-color:#1675ff!important;outline:none!important;box-shadow:0 0 0 4px rgba(22,117,255,.12)!important}
.em-ov .em-keep label{font-size:13px}
/* 勾选项做成胶囊 */
.em-ov .em-chipcard{flex-direction:row;flex-wrap:wrap;gap:10px}
.em-ov .em-chipl,.em-ov .em-keep label:has(>input[type=checkbox]){display:inline-flex!important;align-items:center;gap:6px;height:36px;padding:0 14px!important;border:1px solid #dbe5ef;border-radius:999px;background:#fff;font-size:14px!important;color:#334155;cursor:pointer;margin:0!important;width:auto!important;user-select:none}
.em-ov .em-chipl input,.em-ov .em-keep label:has(>input[type=checkbox]) input{width:15px;height:15px;margin:0;accent-color:#1675ff}
.em-ov .em-chipl:has(input:checked),.em-ov .em-keep label:has(>input[type=checkbox]:checked){background:#eff6ff;border-color:#93c5fd;color:#1d4ed8;font-weight:600}
/* 自有弹窗部件 */
.em-ov .em-ctx{display:flex;align-items:center;gap:10px;background:#f6f8fc;border-radius:12px;padding:10px 12px}
.em-ov .em-ci{width:32px;height:32px;border-radius:10px;background:#eff6ff;display:flex;align-items:center;justify-content:center;flex:none}
.em-ov .em-ctx b{font-size:14px;display:block}
.em-ov .em-ctx small{font-size:12px;color:#64748b}
.em-ov .em-pw{display:flex;align-items:center;height:52px;border:1.5px solid #dbe5ef;border-radius:12px;background:#fff;padding:0 6px 0 14px}
.em-ov .em-pw input{flex:1;min-width:0;border:0!important;outline:0!important;background:transparent!important;font-size:18px!important;height:48px!important;padding:0!important;box-shadow:none!important;letter-spacing:2px}
.em-ov .em-pw.em-e{border-color:#e11d48;box-shadow:0 0 0 4px rgba(225,29,72,.10)}
.em-ov .em-pw.em-d{background:#f8fafc;color:#94a3b8;font-size:15px}
.em-ov .em-eye{border:0;background:none;width:36px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.em-ov .em-tg{display:flex;align-items:center;gap:9px;font-size:14px;color:#334155;cursor:pointer;user-select:none}
.em-ov .em-tg input{position:absolute;opacity:0;pointer-events:none}
.em-ov .em-sw{width:38px;height:22px;border-radius:11px;background:#cbd5e1;position:relative;flex:none;transition:background .15s}
.em-ov .em-sw:after{content:'';position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:8px;background:#fff;transition:left .15s}
.em-ov .em-tg input:checked+.em-sw{background:#1675ff}
.em-ov .em-tg input:checked+.em-sw:after{left:19px}
.em-ov .em-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;color:#64748b;flex-wrap:wrap}
.em-ov .em-row a{color:#1675ff;text-decoration:none;font-weight:600}
.em-ov .em-msg{display:flex;align-items:center;gap:8px;border-radius:10px;padding:10px 12px;font-size:13px}
.em-ov .em-msg[hidden]{display:none}
.em-ov .em-me{background:#fff1f3;color:#be123c}.em-ov .em-mw{background:#fffbeb;color:#92400e}.em-ov .em-ms{background:#ecfdf5;color:#047857}
.em-ov .em-steps{display:flex;flex-direction:column;gap:10px}
.em-ov .em-steps div{display:flex;align-items:center;gap:10px;font-size:14px;color:#334155}
.em-ov .em-steps i{width:22px;height:22px;border-radius:11px;background:#eff6ff;color:#1d4ed8;font-style:normal;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:none}
.em-ov .em-seg{display:flex;background:#f1f5f9;border-radius:11px;padding:3px;height:44px}
.em-ov .em-seg button{flex:1;border:0;background:none;border-radius:9px;font-size:14px;color:#475569;cursor:pointer}
.em-ov .em-seg button.on{background:#fff;color:#1675ff;font-weight:600;box-shadow:0 1px 4px rgba(15,30,60,.10)}
.em-ov .em-chips{display:flex;flex-wrap:wrap;gap:8px}
.em-ov .em-chip{display:inline-flex;align-items:center;gap:4px;height:34px;padding:0 13px;border:1px solid #dbe5ef;border-radius:999px;background:#fff;font-size:13px;color:#334155;cursor:pointer}
.em-ov .em-chip.on{background:#eff6ff;border-color:#93c5fd;color:#1d4ed8;font-weight:600}
.em-ov .em-warn{background:#fef2f2;border:1px solid #fecaca;border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.em-ov .em-warn div{display:flex;align-items:flex-start;gap:8px;font-size:14px;color:#7f1d1d;line-height:1.5}
.em-ov .em-warn i{width:6px;height:6px;border-radius:3px;background:#dc2626;margin-top:8px;flex:none}
.em-ov .em-ck{display:flex;align-items:center;gap:10px;font-size:14px;color:#334155;cursor:pointer;user-select:none}
.em-ov .em-ck input{position:absolute;opacity:0;pointer-events:none}
.em-ov .em-cb{width:20px;height:20px;border-radius:6px;border:1.5px solid #cbd5e1;display:flex;align-items:center;justify-content:center;flex:none}
.em-ov .em-cb svg{opacity:0}
.em-ov .em-ck input:checked+.em-cb{background:#dc2626;border-color:#dc2626}
.em-ov .em-ck input:checked+.em-cb svg{opacity:1}

/* ---------------- 手机：居中卡片 ---------------- */
@media (max-width:768px){
  .em-ov.em-ov.em-ov{padding:16px!important;align-items:center!important}
  .em-ov .em-box,.em-ov .em-box.em-s,.em-ov .em-box.em-m,.em-ov .em-box.em-l{width:100%;max-width:358px;border-radius:22px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);background:#fff}
  .em-ov .em-hd{padding:16px 16px 14px;gap:12px;border-bottom:0;background:linear-gradient(180deg,var(--em-tint,#eff6ff) 0%,#fff 100%)}
  .em-ov .em-tl{width:44px;height:44px;border-radius:13px}
  .em-ov .em-tl svg{width:22px;height:22px}
  .em-ov .em-t1 b{font-size:18px}
  .em-ov .em-t2{font-size:12px}
  .em-ov .em-x{width:36px;height:36px;border-radius:18px;background:#f1f5f9;border:0}
  .em-ov .em-bd{padding:4px 16px 8px;gap:12px}
  .em-ov .em-cd{box-shadow:none;padding:0;border-radius:0;gap:12px}
  .em-ov .em-cd+.em-cd{border-top:1px solid #eef2f7;padding-top:14px}
  .em-ov .em-ct b{font-size:14px}
  .em-ov .em-keep>*{padding-left:0!important;padding-right:0!important;box-shadow:none!important;background:transparent!important;border:0!important}
  .em-ov .em-c3,.em-ov .em-c4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .em-ov .em-gd{gap:12px 10px}
  .em-ov .em-f[style*="span"],.em-ov .em-f.em-mfull{grid-column:1/-1!important}
  .em-ov .em-fb{margin:0;border-radius:0;box-shadow:none;border-top:1px solid #eef2f7;padding:12px 16px calc(12px + env(safe-area-inset-bottom));gap:10px}
  .em-ov .em-fm{display:none}
  .em-ov .em-fb .em-btn{height:46px!important;flex:1 1 0!important;min-width:0;padding:0 12px!important;border-radius:12px!important}
  .em-ov .em-fb .em-btn.em-p{flex:1.3 1 0!important;background:#3366ee!important;border-color:#3366ee!important}
  .em-ov .em-fb .em-btn.em-p.em-dz{background:#dc2626!important;border-color:#dc2626!important}
  .em-ov .em-ip,.em-ov .em-box input.em-ip,.em-ov .em-box select.em-ip{font-size:16px!important}
  .em-ov .em-ipx input,.em-ov .em-ipx .em-in{font-size:16px!important}
  .em-ov .em-ipx u{padding:0 9px;font-size:12px}
}
/* 手机版 ui-m 用了高优先级规则改 .modal-overlay / 输入框，这里再抬一层 */
html.wnc-m body .em-ov.em-ov:not(#_a):not(#_b):not(#_c){position:fixed!important;inset:0!important;z-index:100000!important;background:rgba(30,46,70,.42)!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:16px!important}
html.wnc-m body .em-ov:not(#_a):not(#_b):not(#_c) .em-box{width:100%!important;max-width:358px!important;border-radius:22px!important;transform:none!important;position:relative!important;bottom:auto!important;margin:auto!important}
html.wnc-m body .em-ov:not(#_a):not(#_b):not(#_c) .em-ip,html.wnc-m body .em-ov:not(#_a):not(#_b):not(#_c) .em-keep input:not([type=checkbox]):not([type=radio]):not([type=file]),html.wnc-m body .em-ov:not(#_a):not(#_b):not(#_c) .em-keep select{height:44px!important;font-size:16px!important;border-radius:11px!important}
html.wnc-m body .em-ov:not(#_a):not(#_b):not(#_c) .em-box textarea.em-ip{height:auto!important}
html.wnc-m body .em-ov:not(#_a):not(#_b):not(#_c) .em-lb{font-size:13px!important}

/* hp15：整块搬进卡片的原表单去掉自身外观 */
.em-ov .em-formbox,.em-ov form.em-formbox{position:static!important;width:auto!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;transform:none!important;overflow:visible!important;display:flex!important;flex-direction:column;gap:12px}
/* hp15：电脑版公区右上「房东合同信息」紧凑，不再出滚动条（空字段隐藏、单行省略、状态放到标题行） */
html.wnc-desktop-standard section.gqu-owner:not(#_a):not(#_b){overflow-y:auto!important;position:relative!important}
html.wnc-desktop-standard section.gqu-owner:not(#_a):not(#_b)>.gq-contract-status{position:absolute!important;top:14px;right:56px;left:auto;margin:0!important}
html.wnc-desktop-standard section.gqu-owner:not(#_a):not(#_b)>.gq-side-kv{grid-template-columns:72px minmax(0,1fr)!important;min-height:0!important;padding-top:0!important;padding-bottom:0!important;margin-bottom:5px!important}
html.wnc-desktop-standard section.gqu-owner:not(#_a):not(#_b)>.gq-side-kv>b{white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
html.wnc-desktop-standard section.gqu-owner:not(#_a):not(#_b)>.gq-side-kv:has(>b:empty){display:none!important}
html.wnc-desktop-standard section.gqu-owner:not(#_a):not(#_b)>.gq-contract-actions{margin-top:6px!important}

/* hp16：电脑版公区房源信息统一排版（到期三项补图标、对齐、行距统一） */
html.wnc-desktop-standard .gq-section-base .gq-base-grid:not(#_a):not(#_b){row-gap:12px!important;column-gap:24px!important;align-items:center}
html.wnc-desktop-standard .gq-section-base .gq-base-grid:not(#_a):not(#_b)>.due-item,html.wnc-desktop-standard .gq-section-base .gq-base-grid:not(#_a):not(#_b)>.dt-room-base-item{min-height:24px!important;height:auto!important;align-items:center!important;padding:0!important;margin:0!important;border:0!important;background:none!important;box-shadow:none!important}
html.wnc-desktop-standard .gq-section-base .gq-base-due:not(#_a) .d-ico{display:none!important}
html.wnc-desktop-standard .gq-section-base .gq-base-due:not(#_a) .d-name{display:inline-flex!important;align-items:center;font-size:13px!important;color:rgb(71,85,105)!important;font-weight:400!important}
html.wnc-desktop-standard .gq-section-base .gq-base-due:not(#_a) .em-dic{display:inline-flex;align-items:center;justify-content:center;margin-right:5px;font-style:normal}
html.wnc-desktop-standard .gq-section-base .gq-base-due:not(#_a) .d-right{justify-content:flex-start!important;gap:6px!important}
html.wnc-desktop-standard .gq-section-base .gq-base-due:not(#_a) .d-date{font-size:14px!important}
html.wnc-desktop-standard .gq-section-base .gq-base-due:not(#_a) .d-date.gray{color:#94a3b8!important}
/* hp16：房东合同信息：不显示合同编号、其他说明、查看完整合同/附件（下方「房东合同」页签里都有） */
html.wnc-desktop-standard section.gqu-owner:not(#_a):not(#_b)>.gq-side-kv[data-gqu-field="合同编号"],html.wnc-desktop-standard section.gqu-owner:not(#_a):not(#_b)>.gq-side-kv[data-gqu-field="其他说明"],html.wnc-desktop-standard section.gqu-owner:not(#_a):not(#_b)>.gq-contract-actions{display:none!important}
html.wnc-desktop-standard section.gqu-owner:not(#_a):not(#_b)>.gq-side-kv{margin-bottom:7px!important}
/* hp17：房东合同信息不显示「生效中」状态 */
html.wnc-desktop-standard section.gqu-owner:not(#_a):not(#_b)>.gq-contract-status{display:none!important}
/* hp18：右上个人菜单「切换当前岗位」字号与菜单一致，去掉底部说明 */
html body .wnc-rs:not(#_a):not(#_b) .wnc-rs-i{font-size:13px!important}
html body .wnc-rs:not(#_a):not(#_b) .wnc-rs-i .t{font-size:13px!important;font-weight:500!important;line-height:1.35!important}
html body .wnc-rs:not(#_a):not(#_b) .wnc-rs-i .t small{font-size:11px!important}
html body .wnc-rs:not(#_a):not(#_b) .wnc-rs-n{display:none!important}
/* hp19：电脑版右上个人菜单上下紧凑、菜单图标缩小 */
@media (min-width:769px){
html:not(.wnc-m) body .account-menu:not(#_a):not(#_b){padding:12px 12px 8px!important}
html:not(.wnc-m) body .account-menu:not(#_a):not(#_b) .account-summary{padding:12px!important;gap:10px!important}
html:not(.wnc-m) body .account-menu:not(#_a):not(#_b) .wnc-rs{padding:4px 0 2px!important;margin-bottom:2px!important}
html:not(.wnc-m) body .account-menu:not(#_a):not(#_b) .wnc-rs-h{padding:2px 8px 4px!important}
html:not(.wnc-m) body .account-menu:not(#_a):not(#_b) .wnc-rs-i{padding:5px 8px!important;min-height:0!important}
html:not(.wnc-m) body .account-menu:not(#_a):not(#_b) .wnc-rs-i .d{width:26px!important;height:26px!important;min-width:26px!important;font-size:12px!important}
html:not(.wnc-m) body .account-menu:not(#_a):not(#_b) .account-items{padding:4px 0!important}
html:not(.wnc-m) body .account-menu:not(#_a):not(#_b) .account-items>button{padding:6px 9px!important;min-height:0!important;gap:10px!important}
html:not(.wnc-m) body .account-menu:not(#_a):not(#_b) .account-items>button>svg{width:24px!important;height:24px!important;min-width:24px!important;padding:5px!important;border-radius:7px!important;flex:0 0 24px!important;box-sizing:border-box!important}
}

/* hp20：证件号检查提示 */
#cf-id_card.em-cert-bad{border-color:#e11d48!important;box-shadow:0 0 0 3px rgba(225,29,72,.12)!important}
.em-cert-tip{color:#e11d48;font-size:12px;margin-top:4px;line-height:1.4}
.em-cert-tip:empty{display:none}
