/* ==========================================================================
   萝岗和苑一期 · 保障性住房委托管理平台
   响应式样式（手机 / 电脑双端）
   ========================================================================== */

:root {
  --brand: #1b5fbe;
  --brand-d: #12488f;
  --brand-l: #eaf2fd;
  --brand-xl: #f5f9ff;

  --ink: #141922;
  --ink-2: #48525f;
  --ink-3: #7b8593;
  --ink-4: #a3acb8;

  --line: #e4e9f0;
  --line-2: #eef2f7;
  --bg: #f3f6fa;
  --card: #ffffff;

  --red: #d92b2b;
  --red-l: #fdeeee;
  --ok: #0f7a58;
  --ok-l: #e8f6f1;
  --warn: #a86400;
  --warn-l: #fdf3e2;

  --r: 12px;
  --r-s: 8px;
  --r-l: 16px;
  --shadow: 0 1px 2px rgba(20, 25, 34, .04), 0 4px 16px rgba(20, 25, 34, .06);
  --shadow-h: 0 2px 6px rgba(20, 25, 34, .07), 0 12px 28px rgba(20, 25, 34, .1);
  --maxw: 1180px;
  --nav-h: 62px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
table { border-collapse: collapse; width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.hide { display: none !important; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.nowrap { white-space: nowrap; }

/* ---------------- 顶栏 ---------------- */

.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
}
.topbar-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  height: 100%; display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(140deg, var(--brand) 0%, #2f7de0 100%);
  color: #fff; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; letter-spacing: -.5px;
  box-shadow: 0 3px 10px rgba(27, 95, 190, .3);
}
.brand-txt { min-width: 0; }
.brand-name {
  font-size: 15.5px; font-weight: 700; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-sub {
  font-size: 11.5px; color: var(--ink-3); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav a {
  padding: 8px 14px; border-radius: var(--r-s); font-size: 14px;
  color: var(--ink-2); font-weight: 500; white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--brand-l); color: var(--brand-d); }
.nav a.on { background: var(--brand); color: #fff; }
.nav a.primary { background: var(--brand); color: #fff; }
.nav a.primary:hover { background: var(--brand-d); }

.burger {
  margin-left: auto; display: none; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  align-items: center; justify-content: center;
}
.burger span { display: block; width: 17px; height: 2px; background: var(--ink-2); position: relative; }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 17px; height: 2px; background: var(--ink-2);
}
.burger span::before { top: -5px; }
.burger span::after { top: 5px; }

/* 移动端抽屉 */
.drawer {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(14, 19, 27, .45); backdrop-filter: blur(2px);
  display: none;
}
.drawer.on { display: block; }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: 250px;
  background: #fff; padding: 16px; overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0, 0, 0, .16);
  animation: slideIn .22s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.drawer-panel h4 { font-size: 13px; color: var(--ink-3); margin: 14px 0 8px; font-weight: 600; }
.drawer-panel a {
  display: block; padding: 11px 12px; border-radius: var(--r-s);
  color: var(--ink); font-size: 14.5px; margin-bottom: 3px;
}
.drawer-panel a:hover, .drawer-panel a.on { background: var(--brand-l); color: var(--brand-d); }

/* ---------------- 页面容器 ---------------- */

.view { display: none; padding-bottom: 90px; }
.view.on { display: block; opacity: 1; transform: none; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 实景照片首屏 */
.hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: 420px; display: flex; align-items: center;
  background: linear-gradient(135deg, #0f2f5e 0%, #16457f 100%);
  padding: 48px 0;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover; background-position: center 42%;
  transform: scale(1.02);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 22, 46, .78) 0%, rgba(6, 22, 46, .42) 34%, rgba(6, 22, 46, .88) 100%),
    linear-gradient(90deg, rgba(6, 22, 46, .72) 0%, rgba(6, 22, 46, .18) 62%);
}
.hero-in { position: relative; z-index: 2; width: 100%; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px);
  padding: 5px 13px; border-radius: 99px; font-size: 12.5px; font-weight: 600;
  margin-bottom: 15px; letter-spacing: .2px;
}
.hero-tag i {
  width: 6px; height: 6px; border-radius: 50%; background: #5ee6b0;
  box-shadow: 0 0 0 3px rgba(94, 230, 176, .3); flex: none;
}
.hero h1 {
  font-size: 40px; line-height: 1.16; margin-bottom: 12px;
  letter-spacing: -.02em; text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.hero-loc {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 14px; color: rgba(255, 255, 255, .9); margin-bottom: 12px;
}
.hero-loc svg { width: 15px; height: 15px; flex: none; opacity: .85; }
.hero-loc span { opacity: .45; }
.hero .lead {
  font-size: 14.5px; color: rgba(255, 255, 255, .84);
  max-width: 640px; line-height: 1.75;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .3);
}
.hero-cta { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 22px; }
.hero-cta .btn {
  border: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
}
.hero-cta .btn-white { background: #fff; color: #10386b; }
.hero-cta .btn-white:hover { background: #eef4fd; }
.hero-cta .btn-glass {
  background: rgba(255, 255, 255, .13); color: #fff;
  border: 1px solid rgba(255, 255, 255, .34); backdrop-filter: blur(6px);
}
.hero-cta .btn-glass:hover { background: rgba(255, 255, 255, .22); }

/* 首屏浮层数据条 */
.hero-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 30px; border-radius: 14px; overflow: hidden;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(14px) saturate(150%);
}
.hero-meta div {
  padding: 14px 18px; background: rgba(10, 28, 56, .34);
  font-size: 12.5px; color: rgba(255, 255, 255, .74);
}
.hero-meta b {
  display: block; font-size: 22px; color: #fff; font-weight: 700;
  margin-top: 3px; letter-spacing: -.01em;
}
.hero-meta b small { font-size: 13px; font-weight: 600; opacity: .75; margin-left: 2px; }

/* ---------------- 区块 ---------------- */

.section { padding: 26px 0 0; }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; margin-bottom: 14px; flex-wrap: wrap;
}
.sec-title { font-size: 18px; display: flex; align-items: center; gap: 9px; }
.sec-title::before {
  content: ''; width: 4px; height: 17px; border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), #58a0f0);
}
.sec-desc { font-size: 13px; color: var(--ink-3); margin-top: 3px; font-weight: 400; }

/* ---------------- 卡片 ---------------- */

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
}
.card-pad { padding: 18px; }

/* ---------------- 入口大按钮 ---------------- */

