/* ===== 通用片区资产概览：菜单入口 + 独立模态窗口 ===== */
.asset-modal { position: fixed; inset: 0; z-index: 52; display: flex; align-items: center; justify-content: center;
  padding: 34px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s; }
.asset-modal.open { opacity: 1; visibility: visible; pointer-events: auto; }
.asset-modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.48); backdrop-filter: blur(3px); }
.asset-modal-card { position: relative; width: min(1280px, calc(100vw - 68px)); max-height: min(90vh, 960px);
  overflow: hidden; border: 1px solid rgba(255,255,255,.72); border-radius: 18px; background: #f7f9f8;
  box-shadow: 0 30px 90px rgba(15,23,42,.32); transform: translateY(18px) scale(.985);
  transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.asset-modal.open .asset-modal-card { transform: translateY(0) scale(1); }
.asset-modal-head { height: 84px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px;
  color: #fff; background: linear-gradient(115deg, #123d32, #176149 58%, #2a8062); }
.asset-modal-head span { display: block; margin-bottom: 3px; color: rgba(220,252,231,.72); font-size: 12px; letter-spacing: .16em; }
.asset-modal-head h2 { margin: 0; font-size: 24px; letter-spacing: .02em; }
.asset-modal-head button { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.24); border-radius: 10px;
  background: rgba(255,255,255,.08); color: #fff; font-size: 24px; line-height: 28px; cursor: pointer; }
.asset-modal-head button:hover { background: rgba(255,255,255,.18); }
.asset-modal-body { max-height: calc(min(90vh, 960px) - 84px); overflow-y: auto; padding: 24px 26px 30px; }
.asset-modal-loading,.asset-modal-error { min-height: 360px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; color: #64748b; font-size: 13px; }
.asset-modal-loading i,.asset-network-loading i { width: 24px; height: 24px; border: 3px solid #d8e6df;
  border-top-color: #176149; border-radius: 50%; animation: qn-spin .8s linear infinite; }
.asset-modal-error b { color: #9a3412; font-size: 16px; }
.asset-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 16px;
  padding: 18px 20px; border: 1px solid #dce7e1; border-radius: 14px; background: linear-gradient(120deg,#fff,#eef6f2); }
.asset-hero span,.asset-modal-section-head span { color: #3d8a6d; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.asset-hero h3 { margin: 4px 0 5px; color: #16352b; font-size: 21px; }
.asset-hero p { margin: 0; color: #718079; font-size: 13px; }
.asset-hero > b { flex: none; color: #176149; font-size: 28px; font-weight: 800; }
.asset-modal-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 16px; }
.asset-modal-kpis > div { padding: 15px 16px; border: 1px solid #e2e9e5; border-radius: 12px; background: #fff; }
.asset-modal-kpis b { display: block; color: #173c30; font-size: 21px; }
.asset-modal-kpis span { display: block; margin-top: 4px; color: #89948f; font-size: 12px; }
.asset-modal-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; margin-bottom: 14px; }
.asset-modal-section { padding: 17px 18px; border: 1px solid #e1e8e4; border-radius: 14px; background: #fff; }
.asset-indicator-section { margin-bottom: 14px; }
.asset-indicator-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; }
.asset-indicator-card { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; padding: 15px 16px;
  border: 1px solid #dce7e1; border-radius: 12px; background: linear-gradient(145deg,#fbfdfc,#f4f8f6); }
.asset-indicator-card > div { min-width: 0; }
.asset-indicator-card > div span { display: block; margin-bottom: 5px; color: #78877f; font-size: 11px; }
.asset-indicator-card > div b { color: #28443a; font-size: 14px; line-height: 1.45; }
.asset-indicator-card > strong { align-self: center; color: #176149; font-size: 21px; white-space: nowrap; }
.asset-indicator-card.has-estimate > strong { max-width: 190px; color: #7a5a19; font-size: 14px; line-height: 1.45; text-align: right; white-space: normal; }
.asset-indicator-card.is-pending > strong { color: #9a6a26; font-size: 13px; }
.asset-indicator-card p { grid-column: 1 / -1; margin: 0; color: #89958f; font-size: 11px; line-height: 1.55; }
.asset-indicator-card > small { grid-column: 1 / -1; color: #64756d; font-size: 10px; }
.asset-modal-section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 13px; }
.asset-modal-section-head h3 { margin: 3px 0 0; color: #203b32; font-size: 18px; }
.asset-modal-section-head em { color: #8b9691; font-size: 12px; font-style: normal; }
.asset-land-row { display: grid; grid-template-columns: 88px 1fr 50px 96px; align-items: center; gap: 8px; margin: 10px 0; font-size: 13px; }
.asset-land-row > span { color: #4d5f57; }
.asset-land-row > div { height: 7px; border-radius: 5px; background: #edf2ef; overflow: hidden; }
.asset-land-row i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2f8a68,#70b598); }
.asset-land-row em { color: #65756d; font-style: normal; text-align: right; }
.asset-land-row > b { color: #3e5f52; font-size: 12px; font-weight: 600; text-align: right; }
.asset-land-highlights { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf1ef; }
.asset-land-highlight { padding: 10px 11px; border-radius: 9px; background: #f6f8f7; }
.asset-land-highlight span { display: block; color: #738078; font-size: 11px; }
.asset-land-highlight b { display: block; margin-top: 3px; color: #304b40; font-size: 14px; }
.asset-land-highlight strong { display: block; margin-top: 2px; color: #607169; font-size: 11px; font-weight: 500; }
.asset-readiness-section { margin-bottom: 14px; }
.asset-readiness-section .asset-modal-section-head button { border: 1px solid #b9d2c7; border-radius: 7px; padding: 7px 11px; background: #f4faf7; color: #176149; font-size: 12px; cursor: pointer; }
.asset-readiness-section .asset-modal-section-head button:hover { background: #e8f5ef; }
.asset-readiness-overview { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(360px,.85fr); gap: 14px; margin-bottom: 14px; }
.asset-readiness-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.asset-readiness-summary > div { padding: 14px 15px; border-radius: 10px; border: 1px solid #e5ebe8; background: #fafcfb; }
.asset-readiness-summary b { display: block; font-size: 20px; }
.asset-readiness-summary span { display: block; margin-top: 2px; color: #76847d; font-size: 12px; }
.asset-readiness-summary .ready b { color: #177052; }
.asset-readiness-summary .partial b { color: #a46718; }
.asset-readiness-summary .missing b { color: #a34a46; }
.asset-estimate-summary { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 18px; padding: 13px 16px;
  border: 1px solid #e7c46f; border-radius: 11px; background: linear-gradient(125deg,#fff9e7,#fff2c9); color: #70551b;
  box-shadow: inset 4px 0 #d79c22, 0 5px 14px rgba(132,91,12,.08); }
.asset-estimate-summary > div { grid-row: 1 / 3; min-width: 112px; padding-right: 14px; border-right: 1px solid rgba(171,120,22,.22); }
.asset-estimate-summary small { display: block; color: #8b6c2d; font-size: 10px; font-weight: 700; }
.asset-estimate-summary strong { display: block; margin-top: 2px; color: #9a5d08; font-size: 27px; }
.asset-estimate-summary p { margin: 0; color: #66542c; font-size: 12px; }
.asset-estimate-summary b { color: #9a5d08; font-size: 16px; }
.asset-estimate-summary em { color: #8a7447; font-size: 10px; font-style: normal; line-height: 1.45; }
.asset-readiness-list { display: grid; grid-template-columns: 1fr; gap: 7px; }
.asset-readiness-list > details { min-width: 0; overflow: hidden; border: 1px solid #e4eae7; border-radius: 10px; background: #fcfdfc; font-size: 12px; }
.asset-readiness-list summary { display: grid; grid-template-columns: 72px 28px minmax(0,1fr) minmax(270px,360px) 20px; align-items: center;
  gap: 10px; min-height: 58px; padding: 6px 12px; cursor: pointer; list-style: none; }
.asset-readiness-list summary::-webkit-details-marker { display: none; }
.asset-readiness-list summary::after { content: "＋"; grid-column: 5; grid-row: 1; justify-self: end; color: #7d8b84; font-size: 16px; }
.asset-readiness-list details[open] summary::after { content: "－"; }
.asset-readiness-list i { border-radius: 8px; padding: 2px 5px; font-style: normal; text-align: center; }
.asset-readiness-list .status-ready { background: #e2f5ec; color: #126044; }
.asset-readiness-list .status-partial { background: #fff4d9; color: #925f16; }
.asset-readiness-list .status-missing { background: #fbeaea; color: #97443f; }
.asset-readiness-list summary > span { color: #9aa49f; }
.asset-readiness-list summary > b { overflow: hidden; color: #334a40; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.asset-readiness-result { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 2px 10px; padding: 7px 10px;
  border: 1px solid #ead7a5; border-radius: 8px; background: #fff8e8; font-style: normal; }
.asset-readiness-result > span { grid-row: 1 / 3; color: #8a6b29; font-size: 9px; font-weight: 750; letter-spacing: .08em; }
.asset-readiness-result > b { overflow: hidden; color: #8a560a; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.asset-readiness-result > small { color: #9b865c; font-size: 9px; }
.asset-readiness-result.official { border-color: #b8dfcd; background: #edf8f3; }
.asset-readiness-result.official > span,.asset-readiness-result.official > b { color: #176149; }
.asset-readiness-result.unavailable { border-color: #e5d6d3; background: #fbf5f4; }
.asset-readiness-result.unavailable > span,.asset-readiness-result.unavailable > b { color: #8e514a; }
.asset-indicator-detail { display: grid; gap: 7px; margin: 0 12px 10px; padding: 11px 12px; border-radius: 8px; background: #f5f8f6; }
.asset-indicator-detail p { display: grid; grid-template-columns: 66px 1fr; gap: 9px; margin: 0; color: #65746d; line-height: 1.55; }
.asset-indicator-detail strong { color: #3b554a; }
.asset-indicator-detail span { overflow-wrap: anywhere; }
.asset-network-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.asset-network-kpis > div { padding: 15px 10px; border-radius: 10px; background: #f3f8f5; text-align: center; }
.asset-network-kpis strong { display: block; color: #176149; font-size: 20px; }
.asset-network-kpis span { display: block; margin-top: 4px; color: #77857f; font-size: 12px; }
.asset-network-note { grid-column: 1 / -1; display: block; padding: 8px 10px; border-radius: 8px;
  background: #f5f7f6; color: #77827d; font-size: 9px; line-height: 1.55; }
.asset-network-loading,.asset-network-error { grid-column: 1/-1; min-height: 120px; display: flex; align-items: center;
  justify-content: center; gap: 10px; color: #75827c; font-size: 11px; }
.asset-network-loading i { width: 18px; height: 18px; border-width: 2px; }
.asset-network-error { color: #a16207; line-height: 1.6; text-align: center; }
.asset-community-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; }
.asset-community-card { padding: 13px 14px; border: 1px solid #e3e9e6; border-radius: 11px; background: #fafcfb; }
.asset-community-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.asset-community-head b { color: #263f35; font-size: 15px; }
.asset-community-head span { color: #628074; font-size: 12px; }
.asset-community-pop { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 11px 0 9px; }
.asset-community-pop div { padding: 8px; border-radius: 8px; background: #edf5f1; }
.asset-community-pop strong { display: block; color: #176149; font-size: 16px; }
.asset-community-pop span { display: block; margin-top: 3px; color: #7b8882; font-size: 11px; }
.asset-community-card small { color: #929c97; font-size: 11px; line-height: 1.4; }
.asset-data-note { margin: 13px 0 0; padding: 9px 11px; border-radius: 8px; background: #f8f4e8;
  color: #806c34; font-size: 12px; line-height: 1.5; }
.asset-population-profile-section,.asset-building-profile-section { margin-bottom: 14px; }
.asset-profile-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; margin-bottom: 12px; }
.asset-profile-kpis > div { padding: 14px 15px; border: 1px solid #dce9e3; border-radius: 11px; background: #f2f8f5; }
.asset-profile-kpis b { display: block; color: #176149; font-size: 22px; }
.asset-profile-kpis span { display: block; margin-top: 4px; color: #667970; font-size: 12px; }
.asset-profile-kpis small { display: block; margin-top: 5px; color: #8a9690; font-size: 10px; line-height: 1.4; }
.asset-profile-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; }
.asset-profile-card { overflow: hidden; border: 1px solid #e1e9e5; border-radius: 11px; background: #fbfcfb; }
.asset-profile-card-head { display: flex; justify-content: space-between; padding: 11px 12px; border-bottom: 1px solid #e8eeeb; background: #f3f7f5; }
.asset-profile-card-head b { color: #29443a; font-size: 14px; }
.asset-profile-card-head span { color: #8a9690; font-size: 11px; }
.asset-profile-metrics { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: #e8eeeb; }
.asset-profile-metrics > div { padding: 9px 10px; background: #fff; }
.asset-profile-metrics span { display: block; color: #7d8a84; font-size: 11px; }
.asset-profile-metrics b { display: block; margin-top: 3px; color: #24473a; font-size: 14px; }
.asset-building-community-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; margin-bottom: 13px; }
.asset-building-community-grid > article { padding: 12px; border: 1px solid #e1e8e4; border-radius: 10px; background: #fbfcfb; }
.asset-building-community-grid > article > b { color: #26463a; font-size: 15px; }
.asset-building-community-grid article > div { display: grid; gap: 5px; margin-top: 9px; }
.asset-building-community-grid article span { display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px; border-radius: 6px; background: #f2f6f4; }
.asset-building-community-grid i { color: #6c7b74; font-size: 11px; font-style: normal; }
.asset-building-community-grid strong { color: #285543; font-size: 12px; white-space: nowrap; }
.asset-village-table-wrap { overflow-x: auto; }
.asset-village-table { width: 100%; border-collapse: collapse; color: #41534b; font-size: 12px; }
.asset-village-table th,.asset-village-table td { padding: 8px 9px; border: 1px solid #dfe7e3; text-align: center; }
.asset-village-table th { background: #eef4f1; color: #325045; font-weight: 700; }
.asset-source-line { margin: 12px 0 0; color: #718079; font-size: 11px; line-height: 1.45; }
.asset-source-line.warning { margin-top: 5px; color: #8a6b29; }
.asset-building-ledger-section { margin-bottom: 14px; }
.asset-building-ledger-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 12px; }
.asset-building-ledger-kpis > div { padding: 13px 14px; border: 1px solid #dce8e2; border-radius: 10px; background: #f5f9f7; }
.asset-building-ledger-kpis b { display: block; color: #176149; font-size: 21px; }
.asset-building-ledger-kpis span { display: block; margin-top: 3px; color: #687970; font-size: 11px; }
.asset-building-ledger-kpis small { display: block; margin-top: 3px; color: #8a9690; font-size: 9px; }
.asset-building-ledger-kpis .pending { border-color: #ead8aa; background: #fff9ea; }
.asset-building-ledger-kpis .pending b { color: #9b6413; }
.asset-building-ledger-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 11px; }
.asset-building-ledger-grid > article { min-width: 0; padding: 12px 13px; border: 1px solid #e1e8e4; border-radius: 10px; background: #fbfcfb; }
.asset-ledger-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.asset-ledger-card-head b { color: #29463b; font-size: 13px; }
.asset-ledger-card-head span { color: #8a9690; font-size: 9px; }
.asset-ledger-category-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 5px 8px; }
.asset-ledger-category-list > div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 6px; background: #f1f6f3; }
.asset-ledger-category-list span { overflow: hidden; color: #66776f; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.asset-ledger-category-list b { color: #345848; font-size: 10px; white-space: nowrap; }
.asset-ownership-empty { display: flex; min-height: 88px; flex-direction: column; justify-content: center; gap: 6px; padding: 12px;
  border: 1px dashed #dec889; border-radius: 8px; background: #fffaf0; }
.asset-ownership-empty b { color: #8a5d18; font-size: 13px; }
.asset-ownership-empty span { color: #8c7a57; font-size: 10px; line-height: 1.55; }
@media (min-width: 2000px) {
  .asset-modal-card { width: min(1680px, calc(100vw - 160px)); max-height: min(92vh, 1200px); }
  .asset-modal-body { max-height: calc(min(92vh, 1200px) - 84px); padding: 30px 34px 36px; }
  .asset-modal-section { padding: 21px 23px; }
  .asset-readiness-list > details { font-size: 14px; }
  .asset-readiness-list summary { min-height: 46px; }
  .asset-profile-metrics span,.asset-building-community-grid i,.asset-village-table { font-size: 13px; }
  .asset-profile-metrics b,.asset-building-community-grid strong { font-size: 15px; }
}
@media (max-width: 820px) {
  .asset-modal { padding: 12px; }
  .asset-modal-card { width: calc(100vw - 24px); max-height: calc(100vh - 24px); }
  .asset-modal-body { max-height: calc(100vh - 102px); padding: 16px; }
  .asset-modal-kpis,.asset-community-grid { grid-template-columns: 1fr 1fr; }
  .asset-indicator-grid { grid-template-columns: 1fr; }
  .asset-modal-grid { grid-template-columns: 1fr; }
  .asset-profile-grid,.asset-building-community-grid { grid-template-columns: 1fr; }
  .asset-profile-kpis { grid-template-columns: 1fr; }
  .asset-readiness-overview,.asset-building-ledger-grid { grid-template-columns: 1fr; }
  .asset-building-ledger-kpis { grid-template-columns: 1fr 1fr; }
  .asset-readiness-list summary { grid-template-columns: 64px 24px minmax(0,1fr) 18px; padding: 8px 9px; }
  .asset-readiness-list summary::after { grid-column: 4; grid-row: 1; }
  .asset-readiness-result { grid-column: 1 / -1; grid-row: 2; margin-bottom: 3px; }
  .asset-hero > b { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .asset-modal,.asset-modal-card { transition: none; }
}

.analysis-scope-state { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; padding: 12px 13px;
  border: 1px solid #cfe3d9; border-radius: 10px; background: #f2f8f5; }
.analysis-scope-state b { color: #176146; font-size: 13px; }
.analysis-scope-state span { color: #698078; font-size: 10px; line-height: 1.55; }
.analysis-scope-state.is-clipped { border-color: #fed7aa; background: #fff8ef; }
.analysis-scope-state.is-clipped b { color: #9a4c0d; }
.analysis-unavailable { display: grid; gap: 7px; }
.analysis-unavailable > div { display: grid; grid-template-columns: 82px 1fr; gap: 10px; padding: 9px 10px;
  border: 1px solid #e5e9e7; border-radius: 8px; background: #fafbfa; }
.analysis-unavailable b { color: #4c5d56; font-size: 10px; }
.analysis-unavailable span { color: #8a9691; font-size: 9px; line-height: 1.45; }
