:root {
  color-scheme: light;
  --bg: #f2f5fa;
  --card: rgba(255, 255, 255, 0.93);
  --text: #172033;
  --muted: #778197;
  --line: #e5eaf2;
  --blue: #3370ff;
  --cyan: #13a8a8;
  --green: #25a474;
  --purple: #7c5cff;
  --orange: #e98b2a;
  --red: #df4c5a;
  --radius-xl: 20px;
  --radius-lg: 16px;
  --shadow: 0 12px 36px rgba(31, 50, 84, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(51, 112, 255, 0.06), transparent 27rem),
    radial-gradient(circle at 100% 24%, rgba(19, 168, 168, 0.05), transparent 28rem),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; }
.page-shell { width: min(1600px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 36px; }
.ambient { position: fixed; width: 320px; height: 320px; filter: blur(90px); opacity: .22; pointer-events: none; z-index: -1; }
.ambient-a { left: -130px; top: 28%; background: #b9d4ff; }
.ambient-b { right: -160px; bottom: 4%; background: #bcebe0; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.brand-block { display: flex; align-items: center; gap: 14px; min-width: 295px; }
.brand-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(145deg, #417cff, #285ce7); box-shadow: 0 10px 22px rgba(51, 112, 255, .22); }
.brand-icon svg { width: 32px; height: 32px; }
.brand-icon rect { fill: rgba(255,255,255,.12); stroke: rgba(255,255,255,.45); }
.brand-icon path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.eyebrow { color: #8b95aa; font-size: 10px; font-weight: 750; letter-spacing: .16em; margin-bottom: 5px; }
h1, h2, p { margin-top: 0; }
.brand-block h1 { font-size: 24px; letter-spacing: -.03em; margin-bottom: 0; }
.topbar-meta { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.meta-item { padding-right: 18px; border-right: 1px solid var(--line); }
.meta-item span, .meta-item strong { display: block; white-space: nowrap; }
.meta-item span { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.meta-item strong { font-size: 12px; font-weight: 650; }
.status-pill { display: inline-flex; gap: 7px; align-items: center; color: #98651d; background: #fff7e8; border: 1px solid #f8e4bd; border-radius: 999px; padding: 8px 11px; font-size: 12px; white-space: nowrap; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(233,139,42,.12); }
.primary-action { display: inline-flex; align-items: center; gap: 8px; padding: 11px 15px; border-radius: 12px; background: var(--blue); color: white; font-size: 13px; font-weight: 650; text-decoration: none; box-shadow: 0 8px 18px rgba(51,112,255,.18); transition: transform .16s ease, box-shadow .16s ease; white-space: nowrap; }
.primary-action:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(51,112,255,.24); }
.primary-action svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.preview-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 16px; margin-bottom: 18px; border: 1px solid #f1dfb9; background: #fffaf0; border-radius: 14px; }
.preview-banner div { display: flex; align-items: center; gap: 9px; color: #80591f; font-size: 13px; white-space: nowrap; }
.preview-banner p { margin: 0; color: #9a7950; font-size: 12px; text-align: right; }
.preview-dot { width: 8px; height: 8px; background: var(--orange); border-radius: 50%; }

.kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi-card, .business-card, .observation-card, .pending-property-card, .admin-card {
  background: var(--card);
  border: 1px solid rgba(222, 228, 238, .88);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.kpi-card { position: relative; overflow: hidden; min-height: 132px; padding: 17px; }
.kpi-card::after { content: ""; position: absolute; inset: auto -28px -48px auto; width: 110px; height: 110px; border-radius: 50%; background: currentColor; opacity: .045; }
.kpi-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.kpi-head > span { color: #5d687e; font-size: 12px; font-weight: 650; }
.metric-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; font-style: normal; color: currentColor; background: currentColor; background: color-mix(in srgb, currentColor 10%, white); font-size: 11px; font-weight: 750; }
.kpi-card strong { display: block; font-size: clamp(19px, 1.5vw, 26px); line-height: 1.1; letter-spacing: -.04em; margin-bottom: 9px; color: var(--text); }
.kpi-card .pending-value { font-size: 15px; letter-spacing: -.01em; margin-top: 5px; }
.kpi-card small { display: block; color: #8a94a8; font-size: 10px; line-height: 1.4; }
.tone-blue { color: var(--blue); } .tone-cyan { color: var(--cyan); } .tone-purple { color: var(--purple); }
.tone-orange { color: var(--orange); } .tone-green { color: var(--green); } .tone-red { color: var(--red); }

.business-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 14px; }
.business-card { padding: 20px; min-width: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.section-heading h2 { margin-bottom: 5px; font-size: 18px; letter-spacing: -.025em; }
.section-heading p { margin-bottom: 0; color: var(--muted); font-size: 11px; }
.section-kicker { display: flex; align-items: center; gap: 7px; color: #7b879d; font-size: 10px; font-weight: 750; letter-spacing: .1em; margin-bottom: 7px; }
.unit-dot { width: 8px; height: 8px; border-radius: 50%; }
.unit-dot.hotel { background: var(--blue); box-shadow: 0 0 0 4px rgba(51,112,255,.11); }
.unit-dot.apartment { background: var(--cyan); box-shadow: 0 0 0 4px rgba(19,168,168,.11); }
.data-tag { flex: 0 0 auto; padding: 7px 9px; border-radius: 9px; background: #edf3ff; color: #436fc8; font-size: 10px; font-weight: 700; }
.data-tag.cyan { background: #eaf8f6; color: #2a8178; }
.data-tag.neutral { background: #f2f4f8; color: #717c91; }

.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.metric-strip > div { background: #fbfcfe; padding: 13px; }
.metric-strip span, .submetric-row span, .unit-grid span, .finance-grid span, .contract-stat span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 7px; }
.metric-strip strong { display: block; font-size: 14px; letter-spacing: -.02em; }
.metric-strip .muted-strong { color: #9aa3b4; font-size: 12px; }
.submetric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.submetric-row > div { padding: 10px 12px; background: #f6f8fb; border-radius: 12px; }
.submetric-row strong { font-size: 12px; color: #929bad; }

.visual-grid { display: grid; grid-template-columns: 1fr 175px; gap: 11px; margin-bottom: 12px; }
.chart-panel, .side-panel, .contract-panel { border: 1px solid var(--line); border-radius: 15px; background: #fcfdff; padding: 14px; }
.panel-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.panel-title strong, .panel-title span { display: block; }
.panel-title strong { font-size: 12px; margin-bottom: 3px; }
.panel-title span { color: var(--muted); font-size: 9px; }
.legend { display: flex !important; align-items: center; gap: 6px; }
.legend i { width: 7px; height: 7px; background: var(--blue); border-radius: 50%; }
.line-chart { width: 100%; height: 165px; margin-top: 5px; overflow: visible; }
.chart-grid { stroke: #e8edf4; stroke-width: 1; }
.chart-line { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-area { fill: url(#areaGradient); }
.chart-point { fill: white; stroke: var(--blue); stroke-width: 2.5; }
.chart-label, .chart-value { fill: #8c96aa; font-size: 10px; }
.chart-value { fill: #526078; font-weight: 650; }
.empty-visual { text-align: center; padding: 18px 0 5px; }
.empty-ring { width: 82px; height: 82px; margin: 0 auto 12px; padding: 8px; border-radius: 50%; background: conic-gradient(#dde5f2 0 72%, #f3f5f8 72% 100%); }
.empty-ring::before { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; }
.empty-ring span { position: relative; display: block; margin-top: -46px; color: #8791a3; font-size: 11px; }
.empty-visual p { margin-bottom: 0; color: #9ba4b4; font-size: 9px; line-height: 1.5; }
.notice-row { display: flex; align-items: center; gap: 10px; border-radius: 12px; padding: 10px 12px; }
.notice-row.warning { background: #fff8ec; border: 1px solid #f8e8c7; }
.notice-row.info { background: #eef8ff; border: 1px solid #d9ecf8; margin-top: 12px; }
.notice-icon { flex: 0 0 auto; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: white; color: var(--orange); font-size: 12px; font-weight: 800; box-shadow: 0 2px 8px rgba(31,50,84,.06); }
.notice-row.info .notice-icon { color: #2885b6; }
.notice-row strong, .notice-row span { display: block; }
.notice-row strong { font-size: 10px; margin-bottom: 2px; }
.notice-row span { color: #8b795e; font-size: 9px; line-height: 1.5; }
.notice-row.info span { color: #668298; }

.apartment-core { display: grid; grid-template-columns: 145px 1fr; align-items: center; gap: 16px; padding: 10px 0 16px; }
.occupancy-dial { width: 134px; height: 134px; border-radius: 50%; padding: 10px; background: conic-gradient(var(--cyan) calc(var(--rate) * 1%), #e8eeee 0); }
.occupancy-dial::before { content: ""; display: block; height: 100%; border-radius: 50%; background: white; box-shadow: inset 0 0 0 1px #edf0f2; }
.occupancy-dial > div { position: relative; margin-top: -79px; text-align: center; }
.occupancy-dial strong, .occupancy-dial span { display: block; }
.occupancy-dial strong { font-size: 22px; letter-spacing: -.04em; }
.occupancy-dial span { color: var(--muted); font-size: 10px; margin-top: 3px; }
.unit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.unit-grid > div { background: #f6f9f9; border: 1px solid #ebf0f0; border-radius: 12px; padding: 11px; }
.unit-grid strong { font-size: 18px; }
.unit-grid small { color: var(--muted); font-size: 9px; margin-left: 3px; }
.unit-grid .pending-mini { font-size: 12px; color: #929bad; }
.finance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.finance-grid > div { border-left: 3px solid #dce7e6; padding: 5px 10px; }
.finance-grid strong { display: block; font-size: 10px; color: #8f99aa; }
.contract-panel { display: grid; grid-template-columns: 115px 105px 1fr; gap: 10px; align-items: stretch; }
.contract-stat { border-radius: 12px; padding: 11px; background: #f3f8f7; }
.contract-stat.risk { background: #fff5f2; }
.contract-stat strong { display: block; font-size: 23px; margin-bottom: 4px; color: var(--green); }
.contract-stat.risk strong { color: var(--red); }
.contract-stat small { display: block; color: #8793a4; font-size: 9px; }
.trend-placeholder { padding: 3px 4px 0 8px; }
.placeholder-bars { display: flex; align-items: flex-end; gap: 7px; height: 55px; padding-top: 8px; }
.placeholder-bars i { flex: 1; min-width: 8px; border-radius: 5px 5px 2px 2px; background: #e1e8eb; }
.placeholder-bars i:nth-child(1) { height: 40%; } .placeholder-bars i:nth-child(2) { height: 60%; }
.placeholder-bars i:nth-child(3) { height: 52%; } .placeholder-bars i:nth-child(4) { height: 74%; }
.placeholder-bars i:nth-child(5) { height: 68%; background: #b9dcd7; }

.bottom-grid { display: grid; grid-template-columns: 1fr 310px; gap: 14px; margin-top: 14px; }
.observation-card, .pending-property-card { padding: 18px 20px; }
.section-heading.compact { align-items: center; margin-bottom: 13px; }
.section-heading.compact h2 { margin-bottom: 0; font-size: 16px; }
.observation-list { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.observation-list > div { min-width: 0; padding: 12px; border-right: 1px solid var(--line); }
.observation-list > div:last-child { border-right: 0; }
.mark { display: block; width: 17px; height: 4px; border-radius: 999px; margin-bottom: 9px; }
.mark.blue { background: var(--blue); } .mark.cyan { background: var(--cyan); } .mark.purple { background: var(--purple); }
.mark.orange { background: var(--orange); } .mark.green { background: var(--green); }
.observation-list span { display: block; font-size: 10px; line-height: 1.45; min-height: 29px; }
.observation-list b { display: inline-block; margin-top: 8px; padding: 3px 6px; border-radius: 6px; background: #f2f4f8; color: #8791a3; font-size: 8px; }
.pending-property-card { display: flex; align-items: center; gap: 18px; background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(247,249,252,.95)); }
.property-illustration { width: 92px; height: 92px; display: grid; place-items: center; border-radius: 18px; background: #f1f4f9; }
.property-illustration svg { width: 72px; fill: none; stroke: #a9b3c4; stroke-width: 2; stroke-linejoin: round; }
.pending-property-card span { color: var(--muted); font-size: 10px; }
.pending-property-card h2 { font-size: 22px; margin: 5px 0 3px; }
.pending-property-card p { margin: 0; color: #99a2b2; font-size: 11px; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px 4px 0; color: #98a2b4; font-size: 9px; }

.admin-body { min-height: 100vh; }
.admin-shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 40px 0; }
.admin-shell.narrow { width: min(480px, calc(100% - 36px)); padding-top: 70px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.admin-topbar h1, .admin-card h1 { margin: 7px 0 8px; font-size: 28px; letter-spacing: -.04em; }
.admin-topbar p, .admin-lead { color: var(--muted); font-size: 13px; }
.back-link { display: inline-block; margin-bottom: 24px; color: #657187; font-size: 12px; text-decoration: none; }
.admin-card { padding: 25px; margin-bottom: 16px; }
.admin-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 15px; color: white; background: var(--blue); font-weight: 750; }
.admin-form, .upload-form { display: grid; gap: 14px; }
.admin-form label, .upload-form label { display: grid; gap: 7px; color: #59647a; font-size: 11px; font-weight: 650; }
.admin-form input, .upload-form input, .upload-form select {
  width: 100%; border: 1px solid #dfe5ed; border-radius: 11px; background: #fbfcfe; color: var(--text); padding: 11px 12px; outline: none;
}
.admin-form input:focus, .upload-form input:focus, .upload-form select:focus { border-color: #8eafff; box-shadow: 0 0 0 3px rgba(51,112,255,.09); }
.submit-button, .ghost-button, .danger-link { border: 0; cursor: pointer; }
.submit-button { padding: 12px 15px; border-radius: 11px; background: var(--blue); color: white; font-weight: 700; }
.ghost-button { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; color: #667188; font-size: 11px; }
.upload-form { grid-template-columns: 1fr 1fr 1fr 1.35fr auto; align-items: end; }
.file-field small { color: #9aa3b3; font-size: 9px; font-weight: 500; }
.credential-notice { padding: 18px; border: 1px solid #f1dfb9; border-radius: 13px; background: #fffaf0; }
.credential-notice strong { display: block; margin-bottom: 7px; color: #845d22; }
.credential-notice p, .credential-notice li { color: #8b795e; font-size: 11px; line-height: 1.6; }
.credential-notice ul { margin-bottom: 0; padding-left: 20px; }
.credential-notice code { color: #68502f; }
.flash { padding: 12px 14px; margin-bottom: 14px; border-radius: 11px; font-size: 12px; }
.flash.error { color: #a43d49; background: #fff0f2; border: 1px solid #f4d7dc; }
.flash.success { color: #28775b; background: #edf9f4; border: 1px solid #d3ede2; }
.upload-table-wrap { overflow-x: auto; }
.upload-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.upload-table th { color: #8c96a8; font-size: 9px; text-align: left; font-weight: 650; padding: 9px; border-bottom: 1px solid var(--line); }
.upload-table td { padding: 12px 9px; border-bottom: 1px solid #edf0f4; vertical-align: middle; }
.upload-table td strong, .upload-table td small { display: block; }
.upload-table td small { color: #9aa3b3; margin-top: 4px; }
.upload-table code { font-size: 10px; color: #59667c; }
.status-badge { display: inline-block; max-width: 150px; padding: 5px 7px; border-radius: 7px; font-size: 9px; line-height: 1.35; }
.status-badge.pending_parser { color: #8a621f; background: #fff6e6; }
.status-badge.cancelled { color: #7d8797; background: #f0f2f5; }
.danger-link { padding: 0; color: var(--red); background: none; font-size: 10px; }
.muted-text { color: #a5adba; }
.empty-list { padding: 28px; text-align: center; color: #929cad; background: #f8f9fb; border-radius: 12px; font-size: 11px; }

/* V0.2 compact operating view */
.compact-page { padding-top: 18px; }
.compact-topbar { margin-bottom: 12px; }
.compact-topbar .brand-icon { width: 44px; height: 44px; border-radius: 14px; }
.compact-topbar .brand-block h1 { font-size: 22px; }
.scope-line { margin: 4px 0 0; color: #7f8a9f; font-size: 11px; }
.status-pill.confirmed { color: #237659; background: #edf9f4; border-color: #d0eadf; }
.status-pill.confirmed i { background: var(--green); box-shadow: 0 0 0 4px rgba(37,164,116,.12); }
.status-pill.review { color: #98651d; background: #fff7e8; }
.status-pill.development { color: #586780; background: #f2f5f9; border-color: #e1e6ee; }
.status-pill.development i { background: #8b96a8; box-shadow: 0 0 0 4px rgba(139,150,168,.12); }
.preview-banner.confirmed { background: #f1faf6; border-color: #d4ebdf; }
.preview-banner.confirmed div { color: #27765c; }
.preview-banner.review { background: #fffaf0; }
.preview-banner.development { background: #f7f9fc; border-color: #e2e7ef; }
.preview-banner.development div, .preview-banner.development p { color: #6d788c; }
.compact-page .preview-banner { padding: 10px 14px; margin-bottom: 11px; }
.compact-kpis { gap: 9px; margin-bottom: 10px; }
.compact-kpis .kpi-card { min-height: 106px; padding: 13px 14px; }
.compact-kpis .kpi-head { margin-bottom: 11px; }
.compact-kpis .kpi-card strong { font-size: clamp(16px, 1.35vw, 22px); margin-bottom: 7px; }
.compact-kpis .kpi-card small { font-size: 9px; }
.compact-business { gap: 10px; }
.compact-business .business-card { padding: 16px; }
.compact-business .section-heading { margin-bottom: 12px; }
.compact-business .metric-strip { margin-bottom: 8px; }
.compact-business .metric-strip > div { padding: 10px 11px; }
.hotel-submetrics { grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 8px; }
.hotel-submetrics > div { padding: 8px 10px; }
.compact-visuals { margin-bottom: 0; gap: 8px; }
.compact-visuals .chart-panel, .compact-visuals .side-panel { padding: 11px; }
.compact-visuals .line-chart { height: 126px; }
.compact-apartment { padding: 2px 0 10px; }
.compact-apartment .occupancy-dial { width: 116px; height: 116px; }
.compact-apartment .occupancy-dial > div { margin-top: -69px; }
.compact-apartment .unit-grid > div { padding: 9px 10px; }
.compact-apartment .unit-grid strong { font-size: 16px; }
.compact-contracts { grid-template-columns: repeat(3, 1fr); padding: 10px; }
.compact-contracts .contract-stat { padding: 9px; }
.compact-contracts .contract-stat strong { font-size: 19px; }
.compact-contracts .money-small { font-size: 13px; }
.compact-bottom { margin-top: 10px; }
.compact-bottom .observation-card, .compact-bottom .pending-property-card { padding: 14px 16px; }
.compact-bottom .section-heading { margin-bottom: 9px; }
.compact-bottom .observation-list > div { padding: 9px 10px; }
.compact-bottom .property-illustration { width: 70px; height: 70px; }
.compact-bottom .property-illustration svg { width: 56px; }
.data-tag.confirmed { color: #27765c; background: #eaf7f1; }
.channel-list { display: grid; gap: 8px; padding-top: 14px; }
.channel-list div { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 7px; border-bottom: 1px solid var(--line); font-size: 10px; }
.channel-list span { color: var(--muted); }
.compact-empty { padding: 40px 20px; }

/* V0.2.1 operating comparison */
.v021-page { padding-bottom: 28px; }
.v021-kpis .kpi-card strong { font-size: clamp(14px, 1.12vw, 19px); letter-spacing: -.025em; white-space: nowrap; }
.pending-fields-note {
  display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 8px 12px;
  border: 1px solid #e3e8f0; border-radius: 11px; background: rgba(255,255,255,.65);
  color: #818ca0; font-size: 9px;
}
.pending-fields-note strong { color: #647188; }
.v021-business-grid { grid-template-columns: 1fr; }
.v021-business-grid .business-card { padding: 18px; }
.data-tag.review { color: #98651d; background: #fff4df; }
.v021-finance-strip { grid-template-columns: repeat(6, 1fr); }
.v021-apartment-strip { grid-template-columns: repeat(4, 1fr); }
.v021-finance-strip > div, .v021-apartment-strip > div { min-width: 0; }
.v021-finance-strip span, .v021-apartment-strip span { min-height: 27px; line-height: 1.4; }
.v021-finance-strip strong, .v021-apartment-strip strong { font-size: 13px; white-space: nowrap; }
.commission-metric { background: #fff9ef !important; }
.commission-metric strong { color: #b96d1f; }
.utility-metric { background: #f4fbfa !important; }
.v021-hotel-submetrics { grid-template-columns: repeat(4, 1fr); }
.v021-hotel-submetrics strong { color: #344157; }
.v021-hotel-visuals { grid-template-columns: minmax(0, 1fr) 340px; margin-bottom: 0; }
.v021-line-chart, .commission-chart, .utility-chart { height: 170px; margin-top: 4px; width: 100%; overflow: visible; }
.dual-legend { display: flex !important; align-items: center; gap: 5px; white-space: nowrap; }
.dual-legend i { width: 7px; height: 7px; border-radius: 50%; }
.dual-legend .gross { background: var(--orange); }
.dual-legend .net { margin-left: 7px; background: var(--blue); }
.gross-line { stroke: var(--orange); stroke-width: 2.4; }
.net-line { stroke: var(--blue); stroke-width: 2.4; }
.gross-point { stroke: var(--orange); }
.net-point { stroke: var(--blue); }
.commission-bar { fill: #e9a04f; }
.commission-value { font-size: 9px; fill: #98611f; }
.apartment-trend-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); gap: 9px; margin-top: 9px; }
.legend.cyan i { background: var(--cyan); }
.apartment-area { fill: url(#apartmentGradient); }
.apartment-line { stroke: var(--cyan); }
.apartment-point { stroke: var(--cyan); }
.utility-bar.water { fill: #72c8c1; }
.utility-bar.electricity { fill: #7c5cff; }
.utility-legend { font-size: 9px; font-weight: 650; }
.water-label { fill: #319a91; }
.electricity-label { fill: #7054df; }
.monthly-table-wrap { margin-top: 9px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.monthly-metric-table { width: 100%; border-collapse: collapse; font-size: 9px; }
.monthly-metric-table th, .monthly-metric-table td { padding: 8px 10px; text-align: right; border-bottom: 1px solid #edf0f4; white-space: nowrap; }
.monthly-metric-table th { color: #7d889d; background: #f7f9fc; font-weight: 650; }
.monthly-metric-table th:first-child, .monthly-metric-table td:first-child { text-align: left; }
.monthly-metric-table tbody tr:last-child td { border-bottom: 0; }
.monthly-metric-table tbody tr:last-child { background: #f6faf9; font-weight: 650; }
.utility-scope-note, .preview-scope-note { margin: 8px 0 0; color: #7e899c; font-size: 9px; line-height: 1.55; }
.v021-observations { grid-template-columns: repeat(2, 1fr); }
.portfolio-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.portfolio-preview-grid > div { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #f9fbfd; }
.portfolio-preview-grid span, .portfolio-preview-grid strong { display: block; }
.portfolio-preview-grid span { color: var(--muted); font-size: 9px; margin-bottom: 7px; }
.portfolio-preview-grid strong { font-size: 13px; }
.reconciliation-item.pending-definition { border-color: #f0ddba; background: #fffbf3; }
.reconciliation-item.pending-definition > div span { color: var(--orange); }

/* V0.2 update workflow */
.compact-admin-topbar { margin-bottom: 14px; }
.compact-admin-topbar .back-link { margin-bottom: 14px; }
.workflow-steps {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 16px; padding: 12px 16px; border: 1px solid var(--line);
  border-radius: 15px; background: rgba(255,255,255,.82); box-shadow: var(--shadow);
}
.workflow-steps span { display: inline-flex; align-items: center; gap: 7px; color: #929cad; font-size: 11px; font-weight: 650; white-space: nowrap; }
.workflow-steps span i { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #eef1f5; color: #7f8999; font-style: normal; font-size: 10px; }
.workflow-steps span.active { color: var(--blue); }
.workflow-steps span.active i { color: white; background: var(--blue); }
.workflow-steps span.done { color: var(--green); }
.workflow-steps span.done i { color: white; background: var(--green); }
.workflow-steps b { width: min(70px, 6vw); height: 1px; background: #e1e6ee; }
.v020-upload-form { grid-template-columns: 1fr .8fr 1.35fr 1.35fr auto; }
.recent-batches { padding-bottom: 18px; }
.batch-card-list { display: grid; gap: 9px; }
.batch-row-card { display: grid; grid-template-columns: 1.5fr .8fr auto; align-items: center; gap: 16px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfe; }
.batch-file span, .batch-file strong, .batch-file small, .batch-result small { display: block; }
.batch-file span { color: var(--blue); font-size: 9px; font-weight: 700; margin-bottom: 4px; }
.batch-file strong { font-size: 11px; margin-bottom: 4px; word-break: break-all; }
.batch-file small, .batch-result small { color: #929cad; font-size: 9px; line-height: 1.5; }
.batch-result { display: grid; gap: 5px; justify-items: start; }
.batch-link, .report-link { color: var(--blue); font-size: 10px; text-decoration: none; white-space: nowrap; }
.status-badge.validated { color: #28775b; background: #eaf8f1; }
.status-badge.validation_blocked { color: #9a671c; background: #fff4df; }
.status-badge.validation_failed { color: #a43d49; background: #fff0f2; }
.status-badge.confirmed { color: #28775b; background: #eaf8f1; }
.status-badge.large { padding: 8px 11px; font-size: 11px; }
.preview-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.summary-tile { margin: 0; padding: 16px; }
.summary-tile > span, .summary-tile > strong, .summary-tile > small { display: block; }
.summary-tile > span { color: var(--muted); font-size: 9px; margin-bottom: 8px; }
.summary-tile > strong { font-size: 14px; margin-bottom: 6px; word-break: break-word; }
.summary-tile > small { color: #8e98aa; font-size: 9px; line-height: 1.5; }
.summary-tile.risk { border-color: #f1dfbd; background: #fffaf0; }
.document-list { display: grid; gap: 10px; }
.document-card { border: 1px solid var(--line); border-radius: 13px; background: #fbfcfe; overflow: hidden; }
.document-card summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 14px; cursor: pointer; list-style: none; }
.document-card summary::-webkit-details-marker { display: none; }
.document-card summary strong, .document-card summary small { display: block; }
.document-card summary strong { font-size: 11px; margin-bottom: 4px; }
.document-card summary small, .document-card summary > span { color: #8c96a8; font-size: 9px; }
.sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 13px 13px; }
.sheet-card { padding: 11px; border-radius: 10px; background: white; border: 1px solid #e9edf3; }
.sheet-card strong, .sheet-card span, .sheet-card small { display: block; }
.sheet-card strong { font-size: 10px; margin-bottom: 5px; }
.sheet-card span, .sheet-card small { color: #8994a6; font-size: 8px; line-height: 1.55; }
.reconciliation-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.reconciliation-item { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.reconciliation-item.blocked { border-color: #f0ddba; background: #fffbf3; }
.reconciliation-item.passed { border-color: #d6eadf; background: #f3faf6; }
.reconciliation-item > div { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.reconciliation-item > div strong { font-size: 10px; }
.reconciliation-item > div span { color: var(--orange); font-size: 8px; font-weight: 700; }
.reconciliation-item.passed > div span { color: var(--green); }
.reconciliation-item dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 10px 0 7px; }
.reconciliation-item dl div { padding: 7px; border-radius: 8px; background: rgba(255,255,255,.75); }
.reconciliation-item dt { color: #929cad; font-size: 8px; }
.reconciliation-item dd { margin: 3px 0 0; font-size: 9px; font-weight: 650; }
.reconciliation-item p { margin: 0; color: #8b795e; font-size: 8px; line-height: 1.5; }
.action-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.action-card > div:first-child strong { font-size: 12px; }
.action-card > div:first-child p { max-width: 720px; margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.batch-actions { display: flex; align-items: center; gap: 8px; }
.ghost-button.danger { color: var(--red); }

@media (max-width: 1220px) {
  .page-shell { width: min(1180px, calc(100% - 32px)); }
  .topbar { align-items: flex-start; }
  .topbar-meta { flex-wrap: wrap; gap: 10px 14px; }
  .meta-item:first-child { display: none; }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .business-grid { grid-template-columns: 1fr; }
  .upload-form { grid-template-columns: repeat(2, 1fr); }
  .upload-form .submit-button { min-height: 42px; }
  .preview-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .v021-finance-strip { grid-template-columns: repeat(3, 1fr); }
  .v021-hotel-visuals { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 760px) {
  .page-shell { width: min(100% - 24px, 680px); padding-top: 18px; }
  .topbar { display: block; }
  .topbar-meta { justify-content: flex-start; margin-top: 16px; }
  .meta-item { display: none; }
  .preview-banner { display: block; }
  .preview-banner p { text-align: left; margin-top: 7px; line-height: 1.5; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .business-card { padding: 16px; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .visual-grid { grid-template-columns: 1fr; }
  .side-panel { display: none; }
  .apartment-core { grid-template-columns: 1fr; justify-items: center; }
  .unit-grid { width: 100%; }
  .finance-grid { grid-template-columns: 1fr; }
  .contract-panel { grid-template-columns: 1fr 1fr; }
  .trend-placeholder { grid-column: 1 / -1; }
  .bottom-grid { grid-template-columns: 1fr; }
  .observation-list { grid-template-columns: 1fr; }
  .observation-list > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .observation-list > div:last-child { border-bottom: 0; }
  footer { display: block; line-height: 1.8; }
  .admin-topbar { display: block; }
  .upload-form { grid-template-columns: 1fr; }
  .workflow-steps b { width: 14px; }
  .workflow-steps span { font-size: 0; gap: 0; }
  .workflow-steps span i { font-size: 10px; }
  .batch-row-card { grid-template-columns: 1fr; }
  .sheet-grid, .reconciliation-list { grid-template-columns: 1fr; }
  .action-card { display: block; }
  .batch-actions { margin-top: 14px; }
  .pending-fields-note { display: block; line-height: 1.6; }
  .pending-fields-note strong { display: block; }
  .v021-finance-strip, .v021-apartment-strip { grid-template-columns: repeat(2, 1fr); }
  .v021-hotel-visuals, .apartment-trend-layout { grid-template-columns: 1fr; }
  .v021-observations, .portfolio-preview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .brand-block h1 { font-size: 20px; }
  .brand-icon { width: 43px; height: 43px; }
  .status-pill { display: none; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-card { min-height: 118px; }
  .submetric-row { grid-template-columns: 1fr; }
  .contract-panel { grid-template-columns: 1fr; }
  .pending-property-card { padding: 16px; }
  .preview-summary-grid { grid-template-columns: 1fr; }
  .hotel-submetrics { grid-template-columns: repeat(2, 1fr); }
  .v021-finance-strip, .v021-apartment-strip { grid-template-columns: 1fr; }
  .v021-kpis .kpi-card strong { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* V0.2.3 Feishu-density long dashboard */
.v022-page {
  width: min(1440px, calc(100% - 48px));
  padding: 22px 0 34px;
  overflow-x: clip;
}
.v022-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 64px;
  margin-bottom: 12px;
}
.v022-brand p {
  margin: 0 0 5px;
  color: #8792a6;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .04em;
}
.v022-brand h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -.035em;
}
.v022-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
}
.header-meta {
  padding-right: 15px;
  border-right: 1px solid var(--line);
}
.header-meta span,
.header-meta strong {
  display: block;
  white-space: nowrap;
}
.header-meta span {
  margin-bottom: 4px;
  color: #8a95a8;
  font-size: 9px;
}
.header-meta strong {
  font-size: 11px;
  font-weight: 650;
}
.v022-status-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  margin-bottom: 14px;
  padding: 9px 14px;
  border: 1px solid #f0dfbf;
  border-radius: 13px;
  background: rgba(255, 250, 240, .9);
  color: #8b6429;
  font-size: 11px;
}
.v022-status-strip span::before {
  content: "｜";
  margin-right: 9px;
  color: #d8bd8e;
}
.v022-status-strip p {
  margin: 0 0 0 auto;
  color: #8b826f;
  white-space: nowrap;
}
.global-kpi-section {
  margin-bottom: 16px;
}
.section-line-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}
.section-line-title h2 {
  margin: 2px 0 0;
  font-size: 17px;
  letter-spacing: -.025em;
}
.section-eyebrow {
  color: #7e899d;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .12em;
}
.section-eyebrow.hotel { color: var(--blue); }
.section-eyebrow.apartment { color: var(--cyan); }
.freshness-label {
  color: #8e98aa;
  font-size: 9px;
}
.v022-global-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}
.v022-kpi {
  position: relative;
  min-width: 0;
  min-height: 108px;
  overflow: hidden;
  padding: 14px 15px;
  border: 1px solid rgba(222, 228, 238, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 8px 26px rgba(31, 50, 84, .045);
}
.v022-kpi::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -48px;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: currentColor;
  opacity: .045;
}
.v022-kpi > span,
.v022-kpi > strong,
.v022-kpi > small {
  position: relative;
  z-index: 1;
  display: block;
}
.v022-kpi > span {
  min-height: 30px;
  color: #58647a;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}
.v022-kpi > strong {
  margin: 7px 0 6px;
  color: var(--text);
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.v022-kpi > small {
  color: #8b95a8;
  font-size: 9px;
  line-height: 1.4;
}
.v022-kpi.blue { color: var(--blue); }
.v022-kpi.teal { color: var(--cyan); }
.v022-kpi.purple { color: var(--purple); }
.v022-kpi.commission { color: #c27a2c; }
.v022-kpi.green { color: var(--green); }
.v022-kpi.orange { color: var(--orange); }
.finance-pending-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding: 8px 12px;
  border: 1px solid #e3e8f0;
  border-radius: 11px;
  background: rgba(255, 255, 255, .66);
  color: #818ca0;
  font-size: 9px;
}
.finance-pending-note strong { color: #627087; }
.v022-business-section {
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid rgba(222, 228, 238, .92);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}
.business-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 88px;
  padding: 17px 20px;
  border-bottom: 1px solid #e8ecf2;
}
.business-section-head h2 {
  margin: 4px 0 4px;
  font-size: 20px;
  letter-spacing: -.03em;
}
.business-section-head p {
  margin: 0;
  color: #808ba0;
  font-size: 10px;
}
.section-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: #8792a5;
  font-size: 9px;
  white-space: nowrap;
}
.section-toggle {
  min-width: 54px;
  padding: 7px 10px;
  border: 1px solid #dfe5ee;
  border-radius: 9px;
  background: #f9fafc;
  color: #68758a;
  cursor: pointer;
  font-size: 9px;
  font-weight: 650;
}
.section-toggle:hover {
  border-color: #cbd7eb;
  background: #f3f6fb;
}
.section-toggle:focus-visible {
  outline: 3px solid rgba(51, 112, 255, .14);
  outline-offset: 2px;
}
.section-collapsible {
  padding: 16px 18px 18px;
}
.section-collapsible[hidden] {
  display: none;
}
.business-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  background: #e3e8ef;
}
.business-kpi-grid article {
  min-width: 0;
  min-height: 92px;
  padding: 12px;
  background: #fbfcfe;
}
.business-kpi-grid article > span,
.business-kpi-grid article > strong,
.business-kpi-grid article > small {
  display: block;
}
.business-kpi-grid article > span {
  min-height: 25px;
  color: #737e92;
  font-size: 9px;
  line-height: 1.4;
}
.business-kpi-grid article > strong {
  margin: 7px 0 5px;
  overflow: hidden;
  color: #263248;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.business-kpi-grid article > small {
  color: #929bac;
  font-size: 8px;
  line-height: 1.4;
}
.business-kpi-grid .pending-metric {
  background: #f8f9fb;
}
.business-kpi-grid .pending-metric > strong {
  color: #8d97a8;
  font-size: 11px;
  letter-spacing: 0;
}
.business-kpi-grid .commission-kpi {
  background: #fffaf1;
}
.business-kpi-grid .commission-kpi > strong { color: #b87327; }
.business-kpi-grid .utility-kpi {
  background: #f2fbf9;
}
.business-kpi-grid .utility-kpi > strong { color: #238f87; }
.chart-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(360px, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
.analysis-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2e7ef;
  border-radius: 16px;
  background: #fcfdff;
}
.analysis-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 13px 14px 8px;
}
.analysis-card-head h3 {
  margin: 4px 0 3px;
  font-size: 13px;
  letter-spacing: -.015em;
}
.analysis-card-head p {
  margin: 0;
  color: #8a95a7;
  font-size: 8px;
}
.priority-tag {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #edf3ff;
  color: #4774d6;
  font-size: 7px;
  font-weight: 750;
  letter-spacing: .04em;
}
.priority-tag.supplement {
  background: #eaf8f5;
  color: #278e85;
}
.priority-tag.neutral {
  background: #f0f2f6;
  color: #768197;
}
.legend-inline,
.legend-pair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: #7d889c;
  font-size: 8px;
  white-space: nowrap;
}
.legend-inline i,
.legend-pair i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.legend-inline.blue i { background: var(--blue); }
.legend-inline.teal i { background: var(--cyan); }
.legend-pair i.water { background: var(--cyan); }
.legend-pair i.electricity {
  margin-left: 6px;
  background: var(--purple);
}
.chart-stage {
  position: relative;
  width: 100%;
  padding: 0 10px 10px;
}
.chart-stage.large {
  height: 258px;
}
.chart-stage canvas {
  width: 100% !important;
  height: 100% !important;
}
.pending-p0-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 10px;
}
.pending-analysis {
  min-height: 116px;
  background: #fafbfc;
}
.pending-analysis .analysis-card-head {
  min-height: 55px;
  padding-bottom: 4px;
}
.pending-analysis .analysis-card-head h3 {
  font-size: 11px;
}
.pending-chip {
  flex: 0 0 auto;
  padding: 4px 6px;
  border-radius: 7px;
  background: #f0f2f5;
  color: #8a94a4;
  font-size: 7px;
  font-weight: 650;
}
.pending-analysis-body {
  display: grid;
  gap: 4px;
  padding: 8px 14px 13px;
}
.pending-analysis-body strong {
  color: #7e899b;
  font-size: 9px;
  font-weight: 650;
}
.pending-analysis-body span {
  color: #99a2b1;
  font-size: 8px;
  line-height: 1.45;
}
.future-analysis {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  background: #f9fafc;
}
.future-analysis > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  padding: 12px;
  border-right: 1px solid #e3e8ef;
}
.future-analysis > div strong {
  color: #667287;
  font-size: 9px;
}
.future-analysis ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.future-analysis li {
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid #e8ecf2;
  color: #626e83;
  font-size: 9px;
}
.future-analysis li:last-child { border-right: 0; }
.future-analysis li small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #9aa3b2;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.apartment-pending-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.utility-scope-note {
  margin: 0 0 10px;
  padding: 8px 11px;
  border-radius: 10px;
  background: #f2f9f8;
  color: #668b87;
  font-size: 8px;
  line-height: 1.5;
}
.future-analysis .apartment-future-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.future-analysis .apartment-future-list li:nth-child(-n+4) {
  border-bottom: 1px solid #e8ecf2;
}
.v022-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
}
.v022-observation-card,
.v022-property-card {
  padding: 17px 18px;
  border: 1px solid rgba(222, 228, 238, .92);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}
.v022-observation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e4e9f0;
  border-radius: 12px;
}
.v022-observation-list > div {
  min-width: 0;
  padding: 11px 12px;
  border-right: 1px solid #e8ecf2;
}
.v022-observation-list > div:last-child { border-right: 0; }
.v022-observation-list span {
  display: block;
  color: #58647a;
  font-size: 9px;
  line-height: 1.45;
}
.v022-observation-list b {
  display: inline-block;
  margin-top: 7px;
  padding: 3px 6px;
  border-radius: 6px;
  background: #f1f3f6;
  color: #828da0;
  font-size: 7px;
}
.observation-rule {
  margin: 9px 0 0;
  color: #929bad;
  font-size: 8px;
  line-height: 1.5;
}
.v022-property-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.v022-property-card span {
  color: #8994a7;
  font-size: 9px;
}
.v022-property-card h2 {
  margin: 7px 0 5px;
  font-size: 20px;
  letter-spacing: -.025em;
}
.v022-property-card p {
  margin: 0;
  color: #98a1b0;
  font-size: 9px;
  line-height: 1.5;
}
.v022-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 4px 0;
  color: #939daf;
  font-size: 8px;
}
.chart-library-missing .chart-stage::after {
  content: "本地图表库未加载";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #9a6a2b;
  background: #fffaf1;
  font-size: 10px;
}

@media (max-width: 1180px) {
  .v022-page { width: min(100% - 32px, 1120px); }
  .v022-topbar { align-items: flex-start; }
  .v022-top-actions { flex-wrap: wrap; }
  .v022-global-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .business-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chart-feature-grid { grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); }
  .pending-p0-grid,
  .apartment-pending-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .v022-page { width: min(100% - 24px, 680px); padding-top: 16px; }
  .v022-topbar,
  .business-section-head,
  .section-line-title { align-items: flex-start; }
  .v022-topbar,
  .business-section-head { display: block; }
  .v022-top-actions,
  .section-head-actions { justify-content: flex-start; margin-top: 14px; }
  .header-meta { display: none; }
  .v022-status-strip { align-items: flex-start; flex-wrap: wrap; }
  .v022-status-strip p { width: 100%; margin: 3px 0 0; white-space: normal; }
  .v022-global-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .business-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-feature-grid { grid-template-columns: 1fr; }
  .pending-p0-grid,
  .apartment-pending-grid { grid-template-columns: 1fr; }
  .future-analysis { grid-template-columns: 1fr; }
  .future-analysis > div { border-right: 0; border-bottom: 1px solid #e3e8ef; }
  .future-analysis ul,
  .future-analysis .apartment-future-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .future-analysis li { border-bottom: 1px solid #e8ecf2; }
  .v022-bottom-grid { grid-template-columns: 1fr; }
  .v022-observation-list { grid-template-columns: 1fr; }
  .v022-observation-list > div { border-right: 0; border-bottom: 1px solid #e8ecf2; }
  .v022-observation-list > div:last-child { border-bottom: 0; }
  .v022-footer { display: block; line-height: 1.9; }
  .chart-stage.large { height: 238px; }
  .analysis-card-head { flex-wrap: wrap; }
  .legend-inline,
  .legend-pair { white-space: normal; }
  .v022-top-actions .primary-action { min-height: 42px; }
}

@media (max-width: 430px) {
  .v022-page { width: min(100% - 16px, 414px); }
  .v022-global-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .v022-kpi { min-height: 112px; padding: 12px 11px; border-radius: 16px; }
  .v022-kpi > span { min-height: 34px; font-size: 10px; }
  .v022-kpi > strong { font-size: 18px; }
  .v022-kpi > small { font-size: 8px; }
  .business-kpi-grid { grid-template-columns: 1fr; }
  .v022-top-actions .status-pill { display: none; }
  .v022-top-actions { gap: 8px; }
  .v022-top-actions .primary-action { width: 100%; justify-content: center; }
  .section-head-actions > span:first-child { display: none; }
  .future-analysis ul,
  .future-analysis .apartment-future-list { grid-template-columns: 1fr; }
}