.entries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.entry {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  background: linear-gradient(160deg, #ffffff 0%, #fafbfe 100%);
  border: 1px solid #edf0f5; border-radius: 18px;
  box-shadow: var(--shadow); transition: all .22s ease; text-align: left;
  position: relative; overflow: hidden;
}
.entry::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--brand), #58a0f0);
  opacity: 0; transition: opacity .2s;
}
.entry:hover {
  border-color: #bcd5f5; box-shadow: var(--shadow-h); transform: translateY(-3px);
}
.entry:hover::before { opacity: 1; }
.entry-ico {
  width: 56px; height: 56px; border-radius: 17px; flex: none;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #4a93f2 0%, #1b5fbe 100%);
  box-shadow: 0 6px 15px rgba(27, 95, 190, .32), inset 0 1px 0 rgba(255, 255, 255, .32);
}
.entry-ico svg {
  width: 27px; height: 27px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.entry.p2 .entry-ico {
  background: linear-gradient(145deg, #33cf90 0%, #0e9a6b 100%);
  box-shadow: 0 6px 15px rgba(14, 154, 107, .32), inset 0 1px 0 rgba(255, 255, 255, .32);
}
.entry.p3 .entry-ico {
  background: linear-gradient(145deg, #ffb84d 0%, #f58a14 100%);
  box-shadow: 0 6px 15px rgba(245, 138, 20, .32), inset 0 1px 0 rgba(255, 255, 255, .32);
}
.entry.p4 .entry-ico {
  background: linear-gradient(145deg, #9079ec 0%, #6348cf 100%);
  box-shadow: 0 6px 15px rgba(99, 72, 207, .32), inset 0 1px 0 rgba(255, 255, 255, .32);
}
.entry.p5 .entry-ico {
  background: linear-gradient(145deg, #ff8070 0%, #e8443a 100%);
  box-shadow: 0 6px 15px rgba(232, 68, 58, .32), inset 0 1px 0 rgba(255, 255, 255, .32);
}
.entry-b { min-width: 0; flex: 1; }
.entry-t { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.entry-d { font-size: 13px; color: var(--ink-3); line-height: 1.55; }
.entry-a {
  margin-left: auto; flex: none; font-size: 13px; color: var(--brand);
  font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 4px;
  transition: gap .2s;
}
.entry:hover .entry-a { gap: 9px; }
.entry-a svg { width: 14px; height: 14px; }

/* ---------------- 指标 ---------------- */

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 15px 16px; box-shadow: var(--shadow);
}
.kpi-l { font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.kpi-v { font-size: 25px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.kpi-v small { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-left: 3px; }
.kpi-v.red { color: var(--red); }
.kpi-v.blue { color: var(--brand); }
.kpi-v.green { color: var(--ok); }
.kpi-x { font-size: 12px; color: var(--ink-4); margin-top: 4px; }

/* ---------------- 表格 ---------------- */

.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { font-size: 14px; min-width: 560px; }
.tbl th {
  text-align: left; padding: 11px 12px; background: var(--brand-xl);
  color: var(--ink-2); font-weight: 600; font-size: 13px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td {
  padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle;
}
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: #fbfcfe; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .rent { color: var(--red); font-weight: 700; }

/* ---------------- 徽标 ---------------- */

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2.5px 9px; border-radius: 99px; font-size: 12px; font-weight: 600;
  background: var(--brand-l); color: var(--brand-d); white-space: nowrap;
}
.badge.gray { background: #f1f3f6; color: var(--ink-2); }
.badge.green { background: var(--ok-l); color: var(--ok); }
.badge.red { background: var(--red-l); color: var(--red); }
.badge.warn { background: var(--warn-l); color: var(--warn); }
.badge.line { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }

/* ---------------- 进度 ---------------- */

.bar { height: 7px; border-radius: 99px; background: #eef1f6; overflow: hidden; }
.bar > i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), #56a0f0);
  transition: width .5s ease;
}
.bar.ok > i { background: linear-gradient(90deg, #0f7a58, #35b184); }
.bar.warn > i { background: linear-gradient(90deg, #a86400, #e0a33c); }

/* ---------------- 表单 ---------------- */

.form-card { padding: 0; overflow: hidden; }
.form-sec { border-bottom: 1px solid var(--line-2); }
.form-sec:last-child { border-bottom: none; }
.form-sec-h {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 18px; background: var(--brand-xl);
  border-bottom: 1px solid var(--line-2);
}
.form-sec-n {
  width: 24px; height: 24px; border-radius: 7px; flex: none;
  background: var(--brand); color: #fff; font-size: 12.5px;
  display: grid; place-items: center; font-weight: 700;
}
.form-sec-t { font-size: 15px; font-weight: 700; }
.form-sec-d { font-size: 12.5px; color: var(--ink-3); margin-left: auto; text-align: right; }
.form-body { padding: 18px; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 16px; }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g1 { grid-template-columns: 1fr; }
.col-2 { grid-column: span 2; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.field > label .req { color: var(--red); margin-left: 3px; }
.field .hint { font-size: 12px; color: var(--ink-4); line-height: 1.5; }

.input, .select, .textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: var(--r-s); font-size: 14.5px; color: var(--ink);
  background: #fff; font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.input:hover, .select:hover, .textarea:hover { border-color: #cfd9e6; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27, 95, 190, .12);
}
.input.err, .select.err { border-color: var(--red); box-shadow: 0 0 0 3px rgba(217, 43, 43, .1); }
.textarea { resize: vertical; min-height: 76px; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5L6 8.5L10 4.5' stroke='%237b8593' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }
.input[readonly] { background: #f7f9fc; color: var(--ink-2); }
/* 登录账号身份锁定字段（单位 / 个人申请表单，bindAccountIdentity 预填并锁定） */
.input.acc-locked, .select.acc-locked {
  background: #f1f5fa; color: #46566b; cursor: not-allowed;
}
.select.acc-locked { background-image: none; padding-right: 12px; }
.notice.acc-hint { margin: 0 0 12px; }

.radios { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 3px; }
.radio { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.radio input { accent-color: var(--brand); width: 15px; height: 15px; }

/* 套数录入 */
.units-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; }
.unit-box {
  border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px;
  background: #fff; transition: border-color .15s, background .15s;
}
.unit-box.on { border-color: #bcd5f5; background: var(--brand-xl); }
.unit-box-h { font-size: 13.5px; font-weight: 700; margin-bottom: 2px; }
.unit-box-m { font-size: 12px; color: var(--ink-3); margin-bottom: 9px; }
.unit-box-rows { display: flex; align-items: center; gap: 8px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; background: #fff; }
.stepper button {
  width: 32px; height: 34px; border: none; background: #fff; color: var(--ink-2);
  font-size: 17px; line-height: 1; display: grid; place-items: center;
}
.stepper button:hover { background: var(--brand-l); color: var(--brand-d); }
.stepper input {
  width: 52px; height: 34px; border: none; border-left: 1px solid var(--line);
  border-right: 1px solid var(--line); text-align: center; font-size: 14px;
  font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink);
}
.stepper input:focus { outline: none; background: var(--brand-xl); }
.unit-box-re { margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }

/* 人员明细表（表单内） */
.member-tbl { min-width: 1180px; font-size: 13px; }
.member-tbl th { padding: 9px 8px; font-size: 12.5px; }
.member-tbl td { padding: 7px 6px; }
.member-tbl .input, .member-tbl .select { padding: 6px 9px; font-size: 13px; border-radius: 6px; }
.member-tbl .select { padding-right: 26px; background-position: right 8px center; }
.member-tbl .idx {
  text-align: center; font-weight: 700; color: var(--ink-3);
  font-variant-numeric: tabular-nums; width: 38px;
}
.row-del {
  width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-3); display: grid; place-items: center;
  font-size: 15px; line-height: 1;
}
.row-del:hover { border-color: #f0c4c4; background: var(--red-l); color: var(--red); }

/* ---------------- 上传 ---------------- */

.drop {
  border: 1.5px dashed #c7d5e8; border-radius: var(--r); padding: 24px 18px;
  text-align: center; background: var(--brand-xl); transition: all .18s;
  cursor: pointer;
}
.drop:hover, .drop.over { border-color: var(--brand); background: #eef5ff; }
.drop-ico { font-size: 26px; margin-bottom: 7px; }
.drop-t { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.drop-d { font-size: 12.5px; color: var(--ink-3); }

.up-list { margin-top: 13px; display: flex; flex-direction: column; gap: 8px; }
.up-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--r-s); background: #fff;
}
.up-ico {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
  background: var(--brand-l); color: var(--brand-d); text-transform: uppercase;
}
.up-ico.pdf { background: var(--red-l); color: var(--red); }
.up-ico.xls, .up-ico.xlsx { background: var(--ok-l); color: var(--ok); }
.up-n { font-size: 13.5px; font-weight: 600; word-break: break-all; line-height: 1.4; }
.up-m { font-size: 12px; color: var(--ink-4); }
.up-body { min-width: 0; flex: 1; }
.up-act { margin-left: auto; flex: none; display: flex; gap: 6px; align-items: center; }
.icon-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); display: grid; place-items: center; font-size: 13px;
}
.icon-btn:hover { background: var(--brand-l); color: var(--brand-d); border-color: #c7d5e8; }
.icon-btn.del:hover { background: var(--red-l); color: var(--red); border-color: #f0c4c4; }

/* 必传清单 */
.need-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 9px; }
.need {
  display: flex; align-items: flex-start; gap: 9px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: var(--r-s);
  background: #fff; font-size: 13px;
}
.need-n {
  width: 20px; height: 20px; border-radius: 6px; flex: none; margin-top: 1px;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: #f1f3f6; color: var(--ink-3);
}
.need.done { border-color: #b6e0cd; background: var(--ok-l); }
.need.done .need-n { background: var(--ok); color: #fff; }
.need-t { font-weight: 600; color: var(--ink); }
.need-d { font-size: 12px; color: var(--ink-3); }

/* 材料分槽上传 */
.mat-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; }
.mat-slot {
  display: flex; flex-direction: column; gap: 9px; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
}
.mat-slot.req-empty { border-color: #f0c4c4; background: #fff8f8; }
.mat-slot.done { border-color: #b6e0cd; background: var(--ok-l); }
.mat-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mat-name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.mat-tag { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 20px; }
.mat-tag.must { background: var(--red-l); color: var(--red); }
.mat-tag.cond { background: #fff1d6; color: #b7791f; }
.mat-tag.opt { background: #eef1f5; color: var(--ink-3); }
/* 容缺受理：核心必传 / 可容缺 视觉区分 */
.mat-slot.tol-empty { border-color: #f3d8a3; background: #fffaf0; }
.mat-slot.tol-empty .mat-status { color: #b7791f; }
.mat-tag.mat-core-tag { background: #fde2e1; color: #c0392b; box-shadow: inset 0 0 0 1px #f2b6b3; }
.mat-tag.mat-tol-tag { background: #fff6e6; color: #b45309; box-shadow: inset 0 0 0 1px #f0d29a; }
.mat-tol-hint { margin-top: 2px; font-size: 12px; line-height: 1.6; color: #b45309; background: #fff6e6; border: 1px dashed #f0d29a; border-radius: 6px; padding: 5px 9px; }
.notice.tol-notice { background: #fef3c7; border-color: #f3d8a3; color: #92600a; }
.notice.tol-notice strong { color: #b45309; }
.mat-status { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--ok); display: flex; align-items: center; gap: 3px; }
.mat-slot.req-empty .mat-status { color: var(--red); }
.mat-desc { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.mat-files { display: flex; flex-direction: column; gap: 6px; }
.mat-file { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; }
.mat-file .up-ico { width: 26px; height: 26px; border-radius: 6px; font-size: 10px; flex: none; }
.mat-file-n { font-size: 12.5px; font-weight: 600; min-width: 0; flex: 1; word-break: break-all; line-height: 1.35; }
.mat-file-m { font-size: 11px; color: var(--ink-4); }
.mat-upload {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  border: 1.5px dashed #c7d5e8; border-radius: var(--r-s); background: var(--brand-xl);
  color: var(--brand-d); font-size: 12.5px; font-weight: 600; padding: 7px 12px;
  cursor: pointer; transition: all .18s;
}
.mat-upload:hover { border-color: var(--brand); background: #eef5ff; }
/* 附件3 申请表“按填报生成”按钮：实心品牌色，引导先下载打印盖章再回传 */
.mat-gen-btn {
  display: block; width: 100%; text-align: center;
  margin: 2px 0 8px; padding: 9px 12px;
  border: none; border-radius: var(--r-s);
  background: linear-gradient(135deg, var(--brand), #2f7bf0);
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .2px;
  cursor: pointer; box-shadow: 0 2px 6px rgba(27, 95, 190, .22);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.mat-gen-btn:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(27, 95, 190, .3); }
.mat-gen-btn:disabled { opacity: .65; cursor: wait; transform: none; box-shadow: none; }
.mat-mini-del {
  width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-3); display: grid; place-items: center; font-size: 11px; flex: none;
}
.mat-mini-del:hover { background: var(--red-l); color: var(--red); border-color: #f0c4c4; }

/* 审批端：材料逐项核验 */
.mat-verify-note { font-size: 12.5px; color: var(--ink-3); margin-bottom: 12px; line-height: 1.6; }
.vopts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.vopt {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px;
  border: 1px solid var(--line); border-radius: 20px; padding: 3px 11px;
  cursor: pointer; background: #fff;
}
.vopt input { margin: 0; }
.vopt:has(input:checked) { border-color: var(--brand); background: var(--brand-l); color: var(--brand-d); font-weight: 600; }

/* ---------------- 承诺书 ---------------- */

.pledge {
  background: var(--warn-l); border: 1px solid #f0dcb8; border-radius: var(--r);
  padding: 15px 16px; font-size: 13.5px; line-height: 1.75; color: #6b4a10;
}
.pledge b { color: #4a3308; }
.check { display: flex; align-items: flex-start; gap: 9px; margin-top: 13px; font-size: 13.5px; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--brand); width: 16px; height: 16px; flex: none; }

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 20px; border-radius: var(--r-s); font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent; transition: all .16s; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(27, 95, 190, .24); }
.btn-primary:hover { background: var(--brand-d); box-shadow: 0 4px 14px rgba(27, 95, 190, .3); }
.btn-primary:disabled { background: #b9c6d8; box-shadow: none; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: #c7d5e8; color: var(--brand-d); background: var(--brand-xl); }
.btn-soft { background: var(--brand-l); color: var(--brand-d); }
.btn-soft:hover { background: #dbe9fb; }
.btn-lg { padding: 12px 26px; font-size: 15.5px; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-xs { padding: 4px 9px; font-size: 12px; border-radius: 7px; }
.btn-block { width: 100%; }

.form-actions {
  display: flex; gap: 12px; align-items: center; justify-content: flex-end;
  padding: 16px 18px; background: #fbfcfe; border-top: 1px solid var(--line-2);
}
.form-actions .left { margin-right: auto; font-size: 13px; color: var(--ink-3); }

/* ---------------- 步骤条 ---------------- */

.steps { display: flex; gap: 0; margin-bottom: 20px; overflow-x: auto; padding-bottom: 2px; }
.step { display: flex; align-items: center; gap: 9px; flex: none; }
.step-d {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700;
  background: #e9edf3; color: var(--ink-3);
}
.step.on .step-d { background: var(--brand); color: #fff; }
.step.ok .step-d { background: var(--ok); color: #fff; }
.step-t { font-size: 13.5px; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.step.on .step-t, .step.ok .step-t { color: var(--ink); }
.step-line {
  width: 34px; height: 2px; background: #c7d2e0; margin: 0 10px; flex: none;
  align-self: center; border-radius: 2px;   /* 与圆点垂直居中；2px+深灰保证可见（原 1px 边框灰贴行顶几乎不可见） */
}

/* ---------------- 时间线 ---------------- */

.tl { position: relative; padding-left: 22px; }
.tl::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -22px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--line);
}
.tl-item.on::before { border-color: var(--brand); }
.tl-item.ok::before { border-color: var(--ok); background: var(--ok); }
.tl-t { font-size: 14px; font-weight: 600; }
.tl-d { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }

/* ---------------- 政策 / 列表 ---------------- */

.policy { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.pol {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 15px 16px; box-shadow: var(--shadow);
}
.pol-t { font-size: 14.5px; font-weight: 700; margin-bottom: 6px; display: flex; gap: 8px; align-items: flex-start; }
.pol-t::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; flex: none; margin-top: 8px;
  background: var(--brand);
}
.pol-d { font-size: 13px; color: var(--ink-2); line-height: 1.7; }

/* 周边信息 */
.nearby { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.nb-h { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; display: flex; align-items: center; gap: 6px; }
.nb-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-block; padding: 3.5px 10px; border-radius: 99px;
  background: #f4f6fa; border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2);
}

/* ---------------- 资料下载 ---------------- */

.files { display: flex; flex-direction: column; gap: 11px; }
.file {
  display: flex; align-items: center; gap: 14px; padding: 15px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); transition: all .18s;
}
.file:hover { border-color: #bcd5f5; box-shadow: var(--shadow-h); }
.file-ico {
  width: 44px; height: 44px; border-radius: 11px; flex: none;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
  background: var(--brand-l); color: var(--brand-d); text-transform: uppercase;
}
.file-ico.pdf { background: var(--red-l); color: var(--red); }
.file-ico.excel { background: var(--ok-l); color: var(--ok); }
.file-b { flex: 1; min-width: 0; }
.file-n { font-size: 14.5px; font-weight: 600; line-height: 1.4; word-break: break-all; }
.file-d { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* ---------------- 详情 / 弹层 ---------------- */

.modal {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(14, 19, 27, .5); backdrop-filter: blur(3px);
}
.modal.on { display: flex; }
.modal-box {
  background: #fff; border-radius: var(--r-l); width: 100%; max-width: 860px;
  max-height: 88vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  animation: popIn .22s cubic-bezier(.2, .9, .3, 1.1);
}
@keyframes popIn { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: none; } }
.modal-h {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  border-bottom: 1px solid var(--line); flex: none;
}
.modal-h h3 { font-size: 17px; flex: 1; min-width: 0; }
.modal-x {
  width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-3); font-size: 17px; display: grid; place-items: center;
  flex: none;
}
.modal-x:hover { background: #f4f6fa; color: var(--ink); }
.modal-b { padding: 18px; overflow-y: auto; flex: 1; }
.modal-f {
  padding: 14px 18px; border-top: 1px solid var(--line); flex: none;
  display: flex; gap: 10px; justify-content: flex-end; background: #fbfcfe;
}

/* ---------------- 实名异议弹层（配租公示） ---------------- */
.obj-modal { max-width: 560px; }
.obj-modal .modal-h h3 { display: flex; align-items: center; gap: 8px; }
.obj-target {
  background: #f4f6fa; border: 1px solid var(--line-2); border-radius: var(--r-s);
  padding: 8px 12px; margin-bottom: 14px;
}
.obj-err { color: #d92b2b; font-size: 13px; min-height: 18px; margin-top: 6px; }
.obj-filelist { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.obj-file { border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 8px 10px; }
.obj-file.is-fail { border-color: #f0c2c2; background: #fdf3f3; }
.obj-file.is-fail .up-m { color: #d92b2b; }
@media (max-width: 640px) { .obj-modal { max-width: 100%; } .obj-overlay { padding: 0; align-items: flex-end; } .obj-modal { max-height: 92vh; border-radius: 16px 16px 0 0; } }

/* 详情网格 */
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.dl > div { padding: 11px 13px; border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2); }
.dl dt { font-size: 12px; color: var(--ink-3); margin-bottom: 2px; }
.dl dd { margin: 0; font-size: 14px; font-weight: 600; word-break: break-all; }

/* ---------------- Toast ---------------- */

.toast-wrap {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 500; display: flex; flex-direction: column; gap: 9px; align-items: center;
  pointer-events: none; width: min(94vw, 460px);
}
.toast {
  background: #1e2836; color: #fff; padding: 11px 18px; border-radius: 10px;
  font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
  animation: toastIn .22s ease; max-width: 100%; line-height: 1.5;
}
.toast.ok { background: #0f7a58; }
.toast.err { background: #b82626; }
.toast.warn { background: #a86400; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------------- 空状态 / 提示条 ---------------- */

.empty { text-align: center; padding: 46px 20px; color: var(--ink-3); }
.empty-ico {
  width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 13px;
  display: grid; place-items: center; background: #f1f5fa; color: #9aa8ba;
}
.empty-ico svg { width: 28px; height: 28px; }
.empty-t { font-size: 15px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.empty-d { font-size: 13px; }

.notice {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
  border-radius: var(--r-s); font-size: 13.5px; line-height: 1.65;
}
.notice.info { background: var(--brand-l); color: #12488f; }
.notice.warn { background: var(--warn-l); color: #7a4c00; }
.notice.ok { background: var(--ok-l); color: #0b5c42; }
.notice .ni { flex: none; font-size: 15px; line-height: 1.4; }

/* ---------------- #37 入住人报备弹层 ---------------- */
.occ-quota-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.occ-quota {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #f7f9fc; min-width: 132px; font-size: 12.5px; color: #5b6472;
}
.occ-quota .qn { font-weight: 700; color: #1f2733; }
.occ-quota.ok { background: var(--ok-l); border-color: #9bd8c4; color: #0b5c42; }
.occ-quota.lack { background: var(--warn-l); border-color: #f0d3a1; color: #92600a; }
.occ-quota.total { background: var(--brand-l); border-color: #b9d6f5; color: #12488f; margin-left: auto; }
.occ-rows { display: flex; flex-direction: column; gap: 12px; }
.occ-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 4px; background: #fff; }
.occ-row-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.occ-row-h b { font-size: 14px; color: var(--brand); }
.occ-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.occ-grid .field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 8px; }
.occ-grid .field span { font-size: 12.5px; color: #5b6472; }
.occ-grid .field span i { color: #d92b2b; font-style: normal; }
.occ-grid .input, .occ-grid .select { width: 100%; }
@media (max-width: 560px) { .occ-grid { grid-template-columns: 1fr; } .occ-quota.total { margin-left: 0; } }

/* ---------------- 统计看板 ---------------- */

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.stat-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.stat-h {
  padding: 13px 16px; border-bottom: 1px solid var(--line-2);
  font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 8px;
  background: #fbfcfe;
}
.stat-h .badge { margin-left: auto; }
.stat-b { padding: 16px; }

.barchart { display: flex; flex-direction: column; gap: 11px; }
.bc-row { display: grid; grid-template-columns: 118px 1fr 62px; gap: 11px; align-items: center; font-size: 13px; }
.bc-l { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-v { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }

/* 简易柱状趋势 */
.trend { display: flex; align-items: flex-end; gap: 8px; height: 132px; padding-top: 8px; }
.trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.trend-bar {
  width: 100%; max-width: 46px; border-radius: 6px 6px 2px 2px; min-height: 3px;
  background: linear-gradient(180deg, #4e93ea, var(--brand));
  transition: height .5s ease; position: relative;
}
.trend-v { font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.trend-x { font-size: 11px; color: var(--ink-4); white-space: nowrap; }

/* ---------------- 结果页 ---------------- */

.result { text-align: center; padding: 40px 22px; }
.result-ico {
  width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; font-size: 30px;
  background: var(--ok-l); color: var(--ok);
}
.result-ico.warn { background: var(--warn-l); color: var(--warn); }
.result h2 { font-size: 21px; margin-bottom: 7px; }
.result p { font-size: 14px; color: var(--ink-2); }
.result .no {
  display: inline-block; margin: 15px 0; padding: 11px 22px;
  background: var(--brand-xl); border: 1px dashed #bcd5f5; border-radius: var(--r-s);
  font-size: 19px; font-weight: 700; color: var(--brand-d); letter-spacing: .06em;
}

/* ---------------- 页脚 ---------------- */

.footer {
  border-top: 1px solid var(--line); background: #fff; margin-top: 34px;
  padding: 22px 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.9;
}
.footer b { color: var(--ink-2); }

/* ---------------- 移动端底部 Tab ---------------- */

.tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.tabbar a {
  padding: 8px 4px 7px; text-align: center; color: var(--ink-3);
  font-size: 10.5px; display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.tabbar a i { font-size: 19px; font-style: normal; line-height: 1.1; }
.tabbar a.on { color: var(--brand); }

/* ==========================================================================
   视觉增强层：实景图文、户型可视化、配套图标、行动条
   ========================================================================== */

.svgi { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; fill: none;
        stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- 项目实景图文 ---------------- */

.figure-row {
  display: grid; grid-template-columns: 1.08fr 1fr; gap: 16px; align-items: stretch;
}
.figure {
  position: relative; border-radius: var(--r-l); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background: #dfe7f2; min-height: 300px;
}
.figure img { width: 100%; height: 100%; object-fit: cover; display: block;
              transition: transform .5s ease; }
.figure:hover img { transform: scale(1.035); }
.figure-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 18px 15px;
  background: linear-gradient(180deg, rgba(6, 22, 46, 0) 0%, rgba(6, 22, 46, .82) 100%);
  color: #fff; font-size: 13px; display: flex; align-items: center; gap: 8px;
}
.figure-cap b { font-size: 14.5px; }
.figure-cap .badge {
  background: rgba(255, 255, 255, .18); color: #fff;
  border: 1px solid rgba(255, 255, 255, .3); margin-left: auto;
}
.figure-tag {
  position: absolute; left: 14px; top: 14px;
  background: rgba(8, 24, 48, .72); backdrop-filter: blur(8px);
  color: #fff; font-size: 11.5px; font-weight: 600;
  padding: 5px 11px; border-radius: 99px;
  display: flex; align-items: center; gap: 6px;
}
.figure-tag i { width: 5px; height: 5px; border-radius: 50%; background: #5ee6b0; flex: none; }

/* 指标网格（图文右侧） */
.kpi-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.kpi-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 15px 16px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 2px;
  transition: border-color .18s, transform .18s;
}
.kpi-card:hover { border-color: #bcd5f5; transform: translateY(-2px); }
.kpi-ico {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-l); color: var(--brand); margin-bottom: 8px;
}
.kpi-ico svg { width: 18px; height: 18px; }
.kpi-card.g .kpi-ico { background: var(--ok-l); color: var(--ok); }
.kpi-card.r .kpi-ico { background: var(--red-l); color: var(--red); }
.kpi-card.w .kpi-ico { background: var(--warn-l); color: var(--warn); }
.kpi-n { font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.kpi-n small { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-left: 3px; }
.kpi-card.r .kpi-n { color: var(--red); }
.kpi-card.g .kpi-n { color: var(--ok); }
.kpi-card.b .kpi-n { color: var(--brand); }
.kpi-t { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.kpi-s { font-size: 11.5px; color: var(--ink-4); }

/* ---------------- 户型可视化卡片 ---------------- */

.house-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.house-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 20px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.house-card:hover { box-shadow: var(--shadow-h); transform: translateY(-3px); border-color: #bcd5f5; }
.house-card.top::after {
  content: '主力户型'; position: absolute; right: -34px; top: 15px;
  background: linear-gradient(90deg, #e08b1a, #f0a93a); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 38px;
  transform: rotate(38deg); letter-spacing: .5px;
}
.hc-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.hc-ring { position: relative; width: 68px; height: 68px; flex: none; }
.hc-ring svg { width: 68px; height: 68px; transform: rotate(-90deg); }
.hc-ring .bg { stroke: #eef2f7; stroke-width: 6; fill: none; }
.hc-ring .fg {
  stroke: url(#ringGrad); stroke-width: 6; fill: none; stroke-linecap: round;
  transition: stroke-dashoffset .8s cubic-bezier(.22, .8, .3, 1);
}
.hc-ring-txt {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 15px; font-weight: 700; color: var(--brand-d); letter-spacing: -.02em;
}
.hc-name { font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.hc-area { font-size: 13px; color: var(--ink-3); }
.hc-floors { font-size: 11.5px; color: var(--ink-4); margin-top: 3px; }
.hc-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hc-cell {
  background: var(--brand-xl); border-radius: var(--r-s); padding: 9px 10px; text-align: center;
}
.hc-cell.c2 { background: var(--red-l); }
.hc-cell.c3 { background: var(--ok-l); }
.hc-cell d { display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 2px; }
.hc-cell b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hc-cell.c2 b { color: var(--red); }
.hc-cell.c3 b { color: var(--ok); }
.hc-bar { margin-top: 13px; }
.hc-bar-t {
  display: flex; justify-content: space-between; font-size: 11.5px;
  color: var(--ink-3); margin-bottom: 5px;
}
.hc-bar-t b { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------------- 项目介绍（图标卡片）---------------- */

.intro-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.intro-card {
  border: 1px solid var(--line-2); border-radius: var(--r); padding: 16px 17px;
  background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
  border-left: 3px solid var(--brand);
}
.intro-card.wide { grid-column: 1 / -1; }
.intro-card.t1 { border-left-color: var(--ok); }
.intro-card.t2 { border-left-color: #5b46b8; }
.intro-card.t3 { border-left-color: var(--warn); }
.intro-h {
  display: flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 700; margin-bottom: 9px; color: var(--ink);
}
.intro-h .ic {
  width: 29px; height: 29px; border-radius: 9px; flex: none;
  display: grid; place-items: center; background: var(--brand-l); color: var(--brand);
}
.intro-h .ic svg { width: 16px; height: 16px; }
.intro-card.t1 .intro-h .ic { background: var(--ok-l); color: var(--ok); }
.intro-card.t2 .intro-h .ic { background: #f0edfb; color: #5b46b8; }
.intro-card.t3 .intro-h .ic { background: var(--warn-l); color: var(--warn); }
.intro-b p {
  font-size: 13.2px; color: var(--ink-2); line-height: 1.88; margin-bottom: 7px;
}
.intro-b p:last-child { margin-bottom: 0; }

/* ---------------- 周边配套（图标分类）---------------- */

.nearby-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.nb-cat {
  border: 1px solid var(--line); border-radius: var(--r); padding: 14px 15px;
  background: #fff; transition: border-color .18s;
}
.nb-cat:hover { border-color: #cfe0f6; }
.nb-h {
  display: flex; align-items: center; gap: 8px; font-size: 13.5px;
  font-weight: 700; color: var(--ink); margin-bottom: 10px;
}
.nb-h .ic {
  width: 28px; height: 28px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: var(--brand-l); color: var(--brand);
}
.nb-h .ic svg { width: 15px; height: 15px; }
.nb-h em { font-style: normal; font-size: 11.5px; color: var(--ink-4); font-weight: 500; margin-left: auto; }
.nb-cat.t2 .nb-h .ic { background: var(--red-l); color: var(--red); }
.nb-cat.t3 .nb-h .ic { background: var(--ok-l); color: var(--ok); }
.nb-cat.t4 .nb-h .ic { background: var(--warn-l); color: var(--warn); }
.nb-cat.t5 .nb-h .ic { background: #f0edfb; color: #5b46b8; }
.nb-cat.t6 .nb-h .ic { background: #e6f4fa; color: #1a7b9e; }
.nb-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 12px; padding: 4px 10px; border-radius: 99px;
  background: #f4f7fb; color: var(--ink-2); border: 1px solid #e8eef6;
  white-space: nowrap;
}
.chip.k { background: var(--brand-l); color: var(--brand-d); border-color: #d3e4fa; }
/* 材料清单等长文本 chip：允许折行，避免撑破 grid 轨道（nowrap 仅适用于短标签） */
.nb-list .chip { white-space: normal; line-height: 1.6; }
.chip.g { background: var(--ok-l); color: var(--ok); border-color: #d3ece1; }
.chip.w { background: var(--warn-l); color: var(--warn); border-color: #f3e3c6; }

/* ---------------- 政策要点（编号卡）---------------- */

.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pol {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 17px 18px 17px 19px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.pol::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--brand), #7fb4f2);
}
.pol-n {
  width: 25px; height: 25px; border-radius: 8px; margin-bottom: 9px;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 800;
  background: var(--brand-l); color: var(--brand-d);
}
.pol-t { font-size: 14.5px; font-weight: 700; margin-bottom: 6px; line-height: 1.45; }
.pol-d { font-size: 12.8px; color: var(--ink-3); line-height: 1.72; }

/* ---------------- 行动条 ---------------- */

.cta-band {
  margin-top: 30px; border-radius: var(--r-l); overflow: hidden; position: relative;
  background: linear-gradient(120deg, #10386b 0%, #1b5fbe 55%, #2f7de0 100%);
  color: #fff; padding: 30px 32px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  box-shadow: 0 14px 40px rgba(16, 56, 107, .28);
}
.cta-band::after {
  content: ''; position: absolute; right: -60px; top: -70px;
  width: 250px; height: 250px; border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.cta-band::before {
  content: ''; position: absolute; right: 110px; bottom: -110px;
  width: 190px; height: 190px; border-radius: 50%;
  background: rgba(255, 255, 255, .05);
}
.cta-txt { position: relative; z-index: 1; flex: 1; min-width: 230px; }
.cta-txt h3 { font-size: 21px; margin-bottom: 6px; letter-spacing: -.01em; }
.cta-txt p { font-size: 13.5px; color: rgba(255, 255, 255, .82); line-height: 1.7; }
.cta-act { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; }
.cta-act .btn { border: none; }
.cta-act .btn-white { background: #fff; color: #10386b; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.cta-act .btn-white:hover { background: #eef4fd; }
.cta-act .btn-glass {
  background: rgba(255, 255, 255, .14); color: #fff;
  border: 1px solid rgba(255, 255, 255, .34);
}
.cta-act .btn-glass:hover { background: rgba(255, 255, 255, .24); }

/* ---------------- 表格折叠明细 ---------------- */

details.more {
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  box-shadow: var(--shadow); overflow: hidden;
}
details.more > summary {
  cursor: pointer; list-style: none; padding: 14px 18px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  display: flex; align-items: center; gap: 8px; user-select: none;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after {
  content: ''; width: 7px; height: 7px; margin-left: auto;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translateY(-2px); transition: transform .2s;
}
details.more[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
details.more > summary:hover { background: var(--brand-xl); }

/* 图标统一尺寸 */
.need-n svg { width: 15px; height: 15px; }
.icon-btn svg { width: 14px; height: 14px; }
.drop-ico svg { width: 30px; height: 30px; }
.result-ico svg { width: 30px; height: 30px; }
.notice .ni svg { width: 16px; height: 16px; display: block; }
.notice .ni { display: grid; place-items: center; }
.drop-ico { color: var(--brand); opacity: .72; }
.result-ico svg { stroke-width: 2; }

/* 底部 Tab 图标 */
.tabbar a i svg { width: 21px; height: 21px; display: block; }

/* ================= 报修服务 ================= */

/* 分段切换 */
.rtabs {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px;
  background: #e9eef5; border-radius: 12px;
}
.rtab {
  border: 0; background: transparent; cursor: pointer;
  padding: 9px 22px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  font-family: inherit; transition: all .16s ease;
}
.rtab:hover { color: var(--brand); }
.rtab.on {
  background: #fff; color: var(--brand); font-weight: 700;
  box-shadow: 0 1px 3px rgba(20, 25, 34, .1);
}

/* 报修类别卡片 */
.rcats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rcat {
  display: flex; flex-direction: column; gap: 3px; cursor: pointer;
  padding: 13px 13px 12px; border-radius: 12px;
  background: #fff; border: 1.5px solid var(--line);
  font-family: inherit; text-align: left;
  transition: all .16s ease; position: relative;
}
.rcat:hover { border-color: #b7d2f4; background: var(--brand-xl); }
.rcat.on {
  border-color: var(--brand); background: var(--brand-l);
  box-shadow: 0 0 0 3px rgba(27, 95, 190, .1);
}
.rcat.on::after {
  content: ''; position: absolute; top: 9px; right: 9px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/10px no-repeat;
}
.rcat-i {
  width: 32px; height: 32px; border-radius: 9px; margin-bottom: 5px;
  display: grid; place-items: center; color: var(--brand);
  background: var(--brand-l);
}
.rcat-i svg { width: 17px; height: 17px; }
.rcat.on .rcat-i { background: #fff; }
.rcat-t { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.rcat-d { font-size: 11.5px; color: var(--ink-3); line-height: 1.45; }

/* 紧急程度 */
.rugs { display: flex; gap: 10px; flex-wrap: wrap; }
.rug { position: relative; cursor: pointer; flex: 1 1 180px; }
.rug input { position: absolute; opacity: 0; pointer-events: none; }
.rug-in {
  display: flex; flex-direction: column; gap: 2px;
  padding: 11px 14px; border-radius: 11px;
  background: #fff; border: 1.5px solid var(--line); transition: all .16s ease;
}
.rug:hover .rug-in { border-color: #b7d2f4; }
.rug input:checked ~ .rug-in {
  border-color: var(--brand); background: var(--brand-l);
  box-shadow: 0 0 0 3px rgba(27, 95, 190, .1);
}
.rug-in b { font-size: 13.5px; font-weight: 700; color: var(--ink); font-style: normal; }
.rug-in i { font-size: 11.5px; color: var(--ink-3); font-style: normal; }
.rug input:checked ~ .rug-in b { color: var(--brand-d); }

/* 提交成功横幅 */
.rep-ok {
  display: flex; align-items: center; gap: 14px;
  padding: 17px 20px; margin-bottom: 14px;
  background: linear-gradient(135deg, #e8f6f1 0%, #f2fbf7 100%);
  border: 1px solid #cbe8dc; border-radius: var(--r);
}
.rep-ok-i {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  display: grid; place-items: center; background: var(--ok); color: #fff;
}
.rep-ok-i svg { width: 24px; height: 24px; }
.rep-ok-t { font-size: 16.5px; font-weight: 700; color: #0b5c42; margin-bottom: 3px; }
.rep-ok-d { font-size: 13px; color: #35695a; line-height: 1.6; }

/* 报修单号 */
.rep-no {
  padding: 20px 22px; margin-bottom: 14px; border-radius: var(--r);
  background: linear-gradient(135deg, #0f2f5e 0%, #1b5fbe 100%); color: #fff;
}
.rep-no-l { font-size: 12.5px; color: rgba(255, 255, 255, .74); margin-bottom: 7px; }
.rep-no-v {
  font-size: 27px; font-weight: 800; letter-spacing: .06em;
  font-family: ui-monospace, Menlo, Consolas, monospace; margin-bottom: 12px;
}
.rep-no-h {
  font-size: 12.5px; color: rgba(255, 255, 255, .82); line-height: 1.6;
  padding-top: 11px; border-top: 1px solid rgba(255, 255, 255, .18);
}
.rep-no-h b { color: #fff; }
.rep-no-act { display: flex; gap: 9px; margin-bottom: 14px; flex-wrap: wrap; }
.rep-no-act .btn {
  background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .32);
  font-size: 12.5px; padding: 7px 15px;
}
.rep-no-act .btn:hover { background: rgba(255, 255, 255, .25); border-color: rgba(255, 255, 255, .5); }
.rep-no-act .rep-btn-track { background: #fff; color: var(--brand-d); border-color: #fff; font-weight: 700; }
.rep-no-act .rep-btn-track:hover { background: rgba(255, 255, 255, .88); color: var(--brand-d); }

/* 结果区块 */
.rep-block { margin-bottom: 14px; }
.rep-block-h {
  font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 10px;
  padding-left: 9px; border-left: 3px solid var(--brand); line-height: 1.2;
}

/* 处理进度（横向步骤） */
.rep-steps { margin-bottom: 0; padding: 14px 16px; background: #f8fafd; border-radius: 11px; }
.rep-steps .step-line {
  flex: 1 1 auto; min-width: 14px; height: 2px; margin: 0 10px;
  background: #dde4ee; border-radius: 2px; align-self: center;
}
.rep-steps .step.ok + .step-line,
.rep-steps .step.on ~ .step-line { background: var(--ok); opacity: .45; }
.rep-steps .step-t { font-size: 12.5px; }
.rep-steps .step.on .step-t { color: var(--brand); }
.rep-steps .step.ok .step-t { color: var(--ok); }

/* 状态轨迹时间线 */
.rtl { position: relative; padding-left: 20px; }
.rtl::before {
  content: ''; position: absolute; left: 4.5px; top: 8px; bottom: 8px;
  width: 1.5px; background: var(--line);
}
.rtl-i { position: relative; padding-bottom: 13px; }
.rtl-i:last-child { padding-bottom: 0; }
.rtl-dot {
  position: absolute; left: -20px; top: 5px;
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--brand); border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px var(--brand);
}
.rtl-i.note .rtl-dot { background: var(--warn); box-shadow: 0 0 0 1.5px var(--warn); }
.rtl-t { font-size: 13.5px; color: var(--ink); line-height: 1.55; }
.rtl-m { font-size: 11.5px; color: var(--ink-4); margin-top: 2px; }

/* 查询结果卡片 */
.rep-card { margin-bottom: 14px; }
.rep-card-h {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding-bottom: 13px; margin-bottom: 13px;
  border-bottom: 1px solid var(--line-2);
}
.rep-card-no {
  font-size: 16px; font-weight: 800; color: var(--ink);
  font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .02em;
}
.rep-dl { margin-bottom: 13px; }
.rep-desc {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.8;
  padding: 12px 14px; margin-bottom: 14px;
  background: #f8fafd; border-radius: 10px; border-left: 3px solid #d5e0ee;
}
.rep-dl + .rep-desc { margin-top: 0; }
.rep-card .rep-block { margin-bottom: 12px; }
.rep-card .rep-block:last-child { margin-bottom: 0; }
.rep-files { display: flex; flex-wrap: wrap; gap: 7px; }
.rep-files .chip { text-decoration: none; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 980px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid.g3 { grid-template-columns: repeat(2, 1fr); }
  .figure-row { grid-template-columns: 1fr; }
  .figure { min-height: 240px; }
  .house-cards { grid-template-columns: 1fr; }
  .policy-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 400px; }
  .hero-bg { background-image: url('../images/hero-t.jpg'); }
  .hero h1 { font-size: 33px; }

  .rcats { grid-template-columns: repeat(3, 1fr); }
  .rep-steps { overflow-x: auto; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  body { font-size: 14.5px; }
  .wrap { padding: 0 14px; }
  .nav { display: none; }
  .burger { display: flex; }
  .brand-mark { width: 34px; height: 34px; border-radius: 9px; font-size: 13.5px; }
  .brand-name { font-size: 14.5px; }
  .brand-sub { display: none; }

  .hero {
    padding: 40px 0; min-height: 420px;
    align-items: center;
  }
  .hero-bg {
    background-image: url('../images/hero-m.jpg');
    background-position: center 30%;
  }
  .hero h1 { font-size: 30px; }
  .hero-loc { font-size: 13px; }
  .hero .lead { font-size: 13.5px; }
  .hero-cta { margin-top: 17px; }
  .hero-cta .btn { flex: 1; justify-content: center; min-width: 130px; }
  .hero-meta {
    grid-template-columns: repeat(2, 1fr); margin-top: 20px; gap: 1px;
  }
  .hero-meta div { padding: 11px 14px; font-size: 11.5px; }
  .hero-meta b { font-size: 19px; }

  .entries { grid-template-columns: repeat(3, 1fr); gap: 14px 8px; }
  .entry {
    flex-direction: column; align-items: center; text-align: center;
    gap: 9px; padding: 12px 4px;
    background: transparent; border: none; box-shadow: none;
  }
  .entry::before { display: none; }
  .entry:hover { transform: none; box-shadow: none; border-color: transparent; }
  .entry-ico { width: 54px; height: 54px; border-radius: 16px; }
  .entry-ico svg { width: 26px; height: 26px; }
  .entry-b { flex: none; width: 100%; }
  .entry-t { font-size: 13px; margin-bottom: 0; }
  .entry-d { display: none; }
  .entry-a { display: none; }

  .figure { min-height: 210px; border-radius: var(--r); }
  .figure-cap { padding: 26px 14px 12px; font-size: 12px; }
  .figure-cap b { font-size: 13.5px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .kpi-card { padding: 12px 13px; }
  .kpi-ico { width: 29px; height: 29px; border-radius: 8px; margin-bottom: 6px; }
  .kpi-ico svg { width: 15px; height: 15px; }
  .kpi-n { font-size: 22px; }
  .kpi-t { font-size: 12px; }

  .house-cards { grid-template-columns: 1fr; gap: 11px; }
  .house-card { padding: 16px; border-radius: var(--r); }
  .hc-ring, .hc-ring svg { width: 58px; height: 58px; }
  .hc-ring-txt { font-size: 13.5px; }
  .hc-name { font-size: 16px; }

  .nearby-grid { grid-template-columns: 1fr; gap: 10px; }
  .intro-grid { grid-template-columns: 1fr; gap: 10px; }
  .intro-card { padding: 14px 15px; border-radius: var(--r-s); }
  .intro-h { font-size: 14.5px; }
  .policy-grid { grid-template-columns: 1fr; gap: 10px; }
  .pol { border-radius: var(--r); }

  .cta-band { padding: 22px 20px; gap: 16px; border-radius: var(--r); }
  .cta-txt h3 { font-size: 18px; }
  .cta-act { width: 100%; }
  .cta-act .btn { flex: 1; justify-content: center; }

  .kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi { padding: 13px; }
  .kpi-v { font-size: 21px; }

  .grid, .grid.g3 { grid-template-columns: 1fr; }
  .col-2 { grid-column: span 1; }
  .form-body { padding: 15px; }
  .form-sec-h { padding: 13px 15px; flex-wrap: wrap; }
  .form-sec-d { margin-left: 0; width: 100%; text-align: left; }
  .form-actions { flex-direction: column-reverse; padding: 14px 15px; }
  .form-actions .btn { width: 100%; }
  .form-actions .left { margin-right: 0; width: 100%; text-align: center; }

  .section { padding: 20px 0 0; }
  .sec-title { font-size: 16.5px; }

  /* 人员明细：移动端转卡片 */
  .member-tbl { min-width: 0; }
  .member-tbl thead { display: none; }
  .member-tbl, .member-tbl tbody, .member-tbl tr, .member-tbl td { display: block; width: 100%; }
  .member-tbl tr {
    border: 1px solid var(--line); border-radius: var(--r-s);
    padding: 12px; margin-bottom: 11px; background: #fff;
    box-shadow: 0 1px 3px rgba(20, 25, 34, .04);
  }
  .member-tbl td { border: none; padding: 5px 0; display: flex; align-items: center; gap: 10px; }
  .member-tbl td::before {
    content: attr(data-label); flex: none; width: 88px;
    font-size: 12.5px; color: var(--ink-3); font-weight: 600;
  }
  .member-tbl td .input, .member-tbl td .select { flex: 1; min-width: 0; }
  .member-tbl .idx { text-align: left; width: auto; font-size: 13px; }
  .member-tbl .idx::before { content: ''; width: 0; }
  .member-tbl td.act { justify-content: flex-end; padding-top: 9px; }
  .member-tbl td.act::before { content: ''; width: 0; }
  .row-del { width: 100%; }

  .modal { padding: 0; align-items: flex-end; }
  .modal-box {
    max-width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0;
    animation: sheetIn .26s cubic-bezier(.2, .9, .3, 1);
  }
  @keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }

  .footer { padding: 18px 0 20px; }

  .tabbar { display: block; }
  .view { padding-bottom: 78px; }

  .steps { gap: 0; }
  .step { gap: 5px; }
  .step-d { width: 22px; height: 22px; font-size: 11px; }
  .step-line { width: 14px; margin: 0 3px; }
  .step-t { font-size: 11px; }

  .bc-row { grid-template-columns: 92px 1fr 54px; font-size: 12.5px; }
  .trend { height: 112px; }
  .dl { grid-template-columns: 1fr; }

  /* 报修 */
  .rtabs { display: flex; width: 100%; margin-bottom: 15px; }
  .rtab { flex: 1; padding: 9px 8px; font-size: 13.5px; }
  .rcats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .rcat { padding: 11px 12px; }
  .rcat-i { width: 28px; height: 28px; border-radius: 8px; }
  .rcat-i svg { width: 15px; height: 15px; }
  .rcat-t { font-size: 13px; }
  .rcat-d { display: none; }
  .rug { flex: 1 1 100%; }
  .rug-in { padding: 10px 13px; flex-direction: row; align-items: baseline; gap: 8px; }
  .rep-ok { padding: 15px 16px; gap: 12px; align-items: flex-start; }
  .rep-ok-i { width: 38px; height: 38px; border-radius: 11px; }
  .rep-ok-i svg { width: 21px; height: 21px; }
  .rep-ok-t { font-size: 15px; }
  .rep-no { padding: 17px 18px; }
  .rep-no-v { font-size: 21px; letter-spacing: .03em; }
  .rep-steps { padding: 12px 13px; }
  .rep-card-h { gap: 6px; }
  .rep-card-no { font-size: 14.5px; }
}

@media (max-width: 380px) {
  .kpis { grid-template-columns: 1fr; }
}

/* 确保 hidden 属性始终生效（组件的 display:flex 会覆盖浏览器默认 hidden 样式） */
[hidden] { display: none !important; }

/* ==========================================================================
   申请人（住户）账号：顶栏账号区
   ========================================================================== */

.acct { display: flex; align-items: center; flex: none; }

.acct-login {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 15px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 13.5px; font-weight: 600;
}
.acct-login .svgi { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.acct-login:hover { border-color: #c7d5e8; color: var(--brand); background: var(--brand-xl); }

.acct-user { position: relative; }
.acct-user-btn {
  display: flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 9px 0 6px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff;
}
.acct-user-btn:hover { border-color: #c7d5e8; background: var(--brand-xl); }
.acct-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.acct-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.acct-name {
  font-size: 13px; font-weight: 600; color: var(--ink);
  max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acct-badge { font-size: 10.5px; line-height: 1.5; padding: 0 7px; border-radius: 20px; margin-top: 1px; }
.acct-badge.st-new { background: var(--line-2); color: var(--ink-3); }
.acct-badge.st-rev { background: var(--warn-l); color: var(--warn); }
.acct-badge.st-ok  { background: var(--ok-l); color: var(--ok); }
.acct-badge.st-rej { background: var(--red-l); color: var(--red); }
.acct-caret { width: 13px; height: 13px; color: var(--ink-4); transform: rotate(90deg); }
.acct-caret .svgi, .acct-caret { stroke: currentColor; stroke-width: 2; fill: none; }

.acct-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 172px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-h); padding: 6px; display: none; z-index: 80;
}
.acct-menu.on { display: block; animation: fadeUp .18s ease; }
.acct-menu a, .acct-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 11px; border-radius: var(--r-s); border: none; background: none;
  color: var(--ink-2); font-size: 13.5px; text-align: left;
}
.acct-menu .svgi { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--brand-l); color: var(--brand-d); }

/* ==========================================================================
   登录 / 注册 弹层
   ========================================================================== */

.lock-scroll { overflow: hidden; }

.auth {
  position: fixed; inset: 0; z-index: 400; display: none;
  background: rgba(14, 19, 27, .5); backdrop-filter: blur(3px);
  align-items: center; justify-content: center; padding: 20px;
}
.auth.on { display: flex; animation: authFade .2s ease; }
@keyframes authFade { from { opacity: 0; } to { opacity: 1; } }

.auth-box {
  position: relative; width: 100%; max-width: 420px; max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow-h);
  padding: 26px 26px 24px;
}
.auth-x {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
  border: none; border-radius: 8px; background: var(--line-2); color: var(--ink-3); font-size: 14px;
}
.auth-x:hover { background: var(--line); color: var(--ink); }

.auth-head { text-align: center; margin-bottom: 18px; }
.auth-logo {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-d));
  color: #fff; font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.auth-head h3 { font-size: 19px; }
.auth-head p { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* 分段选择（身份 / 登录方式） */
.seg {
  display: flex; gap: 4px; padding: 4px; background: var(--line-2);
  border-radius: 10px; margin-bottom: 14px;
}
.seg button {
  flex: 1; border: none; background: none; padding: 8px 0; border-radius: 7px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-3);
}
.seg button.on { background: #fff; color: var(--brand-d); box-shadow: 0 1px 3px rgba(20, 25, 34, .08); }
.seg-sm button { font-size: 12.5px; padding: 7px 0; }

/* 登录 / 注册 Tab */
.auth-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.auth-tabs button {
  border: none; background: none; padding: 9px 2px; font-size: 14.5px; font-weight: 600;
  color: var(--ink-3); position: relative;
}
.auth-tabs button.on { color: var(--brand); }
.auth-tabs button.on::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--brand); border-radius: 2px;
}

.auth-tabpane { display: flex; flex-direction: column; gap: 13px; }
.auth-tabpane .field { gap: 5px; }

.code-field { display: flex; gap: 9px; }
.code-field .input { flex: 1; }
.code-btn {
  flex: none; padding: 0 14px; border-radius: var(--r-s); border: 1px solid var(--brand);
  background: #fff; color: var(--brand); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.code-btn:hover { background: var(--brand-xl); }
.code-btn:disabled { border-color: var(--line); color: var(--ink-4); cursor: not-allowed; background: #fff; }

.auth-switch { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.auth-switch button { border: none; background: none; color: var(--brand); font-size: 13px; font-weight: 600; }

.agree { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; cursor: pointer; }
.agree input { margin-top: 3px; flex: none; }
.agree a { color: var(--brand); }
.fld-err { font-size: 12px; color: var(--red); line-height: 1.45; min-height: 0; }

/* ==========================================================================
   人脸识别认证
   ========================================================================== */

.face-head { text-align: center; margin-bottom: 18px; }
.face-head h3 { font-size: 19px; }
.face-head p { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

.face-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.face-frame {
  position: relative; width: 220px; height: 264px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, #0c1c36, #143a6b);
  display: flex; align-items: center; justify-content: center;
}
.face-oval { position: absolute; inset: 0; width: 100%; height: 100%; }
.face-oval-line { fill: none; stroke: rgba(120, 180, 255, .7); stroke-width: 2; stroke-dasharray: 6 6; }
.face-frame.running .face-oval-line { stroke: #4d9bff; animation: ovalPulse 1.3s ease-in-out infinite; }
@keyframes ovalPulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

.face-scan {
  position: absolute; left: 14px; right: 14px; height: 2px;
  background: linear-gradient(90deg, transparent, #5aa6ff, transparent);
  box-shadow: 0 0 12px #4d9bff; top: 18px; opacity: 0;
}
.face-frame.running .face-scan { opacity: 1; animation: faceScanY 1.6s ease-in-out infinite alternate; }
@keyframes faceScanY { from { top: 20px; } to { top: 236px; } }
.face-frame.done { background: linear-gradient(160deg, #0d3a2c, #15603f); }

.face-hint {
  position: absolute; bottom: 12px; left: 10px; right: 10px; text-align: center;
  font-size: 12.5px; color: #cfe2ff;
}

.face-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; }
.face-steps li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-4); }
.fs-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; }
.face-steps li.on { color: var(--brand); }
.face-steps li.on .fs-dot { background: var(--brand); box-shadow: 0 0 0 3px rgba(27, 95, 190, .18); }
.face-steps li.ok { color: var(--ok); }
.face-steps li.ok .fs-dot { background: var(--ok); }

.face-success { text-align: center; padding: 26px 0 10px; }
.face-ok {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--ok-l); color: var(--ok);
  display: flex; align-items: center; justify-content: center;
}
.face-ok .svgi { width: 40px; height: 40px; stroke: var(--ok); stroke-width: 2.4; fill: none; }
.face-success h4 { font-size: 18px; }
.face-success p { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

.face-actions { display: flex; gap: 11px; justify-content: center; margin-top: 20px; }
.face-actions .btn { flex: 1; }

/* ==========================================================================
   报修住户资格门禁
   ========================================================================== */

.gate-card {
  text-align: center; padding: 46px 30px;
  display: flex; flex-direction: column; align-items: center;
}
.gate-ico {
  width: 64px; height: 64px; border-radius: 50%; background: var(--brand-l); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.gate-ico .svgi { width: 30px; height: 30px; stroke: var(--brand); stroke-width: 1.8; fill: none; }
.gate-t { font-size: 18px; font-weight: 700; }
.gate-d { font-size: 13.5px; color: var(--ink-3); margin-top: 8px; max-width: 370px; line-height: 1.7; }
.gate-d b { color: var(--ink-2); }
.gate-actions { display: flex; gap: 11px; margin-top: 22px; flex-wrap: wrap; justify-content: center; }
.gate-note { font-size: 12px; color: var(--ink-4); margin-top: 16px; }

/* ==========================================================================
   新增部分 · 响应式
   ========================================================================== */

@media (max-width: 768px) {
  .acct { margin-left: auto; }
  .burger { margin-left: 0; }
  .acct-meta, .acct-caret { display: none; }
  .acct-user-btn { padding: 0 5px; height: 36px; }
  .acct-login { height: 36px; padding: 0 12px; font-size: 13px; }

  .auth { padding: 12px; }
  .auth-box { padding: 22px 18px; }
  .face-steps { gap: 10px; }
  .gate-card { padding: 34px 18px; }
}

@media print {
  .topbar, .tabbar, .footer, .form-actions { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  /* 减少动态效果：直接呈现终态，避免视图/遮罩停在淡入动画的透明起始帧（白屏） */
  .view.on, .acct-menu.on, .auth.on { opacity: 1 !important; transform: none !important; }
}

/* ===================== 房源公告（集中分配 / 零散房源） ===================== */
.bc-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.bc-tab { padding: 9px 20px; border-radius: 999px; border: 1px solid #d7e0ec; background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; transition: .18s; }
.bc-tab:hover { border-color: var(--brand); color: var(--brand); }
.bc-tab.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 3px 10px rgba(27, 95, 190, .25); }
.bc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bc-card { background: #fff; border: 1px solid #e6ecf4; border-radius: 14px; padding: 18px 18px 15px; display: flex; flex-direction: column; transition: .2s; box-shadow: 0 1px 3px rgba(16, 56, 107, .04); }
.bc-card:hover { box-shadow: 0 10px 26px rgba(16, 56, 107, .1); transform: translateY(-2px); border-color: #cddcf2; }
.bc-card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.bc-tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; color: #fff; }
.bc-tag.bc-c { background: linear-gradient(145deg, #2f7de1, #1b5fbe); }
.bc-tag.bc-s { background: linear-gradient(145deg, #17b8a6, #0b8a7d); }
.bc-st { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.bc-st.bst-green { background: #e3f6ec; color: #0e9a6b; }
.bc-st.bst-orange { background: #fdf0dd; color: #b06a08; }
.bc-st.bst-gray { background: #eef1f5; color: #7a8699; }
.bc-pin { font-size: 12px; color: #b06a08; background: #fdf0dd; padding: 2px 8px; border-radius: 6px; }
.bc-no { margin-left: auto; font-size: 12px; color: #9aa7b8; }
.bc-title { font-size: 16px; font-weight: 700; color: var(--ink-1); line-height: 1.5; margin-bottom: 5px; }
.bc-summary { font-size: 13px; color: var(--ink-3); line-height: 1.6; margin-bottom: 10px; }
.bc-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.bc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.bc-meta .svgi { width: 15px; height: 15px; stroke: var(--brand); fill: none; stroke-width: 1.8; }
.bc-quotas { font-size: 12.5px; color: var(--brand-d); background: var(--brand-l); border-radius: 8px; padding: 8px 11px; line-height: 1.7; margin-bottom: 12px; }
.bc-card-f { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px dashed #e6ecf4; }
.bc-opentxt { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: #0e9a6b; }
.bc-opentxt .svgi { width: 15px; height: 15px; stroke: #0e9a6b; fill: none; stroke-width: 2; }
.bc-closedtxt { font-size: 13px; color: #9aa7b8; }
@media (max-width: 760px) { .bc-list { grid-template-columns: 1fr; } }

/* 公告详情 */
.bc-detail .bc-detail-h { margin-bottom: 14px; }
.bc-detail-h h2 { font-size: 21px; line-height: 1.45; margin: 12px 0 6px; color: var(--ink-1); }
.bc-detail-h .bc-no { margin: 0; display: block; }
.bc-kvs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #e6ecf4; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.bc-kv { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid #eef2f7; font-size: 13.5px; }
.bc-kv:nth-last-child(-n+2) { border-bottom: 0; }
.bc-kv span { color: var(--ink-3); flex-shrink: 0; }
.bc-kv b { color: var(--ink-1); font-weight: 600; text-align: right; }
.bc-h3 { font-size: 15px; font-weight: 700; margin: 18px 0 9px; padding-left: 10px; border-left: 3px solid var(--brand); }
.bc-para { white-space: pre-wrap; line-height: 1.85; font-size: 14px; color: var(--ink-2); background: #f8fafd; border-radius: 10px; padding: 13px 15px; }
.bc-note { font-size: 13.5px; color: var(--ink-3); background: #f8fafd; border-radius: 10px; padding: 13px 15px; }
.bc-qtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.bc-qtable th, .bc-qtable td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eef2f7; }
.bc-qtable thead th { background: var(--brand-l); color: var(--brand-d); font-weight: 700; }
.bc-qtable tbody tr:last-child td { border-bottom: 0; }
.bc-timeline { display: flex; flex-direction: column; gap: 7px; }
.bc-timeline div { display: flex; gap: 14px; font-size: 13px; }
.bc-timeline span { color: #9aa7b8; flex-shrink: 0; width: 88px; }
.bc-timeline em { font-style: normal; color: var(--ink-2); }
.bc-apply { margin-top: 22px; background: linear-gradient(135deg, #eef5ff, #e6f0ff); border: 1px solid #cddcf2; border-radius: 14px; padding: 18px; text-align: center; }
.bc-apply-tip { font-size: 14px; color: var(--brand-d); margin-bottom: 13px; }
.bc-apply .btn { margin: 0 7px; }
.bc-apply .btn .svgi { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; vertical-align: -3px; margin-right: 4px; }
.bc-apply-off { display: flex; align-items: center; justify-content: center; gap: 8px; background: #f6f8fa; border-color: #e6ecf4; color: var(--ink-3); font-size: 13.5px; }
.bc-apply-off .svgi { width: 17px; height: 17px; stroke: #9aa7b8; fill: none; stroke-width: 1.8; }
@media (max-width: 760px) {
  .bc-kvs { grid-template-columns: 1fr; }
  .bc-kv:nth-last-child(2) { border-bottom: 1px solid #eef2f7; }
  .bc-kv:last-child { border-bottom: 0; }
}

/* 申请表单：分配方式选择 */
.cp-card { border: 1px solid #cddcf2; background: linear-gradient(135deg, #f4f8ff, #eef4fd); border-radius: 13px; padding: 15px 16px; margin-bottom: 18px; }
.cp-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cp-h b { font-size: 15px; color: var(--brand-d); }
.cp-h span { font-size: 12.5px; color: var(--ink-3); }
.cp-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cp-opt { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid #dbe5f2; background: #fff; border-radius: 11px; padding: 13px 14px; cursor: pointer; transition: .16s; margin: 0; }
.cp-opt:hover { border-color: var(--brand); }
.cp-opt.on { border-color: var(--brand); background: #f2f7ff; box-shadow: 0 0 0 3px rgba(27, 95, 190, .08); }
.cp-opt input { margin-top: 3px; accent-color: var(--brand); }
.cp-opt-b { display: flex; flex-direction: column; gap: 3px; }
.cp-opt-b b { font-size: 14.5px; color: var(--ink-1); }
.cp-opt-b span { font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }
.cp-batch { margin-top: 13px; display: grid; grid-template-columns: 220px 1fr; gap: 12px; align-items: center; }
.cp-batch > label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.cp-batch .small { grid-column: 1 / -1; }
@media (max-width: 760px) { .cp-opts { grid-template-columns: 1fr; } .cp-batch { grid-template-columns: 1fr; gap: 7px; } }

/* 首页两张通道入口卡配色 */
.entry.p6 .entry-ico { background: linear-gradient(145deg, #2f7de1 0%, #1b5fbe 100%); box-shadow: 0 6px 15px rgba(27, 95, 190, .32), inset 0 1px 0 rgba(255, 255, 255, .32); }
.entry.p7 .entry-ico { background: linear-gradient(145deg, #17b8a6 0%, #0b8a7d 100%); box-shadow: 0 6px 15px rgba(11, 138, 125, .32), inset 0 1px 0 rgba(255, 255, 255, .32); }
.entry.p8 .entry-ico { background: linear-gradient(145deg, #f7a93b 0%, #ef8f1c 100%); box-shadow: 0 6px 15px rgba(239, 143, 28, .32), inset 0 1px 0 rgba(255, 255, 255, .32); }

/* ---------------- 预约看房 ---------------- */
.vw-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 18px; align-items: start; }
.vw-h { font-size: 17px; font-weight: 700; color: #1f2d3d; margin: 0 0 6px; }
.vw-preset {
  margin-bottom: 16px; padding: 10px 14px; border-radius: 10px;
  background: #eef5ff; border: 1px solid #cfe2ff; color: #1b5fbe;
  font-size: 13.5px; line-height: 1.6;
}
.vw-clear {
  margin-left: 10px; border: 0; background: transparent; cursor: pointer;
  color: #6b7a90; font-size: 12.5px; text-decoration: underline; padding: 0;
}
.vw-clear:hover { color: #d92b2b; }
.vw-myrow { display: flex; gap: 10px; align-items: center; }
.vw-myrow .input { flex: 1; }
/* 预约看房卡片内边距与间距：form-card 为申请表单分节结构设计（padding:0），
   本页无分节结构，需自带内边距，避免标题/输入框贴边拥挤 */
.vw-card { padding: 20px 22px 22px; }
.vw-card .vw-h { margin: 0 0 12px; }
.vw-card .grid { gap: 16px 18px; }
.vw-tips { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.vw-item { border: 1px solid #e8edf3; border-radius: 12px; padding: 12px 14px; margin-top: 12px; background: #fbfcfe; }
.vw-item-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 13.5px; }
.vw-item-r { display: flex; gap: 10px; font-size: 13px; line-height: 1.7; color: #445; }
.vw-item-r > span { flex: 0 0 60px; color: #8a94a6; }
.vw-item-r > em { flex: 1; font-style: normal; color: #2b3648; }
.vws-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.vws-orange { background: #fff3e0; color: #e08214; }
.vws-green { background: #e6f7ee; color: #1a8f5a; }
.vws-gray { background: #eef1f5; color: #7a8699; }
@media (max-width: 760px) {
  .vw-grid { grid-template-columns: 1fr; }
}

/* unit type multi-check (appendix 3) & agent type */
.type-checks{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:2px}
.type-check{display:inline-flex;align-items:center;gap:6px;font-weight:400;margin:0;white-space:nowrap}
.type-check input[type=checkbox]{width:16px;height:16px;margin:0;accent-color:var(--brand,#1b5fbe);flex:none}
.type-check .type-fill{width:150px;margin-left:4px;padding:6px 10px;font-weight:400}
.radio-row{display:flex;flex-wrap:wrap;gap:8px 22px;margin-top:2px}
.radio-row .radio{margin:0;font-weight:400;display:inline-flex;align-items:center;gap:6px}
.radio-row input[type=radio]{accent-color:var(--brand,#1b5fbe)}

/* ===== P2-A notifications (my messages) ===== */
.acct-msg-dot {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 8px;
  border-radius: 999px; background: #d92b2b; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1; flex: none;
}
.msg-menu-badge { margin-left: 6px; font-size: 11px; color: #b45309; font-weight: 600; }
.msg-item {
  background: #fff; border: 1px solid #e3e8f0; border-radius: 12px;
  padding: 14px 16px; margin-bottom: 12px;
}
.msg-item.unread { border-color: #f3d8a3; background: #fffdf5; }
.msg-item-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.msg-item-h b { font-size: 14px; color: #1f2733; }
.msg-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: #d92b2b; flex: none; }
.msg-time { margin-left: auto; font-size: 12px; color: #8a93a3; }
.msg-item-b { margin-top: 8px; font-size: 13px; color: #4a5568; line-height: 1.6; white-space: pre-wrap; }
.msg-item-r { margin-top: 6px; font-size: 12px; color: #8a93a3; }