/* 诺达美居后台 · 统一视觉体系（以《后台统一样式参考图》为基准）
 * 在 admin.css 基础上提供：统一表单组件、筛选栏、设置页、角色权限、确认弹窗等。
 * 设计 token：主色 #1677FF，浅蓝底 #EAF2FF，正文 #1B2A4A，辅助 #64748B，边框 #E8EDF5。
 */

/* ============ 统一表单组件（横排标签 · 双列栅格） ============ */
.form-card { padding: 24px 28px; margin-bottom: 20px; }
.form-card-title { margin: 0 0 18px; font-size: 16px; font-weight: 600; color: var(--text); letter-spacing: .2px; }

.info-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--primary-weak); color: var(--primary);
  border-radius: 8px; padding: 10px 14px;
  font-size: 13px; line-height: 1.5; margin-bottom: 22px;
}
.info-bar svg { width: 15px; height: 15px; flex: 0 0 15px; }
.info-bar b { font-weight: 600; }
.info-bar.neutral { background: #F4F7FC; color: #55617A; }
.info-bar.neutral b { color: var(--text); }

.form-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; row-gap: 20px; }
.fi { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.fi-label { flex: 0 0 112px; padding-top: 10px; font-size: 14px; color: #3B4A68; text-align: left; white-space: nowrap; }
.req { color: #F04438; font-style: normal; margin-left: 2px; }
.fi-ctrl { flex: 1; min-width: 0; position: relative; }
.fi-ctrl input, .fi-ctrl select, .fi-ctrl textarea {
  width: 100%; height: 38px; border: 1px solid #DCE3EF; border-radius: 8px;
  padding: 0 12px; font-size: 14px; font-family: inherit; color: var(--text);
  outline: none; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.fi-ctrl select { height: 38px; }
.fi-ctrl textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.fi-ctrl input:focus, .fi-ctrl textarea:focus, .fi-ctrl select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22, 119, 255, .12); }
.fi-ctrl input::placeholder, .fi-ctrl textarea::placeholder { color: #A6AFBE; }
.fi-ctrl input:disabled, .fi-ctrl textarea:disabled { background: #F4F7FC; color: var(--muted); }
.fi.span2 { grid-column: span 2; }
.fi-hint { margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.6; }

@media (max-width: 1100px) {
  .form-grid2 { grid-template-columns: 1fr; column-gap: 0; }
  .fi.span2 { grid-column: span 1; }
}
@media (max-width: 640px) {
  .fi { flex-direction: column; gap: 6px; }
  .fi-label { flex-basis: auto; padding-top: 0; }
}

/* 密码可见性 + 强度 */
.pwd-eye {
  position: absolute; right: 10px; top: 9px;
  border: none; background: transparent; cursor: pointer;
  color: var(--muted); padding: 2px; display: flex; align-items: center;
}
.pwd-eye:hover { color: var(--primary); }
.pwd-eye svg { width: 18px; height: 18px; display: block; }
.pwd-strength { margin-top: 8px; }
.pwd-strength .bars { display: flex; gap: 4px; margin-bottom: 5px; }
.pwd-strength .bars i { flex: 1; height: 4px; border-radius: 2px; background: #E8EDF5; }
.pwd-strength .txt { font-size: 12px; line-height: 1.5; }

/* 虚线上传选择框（复用现有上传能力） */
.upl-line { display: flex; align-items: center; gap: 16px; }
.upl-box {
  width: 96px; height: 96px; flex: 0 0 96px;
  border: 1px dashed #C6D2E6; border-radius: 8px; background: #FBFCFE;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; color: var(--muted); font-size: 12px;
  overflow: hidden; position: relative;
  transition: border-color .15s, color .15s, background .15s;
}
.upl-box:hover { border-color: var(--primary); color: var(--primary); background: #F7FAFF; }
.upl-box .plus { font-size: 24px; line-height: 1; font-weight: 300; }
.upl-box img { width: 100%; height: 100%; object-fit: cover; }
.upl-box.has-img { border-style: solid; border-color: var(--border); }
.upl-box.busy { opacity: .6; pointer-events: none; }
.upl-remove {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(23, 35, 59, .55); color: #fff;
  border: none; cursor: pointer; font-size: 12px; line-height: 20px;
  text-align: center; padding: 0; display: none;
}
.upl-box.has-img:hover .upl-remove { display: block; }
.upl-hint { font-size: 12px; color: var(--muted); line-height: 1.9; }

/* 多行文本计数 */
.ta-wrap { position: relative; }
.ta-count { position: absolute; right: 10px; bottom: 8px; font-size: 12px; color: #B8C2D4; pointer-events: none; background: rgba(255, 255, 255, .85); padding: 0 2px; border-radius: 4px; }

/* 表单底部操作区（左对齐：主按钮 + 白底描边次按钮） */
.form-actions { display: flex; align-items: center; gap: 12px; margin: 2px 0 16px; }

/* 竖排标签表单（label 包裹 input 的既有写法） */
.lbl { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: #3B4A68; min-width: 0; }
.lbl input, .lbl select, .lbl textarea {
  width: 100%; height: 38px; border: 1px solid #DCE3EF; border-radius: 8px;
  padding: 0 12px; font-size: 14px; font-family: inherit; color: var(--text);
  outline: none; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.lbl textarea { height: auto; padding: 9px 12px; line-height: 1.6; }
.lbl input:focus, .lbl select:focus, .lbl textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22, 119, 255, .12); }
.lbl input::placeholder, .lbl textarea::placeholder { color: #A6AFBE; }
.lbl-sm { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: #55617A; min-width: 0; }
.lbl-sm input, .lbl-sm select, .lbl-sm textarea {
  width: 100%; height: 36px; border: 1px solid #DCE3EF; border-radius: 8px;
  padding: 0 11px; font-size: 13px; font-family: inherit; color: var(--text);
  outline: none; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.lbl-sm input:focus, .lbl-sm select:focus, .lbl-sm textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22, 119, 255, .12); }

/* ============ 列表筛选栏 ============ */
.filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 18px; margin-bottom: 14px;
}
.fb-input {
  height: 38px; width: 300px; max-width: 100%;
  border: 1px solid #DCE3EF; border-radius: 8px; padding: 0 12px;
  font-size: 13px; font-family: inherit; color: var(--text);
  outline: none; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.fb-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22, 119, 255, .12); }
.fb-input::placeholder { color: #A6AFBE; }
.filter-bar select { height: 38px; }
.filter-bar .fb-right { margin-left: auto; }

/* ============ 统一数据表格 ============ */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; padding: 10px 12px; white-space: nowrap;
  background: #F7F9FD; color: #55617A; font-weight: 600; font-size: 12.5px;
  border-bottom: 1px solid var(--border);
}
.tbl td { padding: 12px; border-bottom: 1px solid #F1F4F9; color: var(--text); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: #F8FAFE; }
.card:has(> .tbl) { overflow-x: auto; }

/* ============ 商家列表：商家列（名称 + ID/类型/品类标签） ============ */
.merchant-cell { min-width: 160px; }
.merchant-cell .m-name {
  display: block; max-width: 100%; margin-right: 0;
  font-size: 14px; font-weight: 600; line-height: 1.45;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.merchant-cell .m-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--muted); }
.merchant-cell .m-id { font-variant-numeric: tabular-nums; }
.merchant-cell .m-cat { min-width: 0; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.merchant-cell .mini-tag { margin-right: 0; }
.mini-tag.mt-service { background: #FFF3E8; color: #C2710C; }

/* ============ 用户列表：头像 + 昵称 ============ */
.user-avatar {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 50%; object-fit: cover;
  background: #EAF2FF; border: 1px solid #E8EDF5;
}
.user-name-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-name-cell b { min-width: 0; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }

/* ============ 服务商表格 ============ */
.tbl.provider-tbl th { white-space: nowrap; }
.tbl.provider-tbl td { vertical-align: top; }
.tbl.provider-tbl .provider-actions { white-space: nowrap; }
.tbl.provider-tbl .provider-actions a, .tbl.provider-tbl .provider-actions .btn { margin-right: 4px; }
.tbl.provider-tbl .muted.small { margin-top: 3px; }

/* ============ 设置页（系统设置 / 通用设置） ============ */
.settings-eyebrow { font-size: 11px; color: var(--muted); letter-spacing: 1.6px; margin-bottom: 10px; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; max-width: 1360px; }
.settings-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.settings-section { padding: 0 !important; overflow: hidden !important; }
.settings-section-head { display: flex; align-items: center; gap: 12px; padding: 20px 24px 16px; border-bottom: 1px solid var(--border); }
.settings-section-icon {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-weak); color: var(--primary); font-size: 16px;
}
.settings-section-head h2 { font-size: 15px; font-weight: 600; color: var(--text); margin: 0 0 4px; }
.settings-section-head p { font-size: 12px; color: var(--muted); margin: 0; }
.settings-fields { padding: 4px 24px; }
.settings-field { display: grid; grid-template-columns: 180px minmax(200px, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid #F1F4FA; align-items: center; }
.settings-field:last-child { border-bottom: 0; }
.settings-field-meta label { font-size: 13px; font-weight: 500; color: var(--text); }
.settings-field-meta p { font-size: 12px; color: var(--muted); margin: 5px 0 0; line-height: 1.6; }
.settings-input-wrap { position: relative; display: flex; align-items: center; max-width: 420px; }
.settings-input-wrap input {
  width: 100%; height: 38px; border: 1px solid #DCE3EF; border-radius: 8px;
  padding: 0 12px; font-size: 14px; font-family: inherit; color: var(--text);
  outline: none; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.settings-input-wrap.has-unit input { padding-right: 52px; }
.settings-input-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22, 119, 255, .12); }
.settings-unit { position: absolute; right: 12px; font-size: 12px; color: var(--muted); pointer-events: none; }
.settings-note-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.settings-note-symbol { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-weak); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 17px; margin-bottom: 12px; }
.settings-note-card h3 { font-size: 14px; font-weight: 600; color: var(--text); margin: 0 0 8px; }
.settings-note-card p { font-size: 12px; color: var(--sub); line-height: 1.7; margin: 0 0 10px; }
.settings-note-card ul { margin: 0; padding: 0; list-style: none; }
.settings-note-card li { position: relative; font-size: 12px; color: var(--sub); line-height: 1.7; padding-left: 14px; margin-bottom: 6px; }
.settings-note-card li:before { content: ''; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--primary-2); }
.settings-save-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #12A96A; }
.settings-save-state:before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #12B76A; }
.settings-save-state.dirty { color: #D99B00; }
.settings-save-state.dirty:before { background: #F79009; }
.settings-bottom-hint { font-size: 12px; color: var(--muted); margin-top: 14px; line-height: 1.7; }
.settings-empty { padding: 40px; text-align: center; color: var(--muted); font-size: 13px; }
@media (max-width: 1120px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-note-card { order: -1; }
}
@media (max-width: 1350px) {
  .settings-field { grid-template-columns: 150px minmax(180px, 1fr); }
}

/* ============ 概览问候横幅（page-head 变体） ============ */
.workspace-banner h1 { font-size: 22px; }
.workspace-banner p { font-size: 13px; color: var(--sub); }
.workspace-banner .welcome-mark { display: inline-flex; align-items: center; justify-content: center; }

/* ============ 接入目录 / 集成表单 ============ */
.integration-catalog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.integration-form { display: flex; flex-direction: column; gap: 12px; }
.integration-form h2 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.integration-form > label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #3B4A68; }
.integration-form input, .integration-form select, .integration-form textarea {
  width: 100%; height: 38px; border: 1px solid #DCE3EF; border-radius: 8px;
  padding: 0 12px; font-size: 14px; font-family: inherit; color: var(--text);
  outline: none; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.integration-form textarea { height: auto; min-height: 90px; padding: 9px 12px; }
.integration-form input:focus, .integration-form select:focus, .integration-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22, 119, 255, .12); }
.integration-form .btn { align-self: flex-start; }
.integration-form .small { font-size: 12px; color: var(--muted); }
@media (max-width: 1150px) { .integration-catalog-layout { grid-template-columns: 1fr; } }

/* ============ 表单校验反馈 ============ */
.admin-validation-summary {
  border: 1px solid #FECDCA; background: #FFFBFA; color: #B42318;
  border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; font-size: 13px; line-height: 1.8;
}
.admin-validation-summary strong { display: block; font-size: 13px; margin-bottom: 2px; }
.admin-field-error { display: block; margin-top: 5px; font-size: 12px; color: #F04438; }
.form-ctrl [aria-invalid="true"], .fi-ctrl [aria-invalid="true"], .lbl [aria-invalid="true"], .lbl-sm [aria-invalid="true"] { border-color: #F04438 !important; }
.form-ctrl input[readonly] { background: #F4F7FC; color: var(--muted); }

/* ============ 站内确认弹窗（删除/审核等操作） ============ */
.admin-confirm-layer {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: confirmFade .16s ease;
}
@keyframes confirmFade { from { opacity: 0; } to { opacity: 1; } }
.admin-confirm-panel {
  background: #fff; border-radius: 14px; width: 400px; max-width: 100%;
  padding: 26px 26px 20px; text-align: center;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
  animation: confirmZoom .16s ease;
}
@keyframes confirmZoom { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.admin-confirm-symbol {
  width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%;
  background: #FFF4E5; color: #F79009;
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600;
}
.admin-confirm-panel h2 { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: var(--text); }
.admin-confirm-panel p { margin: 0 0 20px; font-size: 13px; color: var(--sub); line-height: 1.7; }
.admin-confirm-actions { display: flex; justify-content: center; gap: 12px; }
.admin-confirm-actions .btn { min-width: 96px; justify-content: center; }
.admin-confirm-actions .btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 480px) {
  .admin-confirm-panel { padding: 22px 18px 16px; }
  .admin-confirm-actions .btn { flex: 1; min-width: 0; }
}

/* ============ 角色权限表单 ============ */
.form-wrap.role-form { display: flex; flex-direction: column; gap: 16px; }
.role-form > .form-row { width: 100%; }
.role-name-row > .form-ctrl { max-width: 420px; }
.perm-row > .form-ctrl { flex: 1; min-width: 0; }
.perm-board { display: flex; flex-direction: column; gap: 14px; }
.perm-group { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; background: #FBFCFE; }
.perm-group:last-child { margin-bottom: 0; }
.perm-group-title { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.perm-group-name { font-size: 13px; font-weight: 600; color: var(--text); }
.perm-group-title .link { margin-left: auto; }
.perm-group-items { display: flex; flex-wrap: wrap; gap: 8px; max-height: 220px; overflow-y: auto; }
.perm-group-items::-webkit-scrollbar { width: 6px; }
.perm-group-items::-webkit-scrollbar-thumb { background: #DCE3EE; border-radius: 3px; }
.perm-group-items::-webkit-scrollbar-track { background: transparent; }
.perm-item {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #E4EAF3; border-radius: 8px; background: #fff;
  padding: 7px 12px; font-size: 12.5px; color: #55617A; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.perm-item:hover { border-color: #B4C7E7; color: var(--primary); }
.perm-item input[type=checkbox] { width: 15px; height: 15px; }
.perm-item input[type=checkbox]:checked::after { left: 4px; top: 1px; }
.perm-item:has(input[type=checkbox]:checked) { border-color: var(--primary); background: var(--primary-weak); color: var(--primary); }
.perm-item span { white-space: nowrap; }
@media (max-width: 1400px) { .perm-item { padding: 6px 10px; } }

/* ============ 商家分类页功能展示卡片 ============ */
.catfn-card { border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 18px 20px; margin-bottom: 16px; }
.catfn-head { margin-bottom: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.catfn-head-text { flex: 1; min-width: 260px; }
.catfn-head .btn { flex: 0 0 auto; }
.catfn-title { margin: 0; font-size: 15px; font-weight: 700; color: var(--text); }
.catfn-desc { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.catfn-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.catfn-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid #F1F4FA; }
.catfn-row:nth-child(-n+2) { border-top: none; padding-top: 2px; }
.catfn-row:nth-last-child(-n+2) { padding-bottom: 0; }
@media (max-width: 900px) {
  .catfn-list { grid-template-columns: 1fr; }
  .catfn-row:nth-child(2) { border-top: 1px solid #F1F4FA; padding-top: 10px; }
  .catfn-row:nth-last-child(2) { padding-bottom: 10px; }
}
.catfn-main { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.catfn-id { font-size: 11px; color: var(--muted); font-family: Consolas, monospace; flex: 0 0 auto; }
.catfn-name { font-size: 13px; color: var(--text); }
.catfn-ctl { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.catfn-state { font-size: 12px; color: #12A96A; }
.catfn-state.off { color: var(--muted); }
.catfn-foot { margin-top: 12px; display: flex; justify-content: flex-end; gap: 10px; }

/* ============ 通用辅助 ============ */
.btn:disabled { opacity: .55; cursor: not-allowed; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
@media (max-width: 1350px) {
  .row-2 { grid-template-columns: 1fr; }
  .row-3 > .card:first-child { grid-column: auto; }
  .row-3 > .card:last-child { grid-column: auto; }
  .content { padding: 12px 20px 32px; }
  .crumb { padding: 16px 20px 0; }
  .top-search { width: 220px; }
}

/* 房源发布管理：与小程序共用完整记录和图片 */
.house-admin-list { display: grid; gap: 20px; }
.house-row-main { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.house-row-thumb { flex: 0 0 64px; width: 64px; height: 48px; border-radius: 8px; object-fit: cover; background: #edf2fa; }
.house-row-thumb-empty { display: flex; align-items: center; justify-content: center; color: #9aa6b8; font-size: 12px; }
.house-row-text { min-width: 0; }
.house-row-text b { display: block; color: #1B2A4A; overflow-wrap: anywhere; }
.house-row-ops { white-space: nowrap; }
.house-row-ops .btn { margin-right: 6px; }
.house-modal-panel { width: 760px; }
.rv-modal .house-admin-actions { display: none; }
.rv-modal .house-admin-record { padding: 0; border: 0; box-shadow: none; }
.house-edit-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }
.house-edit-full { grid-column: 1 / -1; }
@media(max-width:720px) { .house-edit-grid { grid-template-columns: minmax(0,1fr); } .house-modal-panel { width: calc(100vw - 24px); } }
.house-admin-record { padding: 24px; min-width: 0; }
/* 房源筛选栏：城市 / 小区 / 价格 / 类型 / 状态 / 关键词 */
.house-filter { padding: 14px 16px; align-items: flex-end; }
.hf-field { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.hf-field label { flex: 0 0 100%; font-size: 12px; color: #64748B; line-height: 1; }
.house-filter .rv-ctl { height: 36px; }
.house-filter select.rv-ctl { min-width: 128px; max-width: 190px; }
.house-filter input.hf-num { min-width: 0; width: 92px; }
.house-filter input.hf-kw { min-width: 200px; }
.house-filter .hf-split { color: #94A3B8; font-size: 12px; }
.house-filter .btn { height: 36px; }
.house-filter #hfCount { margin-left: auto; white-space: nowrap; }
@media(max-width:720px) {
  .house-filter .hf-field { flex: 1 1 100%; }
  .house-filter select.rv-ctl, .house-filter input.hf-num, .house-filter input.hf-kw { width: 100%; max-width: none; }
  .house-filter #hfCount { margin-left: 0; }
}
.house-admin-heading { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.house-admin-heading > div:first-child { flex: 1; min-width: 180px; }
.house-admin-heading h2 { margin: 0 0 8px; font-size: 20px; overflow-wrap: anywhere; }
.house-admin-price { color: #ef651b; font-size: 26px; font-weight: 700; }
.house-admin-price small { font-size: 13px; margin-left: 4px; }
.house-admin-gallery { display: flex; gap: 12px; flex-wrap: wrap; }
.house-admin-photo { display: block; position: relative; width: 180px; height: 125px; border-radius: 10px; overflow: hidden; background: #edf2fa; }
.house-admin-photo img { width: 100%; height: 100%; object-fit: cover; }
.house-admin-photo span { position: absolute; bottom: 7px; left: 7px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.55); color: white; font-size: 12px; }
.house-admin-no-photo, .house-admin-empty { padding: 16px; color: #8b95a7; font-size: 13px; box-sizing: border-box; }
.house-admin-details { margin-top: 20px; }
.house-admin-details summary { cursor: pointer; color: #2666cf; font-weight: 600; padding: 12px 0; }
.house-admin-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 24px; margin: 0; }
.house-admin-fields > div { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #edf1f6; min-width: 0; font-size: 13px; }
.house-admin-fields dt { color: #8b95a7; flex: 0 0 78px; }
.house-admin-fields dd { margin: 0; color: #283b55; overflow-wrap: anywhere; }
.house-admin-details h3 { font-size: 14px; margin: 20px 0 10px; }
.house-admin-description { background: #f6f8fc; border-radius: 8px; padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; font-size: 13px; }
.house-admin-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; }
@media(max-width:1100px) { .house-admin-fields { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) { .house-admin-fields { grid-template-columns: minmax(0,1fr); } .house-admin-record { padding: 16px; } .house-admin-photo { width: calc(50% - 6px); } }
