:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --line: #e3e6ea;
  --line2: #eef0f3;
  --ink: #1f2328;
  --ink2: #5a6472;
  --ink3: #98a1ae;
  --blue: #185fa5;
  --bluebg: #e6f1fb;
  --red: #c62828;
  --green: #2e7d32;
  --amber: #9a6700;
  --amberbg: #fff8e5;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  display: flex; flex-direction: column; overflow: hidden;
}
code, .mono { font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace; font-size: 12px; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex; align-items: center; gap: 16px; padding: 0 18px; height: 54px;
  background: var(--panel); border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.brand { font-size: 15px; font-weight: 700; letter-spacing: .3px; white-space: nowrap; }
.brand span { color: var(--ink3); font-weight: 400; font-size: 12.5px; margin-left: 8px; }
.tabs { display: flex; gap: 2px; margin-left: 8px; }
.tab {
  padding: 6px 14px; border-radius: 8px; border: none; background: transparent; color: var(--ink2);
  font-size: 13.5px; font-weight: 500;
}
.tab:hover { background: #f1f3f6; }
.tab.on { background: var(--bluebg); color: var(--blue); font-weight: 600; }
.spacer { flex: 1; }
.userchip { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink2); }
.userchip b { color: var(--ink); font-weight: 600; }
.badge-admin { background: var(--green); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 5px; }
.badge-noadmin { background: var(--amberbg); color: var(--amber); font-size: 11px; padding: 2px 7px; border-radius: 5px; }

/* ---------- 通用控件 ---------- */
.btn {
  border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 6px 13px;
  font-size: 13px; color: var(--ink); white-space: nowrap;
}
.btn:hover { background: #f7f8fa; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.btn.primary:hover { background: #14639f; }
.btn.danger { color: var(--red); border-color: #f0c9c9; }
.btn.danger:hover { background: #fdf3f3; }
.btn.sm { padding: 3px 9px; font-size: 12px; border-radius: 6px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.inp {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: #fff;
  outline: none; width: 100%; font-size: 13px;
}
.inp:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24,95,165,.1); }
.muted { color: var(--ink3); }

/* ---------- 主区 ---------- */
main { flex: 1; min-height: 0; display: flex; }
section.tabpane { display: none; flex: 1; min-height: 0; }
section.tabpane.on { display: flex; }

/* ---------- 楼盘数据 ---------- */
.split { display: flex; flex: 1; min-height: 0; }
.list-pane { width: 330px; flex-shrink: 0; border-right: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; }
.list-tools { padding: 10px 12px; border-bottom: 1px solid var(--line2); display: flex; flex-direction: column; gap: 8px; }
.list-tools .row { display: flex; gap: 8px; }
.list-scroll { flex: 1; overflow: auto; }
.proj {
  padding: 9px 13px; border-bottom: 1px solid var(--line2); cursor: pointer; display: flex;
  align-items: center; gap: 8px;
}
.proj:hover { background: #f8f9fb; }
.proj.on { background: var(--bluebg); }
.proj-main { flex: 1; min-width: 0; }
.proj-name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-sub { font-size: 11.5px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-price { font-size: 12.5px; color: var(--red); font-weight: 700; white-space: nowrap; }

.edit-pane { flex: 1; min-width: 0; overflow: auto; padding: 18px 22px 60px; }
.edit-head { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.edit-title { font-size: 20px; font-weight: 700; }
.edit-sub { font-size: 12.5px; color: var(--ink3); margin-top: 3px; }
.edit-sub b { color: var(--ink2); }
.edit-actions { display: flex; gap: 8px; margin-left: auto; }

.grp { margin-bottom: 20px; }
.grp-h {
  font-size: 13px; font-weight: 700; color: var(--blue); padding: 6px 0 8px;
  display: flex; align-items: center; gap: 10px;
}
.grp-h .n { font-weight: 400; color: var(--ink3); font-size: 12px; }
.grp-body { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.frow { display: grid; grid-template-columns: 240px 1fr; gap: 14px; padding: 9px 14px; border-bottom: 1px solid var(--line2); align-items: start; }
.frow:last-child { border-bottom: none; }
.frow.changed { background: #fffbef; }
.flabel { font-size: 13px; font-weight: 600; padding-top: 5px; }
.flabel .col { display: block; font-weight: 400; color: var(--ink3); font-size: 11px; margin-top: 1px; }
.fbadges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.tag { font-size: 11px; padding: 1px 6px; border-radius: 5px; white-space: nowrap; font-weight: 600; }
.t-manual { color: #7b3f00; background: #fdf1e3; }
.t-beike { color: #1a5fb4; background: #e7f0fb; }
.t-wft { color: #0f6b52; background: #e4f4ee; }
.t-derived { color: #5b4b8a; background: #eeeafa; }
.t-auto { color: var(--ink3); background: #f1f3f6; font-weight: 500; }
.t-lock { color: var(--amber); background: var(--amberbg); }
.finput textarea { min-height: 54px; resize: vertical; font-size: 12.5px; }
.fhint { font-size: 11.5px; color: var(--ink3); margin-top: 4px; line-height: 1.5; }
.fhint .auto { color: var(--green); }
.boolean-row { display: flex; align-items: center; gap: 8px; padding-top: 5px; }
.empty { padding: 60px 20px; text-align: center; color: var(--ink3); }

/* ---------- 表格 ---------- */
.table-pane { flex: 1; overflow: auto; padding: 16px 20px 50px; }
.pane-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.pane-tools .inp { width: auto; min-width: 150px; }
table.grid { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 12.5px; }
table.grid th { background: #fafbfc; text-align: left; padding: 8px 11px; font-size: 12px; color: var(--ink2); font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
table.grid td { padding: 7px 11px; border-bottom: 1px solid var(--line2); vertical-align: top; }
table.grid tr:last-child td { border-bottom: none; }
.val-old { color: var(--ink3); text-decoration: line-through; }
.val-new { color: var(--green); font-weight: 600; }
.src-pill { font-size: 11px; padding: 1px 6px; border-radius: 5px; font-weight: 600; white-space: nowrap; }
.a-update { color: var(--blue); background: var(--bluebg); }
.a-create { color: var(--green); background: #e8f5e9; }
.a-delete { color: var(--red); background: #fdecea; }
.ellip { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 导入 ---------- */
.import-wrap { flex: 1; overflow: auto; padding: 18px 22px 60px; max-width: 980px; }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 26px; text-align: center; background: var(--panel); }
.drop.hot { border-color: var(--blue); background: var(--bluebg); }
.drop b { display: block; margin-bottom: 6px; }
.import-out { margin-top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.err-list { max-height: 220px; overflow: auto; font-size: 12.5px; }

/* ---------- 登录 ---------- */
.mask { position: fixed; inset: 0; background: rgba(28,32,38,.55); display: none; align-items: center; justify-content: center; z-index: 50; }
.mask.on { display: flex; }
.login-card { width: 400px; background: var(--panel); border-radius: 14px; padding: 26px 26px 22px; box-shadow: 0 18px 50px rgba(0,0,0,.22); }
.login-card h2 { margin: 0 0 4px; font-size: 19px; }
.login-card .sub { color: var(--ink3); font-size: 12.5px; margin-bottom: 18px; }
.login-card label { display: block; font-size: 12.5px; color: var(--ink2); margin: 12px 0 4px; }
.otp-row { display: flex; gap: 8px; }
.otp-row .inp { flex: 1; }
.acct-sec { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
.acct-title { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.alert { border-radius: 8px; padding: 9px 12px; font-size: 12.5px; margin-top: 12px; }
.alert.info { background: var(--bluebg); color: var(--blue); }
.alert.warn { background: var(--amberbg); color: var(--amber); }
.alert.err { background: #fdecea; color: var(--red); }
.alert.ok { background: #e8f5e9; color: var(--green); }
.login-alt { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line2); font-size: 12.5px; color: var(--ink2); }

/* ---------- Toast ---------- */
#toast { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 80; }
.toast {
  background: #22262c; color: #fff; padding: 9px 15px; border-radius: 8px; font-size: 13px;
  box-shadow: 0 6px 20px rgba(0,0,0,.2); animation: tin .18s ease-out; max-width: 420px;
}
.toast.err { background: var(--red); }
.toast.ok { background: var(--green); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #d3d8de; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #bcc3cb; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 底部保存条 ---------- */
#saveBar {
  position: fixed; left: 0; right: 0; bottom: -64px; z-index: 60;
  display: flex; align-items: center; gap: 10px; padding: 10px 24px;
  background: #22262c; color: #fff; box-shadow: 0 -6px 24px rgba(0,0,0,.18);
  transition: bottom .22s ease;
}
#saveBar.on { bottom: 0; }
#saveBarText { font-size: 13px; font-weight: 600; }
#saveBar .btn { background: #33383f; border-color: #44494f; color: #fff; }
#saveBar .btn:hover { background: #3c424a; }
#saveBar .btn.primary { background: var(--blue); border-color: var(--blue); }
#saveBar .btn.primary:hover { background: #14639f; }

/* ---------- 列表字段实时预览（模拟前端显示效果） ---------- */
.chips-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; align-items: flex-start; }
.chips-preview.as-lines { display: block; }
.pv-chip {
  font-size: 12px; line-height: 1.5; padding: 2px 10px; border-radius: 999px;
  background: #eef4fb; border: 1px solid #d5e4f5; color: #1a5fb4; white-space: nowrap;
}
.pv-line {
  font-size: 12.5px; line-height: 1.7; padding: 1px 0 1px 14px; position: relative;
}
.pv-line::before { content: '·'; position: absolute; left: 2px; color: var(--ink3); }

/* ---------- 学区联动的实时提示 ---------- */
#schoolLiveHint { color: #d4380d; }

/* ---------- 历史成交价 ---------- */
.deal-form-pane { width: 380px; }
/* 左栏是纯表单的页面（历史成交价 / 楼盘动态 / 本周特价 / 相册 / 户型图）：
   表单内容比容器高，但 .list-pane 没有 overflow、body 又是 overflow:hidden，
   于是超出的部分（联系方式、补充说明、「保存」）**永远滚不到** —— 2026-11-13 用户反馈
   「填到『排序』就滑不动了」就是这个。让表单区自己成为滚动容器。 */
.deal-form-pane .list-tools { flex: 1; min-height: 0; overflow-y: auto; }
/* 保存/清空那一行吸底，长表单不用每次滚到底才点得到 */
.deal-form-pane .list-tools > .row:last-child {
  position: sticky; bottom: 0; z-index: 2;
  background: var(--panel); padding: 10px 0 12px;
  border-top: 1px solid var(--line2);
}
.df-title { font-size: 14px; font-weight: 700; color: var(--blue); }
.df-grid { display: flex; flex-direction: column; gap: 9px; }
.df-f { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink2); }
.df-f span i { color: var(--red); font-style: normal; }
.df-f .inp { font-size: 13px; }
.df-tip { font-size: 11.5px; color: var(--ink3); line-height: 1.5; min-height: 16px; }

.dealrow {
  display: flex; gap: 12px; align-items: flex-start; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px;
}
.dr-main { flex: 1; min-width: 0; }
.dr-top { display: flex; align-items: baseline; gap: 10px; }
.dr-top b { font-size: 14px; }
.dr-date { font-size: 12.5px; color: var(--red); font-weight: 600; }
.dr-sub { font-size: 11.5px; color: var(--ink3); margin-top: 2px; }
.dr-nums { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink2); margin-top: 6px; }
.dr-nums b { color: var(--ink); font-weight: 600; }
.dr-policy {
  font-size: 12px; color: #7a5e12; background: #fff8e5; border: 1px solid #f2e3b8;
  border-radius: 6px; padding: 3px 9px; margin-top: 7px; display: inline-block;
}
.dr-note { font-size: 12px; color: var(--ink3); margin-top: 6px; }
.dr-ops { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }

/* 成交录入：批量导入分隔 */
.df-divider {
  font-size: 11.5px; color: var(--ink3); text-align: center; position: relative;
  margin: 4px 0 2px;
}
.df-divider::before, .df-divider::after {
  content: ''; position: absolute; top: 50%; width: 38%; height: 1px; background: var(--line2);
}
.df-divider::before { left: 0; }
.df-divider::after { right: 0; }

/* ---- 楼盘动态 ---- */
.nv-node { font-size: 11px; color: #fff; background: var(--red, #C62828); border-radius: 3px; padding: 1px 6px; }
.nv-content { font-size: 12.5px; color: var(--ink2, #333); line-height: 1.75; margin-top: 6px; white-space: pre-wrap; word-break: break-word; }

/* ---- 楼盘相册 / 户型图 ---- */
.imgrow { align-items: flex-start; }
.imgthumb {
  width: 92px; height: 69px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); flex-shrink: 0; background: #f5f5f5; cursor: zoom-in;
}
.imgtag {
  font-size: 11px; color: #1e6b3a; background: #e6f5ec; border-radius: 3px; padding: 1px 6px;
}
.imgtag.is-plan { color: #155a9c; background: #e7f1fb; }
.imgedit { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.imgedit .inp { height: 28px; font-size: 12px; }
.imgedit [data-cap] { flex: 1; min-width: 0; }
.imgedit [data-sort] { width: 64px; }
.imgthumb-full { position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 200; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.imgthumb-full img { max-width: 92vw; max-height: 92vh; border-radius: 6px; }

/* 武房通原图（只读视图） */
.wftrow { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.wftname { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.wftname .muted { font-weight: 400; font-size: 11px; }
.wftgrid { display: flex; flex-wrap: wrap; gap: 10px; }
.wftcell { width: 148px; }
.wftcell .imgthumb { width: 148px; height: 104px; }
.wftops { display: flex; gap: 6px; margin-top: 6px; }
.wftops .btn { flex: 1; padding: 2px 4px; font-size: 11px; }
.wftdone { font-size: 11px; color: #1e6b3a; }

/* ================================================================
   手机 / 小屏适配（≤ 860px）
   要点：顶栏两行（品牌 + 账号，导航横向滑动）；左右分栏改上下堆叠；
   表单标签与输入框竖向排列；表格横向滚动；输入框 16px 防 iOS 放大。
   ================================================================ */
@media (max-width: 860px) {
  html { -webkit-text-size-adjust: 100%; }
  body { height: 100%; height: 100dvh; overflow: hidden; }

  /* ---------- 顶栏 ---------- */
  .topbar {
    height: auto; min-height: 50px; flex-wrap: wrap; align-items: center;
    gap: 6px 10px; padding: 9px 12px 0;
  }
  .brand { font-size: 14.5px; flex: 0 0 auto; }
  .brand span { display: inline; font-size: 11px; margin-left: 5px; }
  .topbar .spacer { display: none; }
  .userchip { margin-left: auto; font-size: 12px; gap: 6px; flex-wrap: nowrap; }
  .userchip b { overflow: hidden; text-overflow: ellipsis; max-width: 84px; display: inline-block; vertical-align: bottom; }
  .badge-admin, .badge-noadmin { font-size: 10px; padding: 1px 5px; }
  .userchip .btn { padding: 4px 8px; font-size: 12px; }

  .tabs {
    order: 9; width: 100%; margin: 0 -12px; padding: 2px 12px 7px;
    overflow-x: auto; overflow-y: hidden; flex-wrap: nowrap; gap: 4px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    /* 右侧渐隐，提示这一排可以横向滑动 */
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent);
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; white-space: nowrap; padding: 7px 11px; font-size: 12.5px; }

  /* ---------- 主区：分栏改堆叠 ---------- */
  main { min-width: 0; width: 100%; overflow: hidden; }
  section.tabpane { min-width: 0; width: 100%; overflow: hidden; }
  section.tabpane.on { flex-direction: column; min-height: 0; }
  .split {
    flex-direction: column; overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    width: 100%; min-width: 0;
  }
  .list-pane, .deal-form-pane {
    width: 100%; flex-shrink: 0; display: block;
    border-right: none; border-bottom: 1px solid var(--line);
  }
  .list-tools { padding: 10px 12px 12px; }
  .list-scroll { max-height: 38vh; overflow: auto; -webkit-overflow-scrolling: touch; }
  .proj { padding: 11px 14px; }
  .proj-name { font-size: 14px; }
  .proj-sub { font-size: 12px; }
  .proj-price { font-size: 13px; }

  .edit-pane { flex: none; overflow: visible; padding: 14px 12px 110px; min-height: 0; }
  .edit-head { flex-wrap: wrap; gap: 8px 12px; padding-bottom: 10px; margin-bottom: 12px; }
  .edit-title { font-size: 17px; }
  .edit-sub { font-size: 11.5px; line-height: 1.55; }
  .edit-actions { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .edit-actions .inp { width: 100% !important; min-width: 0; }
  .edit-actions .btn { flex: 1; padding: 8px 10px; }

  /* 字段行：标签在上，输入在下 */
  .frow { grid-template-columns: 1fr; gap: 5px; padding: 10px 12px; }
  .flabel { padding-top: 0; font-size: 12.5px; }
  .flabel .col { display: inline; margin-left: 6px; }
  .finput textarea { min-height: 66px; }
  .grp-h { flex-wrap: wrap; gap: 4px 8px; }
  .empty { padding: 40px 16px; font-size: 13px; }

  /* 输入框统一 16px，避免 iOS 聚焦自动放大页面 */
  .inp, input.inp, select.inp, textarea.inp, .df-f .inp, .otp-row .inp, .edit-actions .inp { font-size: 16px; }
  .imgedit .inp { font-size: 16px; height: 36px; }
  .inp { padding: 8px 10px; }
  .btn { padding: 8px 12px; }
  .btn.sm { padding: 5px 9px; font-size: 12px; }

  /* ---------- 表格类页签 ---------- */
  .table-pane { padding: 12px 12px 90px; overflow: auto; -webkit-overflow-scrolling: touch; width: 100%; min-width: 0; }
  .pane-tools { gap: 8px; }
  .pane-tools .inp { min-width: 0; flex: 1 1 44%; width: auto; }
  .pane-tools .btn { flex: 1 1 44%; }
  .pane-tools .btn.primary { flex: 1 1 100%; }
  .pane-tools .muted { flex: 1 1 100%; text-align: right; font-size: 12px; }
  .pane-tools .spacer { display: none; }
  table.grid { min-width: 680px; font-size: 12px; }
  table.grid th, table.grid td { padding: 7px 9px; }
  .ellip { max-width: 190px; }

  /* ---------- 批量导入 ---------- */
  .import-wrap { padding: 14px 12px 90px; }
  .drop { padding: 20px 14px; }
  .drop .btn { padding: 8px 12px; }

  /* ---------- 历史成交价卡片 ---------- */
  .dealrow { flex-wrap: wrap; gap: 10px; padding: 11px 12px; }
  .dr-main { flex: 1 1 100%; }
  .dr-top { flex-wrap: wrap; gap: 4px 10px; }
  .dr-nums { flex-wrap: wrap; gap: 4px 14px; }
  .dr-ops { flex-direction: row; width: 100%; }
  .dr-ops .btn { flex: 1; }

  /* ---------- 图片 ---------- */
  .imgthumb { width: 76px; height: 57px; }
  .imgedit { flex-wrap: wrap; }
  .imgedit [data-cap] { flex: 1 1 100%; }
  .imgedit [data-sort] { width: 76px; }
  .wftcell { width: calc(50% - 5px); }
  .wftcell .imgthumb { width: 100%; height: 96px; }

  /* ---------- 登录 / 账号设置弹层 ---------- */
  .mask { padding: 16px; overflow-y: auto; align-items: flex-start; }
  .login-card {
    width: 100%; max-width: 460px; margin: auto; padding: 20px 16px 18px;
    border-radius: 12px;
  }
  .login-card h2 { font-size: 18px; }
  .login-card .sub { margin-bottom: 14px; }
  .mask.on .login-card { margin: 6vh auto auto; }
  .otp-row .btn { flex: 0 0 auto; white-space: nowrap; }

  /* ---------- 底部保存条 / 提示 ---------- */
  #saveBar { padding: 9px 12px; gap: 8px; flex-wrap: wrap; bottom: -120px; }
  #saveBar.on { bottom: 0; }
  #saveBarText { font-size: 12px; flex: 1 1 100%; }
  #saveBar .spacer { display: none; }
  #saveBar .btn { flex: 1; padding: 9px 10px; }
  #toast { left: 12px; right: 12px; bottom: 12px; }
  .toast { max-width: 100%; }
}

/* 更窄的手机（≤ 400px）：再压缩一档 */
@media (max-width: 400px) {
  /* 品牌与账号挤进同一行：隐去「管理员」徽标，省出宽度 */
  .userchip .badge-admin, .userchip .badge-noadmin { display: none; }
  .userchip { gap: 6px; }
  .userchip b { max-width: 76px; }
  .userchip .btn { padding: 4px 8px; }
  .list-scroll { max-height: 34vh; }
  .proj-price { font-size: 12.5px; }
  .tabs { padding-bottom: 6px; }
}
