:root {
  --ink: #1d1d1f;
  --muted: #86868b;
  --line: #d2d2d7;
  --paper: #f5f5f7;
  --panel: #ffffff;
  --blue: #0071e3;
  --blue-soft: #eaf3ff;
  --orange: #ff9500;
  --green: #34c759;
  --shadow: 0 18px 45px rgba(0, 0, 0, .08);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; height: 100vh; overflow: hidden; background: var(--paper); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { height: 100vh; min-height: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1.6px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; color: #1d1d1f; font-size: 22px; font-weight: 650; letter-spacing: 0; }
h2 { margin-bottom: 0; font-size: 18px; line-height: 1.3; }
h3 { margin-bottom: 0; font-size: 15px; }
.topbar-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #e3f2ed; }
.icon-button { width: 32px; height: 32px; margin-left: 8px; border: 1px solid var(--line); border-radius: 50%; color: var(--blue); background: #fff; font-size: 18px; line-height: 1; }
.toolbar { min-height: 64px; padding: 11px 28px; display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(210,210,215,.7); }
.target-search { position: relative; width: min(470px, 42vw); display: flex; gap: 7px; }
.search-field { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid rgba(210,210,215,.9); border-radius: 10px; background: #f5f5f7; color: var(--muted); }
.search-field input { width: 100%; height: 40px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search-button { height: 40px; padding: 0 16px; border: 0; border-radius: 10px; color: #fff; background: var(--blue); font-size: 12px; font-weight: 600; }
.report-export-button { height: 40px; flex: 0 0 auto; padding: 0 12px; border: 1px solid rgba(0,113,227,.45); border-radius: 10px; color: var(--blue); background: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.report-export-button:hover, .report-export-button:focus-visible { color: #fff; background: var(--blue); outline: 0; }
.report-export-button:disabled { opacity: .55; cursor: wait; }
.image-export-button { height: 40px; flex: 0 0 auto; padding: 0 12px; border: 1px solid rgba(52,199,89,.55); border-radius: 10px; color: #248a44; background: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.image-export-button:hover, .image-export-button:focus-visible { color: #fff; background: #34a853; outline: 0; }
.image-export-button:disabled { opacity: .55; cursor: wait; }
.address-suggestions { position: absolute; z-index: 300; top: 45px; left: 0; right: 230px; display: none; max-height: 300px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 10px 24px rgba(33,49,72,.16); }
.address-suggestions.visible { display: block; }
.suggestion-option { width: 100%; display: block; padding: 9px 10px; border: 0; border-radius: 4px; color: var(--ink); background: transparent; text-align: left; }
.suggestion-option:hover, .suggestion-option:focus { background: var(--blue-soft); outline: 0; }
.suggestion-name { display: block; font-size: 12px; line-height: 1.4; }
.suggestion-meta { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.select-field { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.select-field select { height: 40px; min-width: 126px; padding: 0 11px; border: 1px solid rgba(210,210,215,.9); border-radius: 10px; color: var(--ink); background: #f5f5f7; outline: 0; }
.display-options { display: flex; align-items: center; gap: 12px; padding-left: 4px; }
.check-option { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; white-space: nowrap; cursor: pointer; }
.check-option input { width: 14px; height: 14px; margin: 0; accent-color: var(--blue); }
.toolbar-spacer { flex: 1; }
.map-mode { display: flex; padding: 3px; background: #e9e9ed; border-radius: 10px; }
.mode-button { min-width: 54px; padding: 7px 12px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 12px; }
.mode-button.active { color: var(--blue); background: var(--panel); box-shadow: 0 1px 4px rgba(42, 55, 75, .12); }
.workspace { flex: 1 1 auto; min-height: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 584px; }
.map { position: relative; min-height: 620px; overflow: hidden; background: #dce7e6; }
#map canvas, #map .amap-container { width: 100%; height: 100%; }
.map-placeholder { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 9px; color: var(--muted); background: linear-gradient(135deg, #e8efee, #dce8e7); }
.map-placeholder p { margin: 0; color: var(--ink); font-size: 14px; }
.map-placeholder small { font-size: 11px; }
.spinner { width: 22px; height: 22px; border: 2px solid rgba(46, 104, 208, .18); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.map-legend { position: absolute; z-index: 4; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 7px; padding: 10px 12px; color: #515154; background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.75); border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,.1); font-size: 11px; backdrop-filter: blur(14px); }
.legend-dot { width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
  .legend-shopping { width: 9px; height: 9px; margin-left: 5px; border: 2px solid #fff; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 1px #ff3b30; }
  .legend-shopping-unmatched { width: 9px; height: 9px; margin-left: 5px; border: 2px solid #fff; border-radius: 50%; background: #ff9500; box-shadow: 0 0 0 1px #ff9500; }
.legend-heat { width: 18px; height: 8px; margin-left: 5px; border-radius: 6px; background: linear-gradient(90deg, #59b99a, #f6c849, #e55e3d); }
.legend-board-density { width: 24px; height: 8px; margin-left: 5px; border-radius: 6px; background: linear-gradient(90deg, #d9f0ef, #9dceca, #efcf82, #e89062, #bd4b51); }
.traffic-legend { display: inline-flex; align-items: center; gap: 6px; margin-left: 5px; }
.legend-walking, .legend-driving, .legend-cycling { width: 18px; height: 8px; border: 1px solid; border-radius: 3px; }
.legend-walking { border-color: #2f8a66; background: rgba(47,138,102,.2); }
.legend-driving { border-color: #e39a24; background: rgba(227,154,36,.2); }
.legend-cycling { border-color: #2c83c9; background: rgba(44,131,201,.2); }
.layer-panel { position: absolute; z-index: 120; top: 8px; left: 8px; width: 154px; max-height: calc(100% - 16px); overflow-y: auto; padding: 8px 8px 7px; border: 1px solid rgba(210,210,215,.88); border-radius: 8px; color: #3a3a3c; background: rgba(255,255,255,.94); box-shadow: 0 3px 12px rgba(35,45,55,.16); backdrop-filter: blur(12px); scrollbar-width: thin; }
.layer-panel-header { display: flex; align-items: center; min-height: 18px; margin-bottom: 2px; }
.layer-panel-header h3 { margin: 0; color: #606064; font-size: 11px; font-weight: 650; }
.layer-group { padding: 5px 0 4px; border-top: 1px solid rgba(210,210,215,.62); }
.layer-group:first-of-type { padding-top: 2px; border-top: 0; }
.layer-group-title, .layer-select-label { display: block; margin: 0 0 2px; color: #77777c; font-size: 10px; line-height: 1.4; }
.layer-choice { min-height: 21px; display: flex; align-items: center; gap: 5px; color: #4a4a4f; font-size: 10px; line-height: 1.35; cursor: pointer; user-select: none; }
.layer-choice input { width: 13px; height: 13px; flex: 0 0 auto; margin: 0; accent-color: #1677d2; }
.layer-choice span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layer-choice.is-disabled { color: #a8a8ad; cursor: not-allowed; }
.layer-choice.is-disabled input { accent-color: #bfc1c5; }
.range-choice { gap: 5px; }
.range-swatch, .point-swatch { width: 9px; height: 9px; display: inline-block; flex: 0 0 auto; border-radius: 2px; }
.range-1 { background: #8b5cc7; }
.range-2 { background: #e39a24; }
.range-3 { background: #2c83c9; }
.range-4 { background: #4b8fd0; }
.range-5 { background: #cf315c; }
.range-6 { background: #9d3a37; }
.point-swatch { border-radius: 1px; }
.point-swatch.shell { background: #2c83c9; }
.point-swatch.anjuke { background: #f07819; }
.layer-basemap-group { padding-bottom: 0; }
.layer-select { width: 100%; height: 25px; padding: 0 5px; border: 1px solid #d2d2d7; border-radius: 4px; color: #3a3a3c; background: #fff; font-size: 10px; outline: 0; }
.layer-select:focus { border-color: #1677d2; box-shadow: 0 0 0 2px rgba(22,119,210,.13); }
.project-marker { position: relative; width: 16px; height: 16px; }
.project-marker-dot { position: absolute; inset: 2px; display: block; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 1px 5px rgba(20,35,55,.35); }
.project-marker.active .project-marker-dot { inset: 0; border-width: 3px; }
.project-marker-label { position: absolute; top: 16px; left: 50%; max-width: 120px; padding: 2px 4px; overflow: hidden; border: 1px solid rgba(210,210,215,.85); border-radius: 3px; color: #303034; background: rgba(255,255,255,.92); box-shadow: 0 1px 3px rgba(0,0,0,.12); font-size: 10px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; transform: translateX(-50%); }
.board-label { display: block; max-width: 110px; padding: 2px 5px; overflow: hidden; border: 1px solid rgba(83,96,107,.55); border-radius: 4px; color: #27323b; background: rgba(255,255,255,.82); box-shadow: 0 1px 4px rgba(20,35,55,.16); font-size: 10px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; transform: translate(-50%, -50%); pointer-events: none; }
.target-marker { width: 24px; height: 24px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50% 50% 50% 0; color: #fff; background: var(--orange); box-shadow: 0 2px 7px rgba(20,35,55,.35); font-size: 16px; transform: rotate(-45deg); }
.target-marker::first-letter { transform: rotate(45deg); }
.shopping-summary { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.shopping-list { margin-top: 8px; }
.shopping-row { padding: 10px 0; border-top: 1px solid var(--line); }
.shopping-name { color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.4; }
.shopping-meta { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.shopping-rating { color: var(--orange); }
.traffic-summary { display: none; }
.traffic-summary strong { color: var(--ink); font-weight: 650; }
.traffic-section { margin-top: 19px; }
.traffic-table-wrap { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.traffic-table { min-width: 445px; }
.traffic-table th, .traffic-table td { padding-left: 5px; padding-right: 5px; }
.traffic-coverage-row { cursor: pointer; transition: background-color .15s ease; }
.traffic-coverage-row:hover, .traffic-coverage-row:focus { outline: 0; background: #f5f8ff; }
.traffic-coverage-row.active { background: #eaf3ff; }
.coverage-rate { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.coverage-rate i { display: inline-block; height: 6px; min-width: 2px; max-width: 58px; border-radius: 4px; background: #c8c1f5; }
.subway-section { padding-bottom: 8px; }
.subway-card { margin-top: 8px; padding: 12px 13px; border: 1px solid rgba(210,210,215,.75); border-radius: 10px; background: #fff; }
.subway-name { overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.subway-meta { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.subway-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 11px; }
.subway-stats span { min-width: 0; padding-top: 8px; border-top: 1px solid var(--line); }
.subway-stats label { display: block; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.subway-stats strong { display: block; margin-top: 3px; overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.commercial-summary { margin-top: 18px; padding: 12px 13px; border: 1px solid rgba(210,210,215,.75); border-radius: 10px; background: #fff; font-size: 11px; }
.commercial-summary strong { color: var(--ink); font-weight: 650; }
.commercial-table-wrap { flex: 0 0 auto; width: 100%; min-width: 0; max-width: 100%; margin-top: 10px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; }
.commercial-table { min-width: 1080px; }
.commercial-table th, .commercial-table td { padding: 8px 6px; }
.commercial-rank-heading, .commercial-rank-cell { width: 42px; min-width: 42px; color: var(--muted); text-align: center !important; }
.commercial-rank-cell { color: var(--blue); font-size: 11px; font-weight: 650; }
.commercial-table th { padding: 0; }
.commercial-sort-button { width: 100%; min-height: 34px; display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 7px 6px; border: 0; color: var(--muted); background: transparent; font-size: 10px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.commercial-sort-button:hover, .commercial-sort-button:focus-visible { color: var(--blue); background: #f5f8ff; outline: 0; }
.commercial-sort-active .commercial-sort-button { color: var(--blue); background: #eaf3ff; font-weight: 650; }
.commercial-sort-rank { color: var(--blue); font-size: 9px; font-weight: 600; }
.commercial-sort-direction { color: var(--blue); font-size: 12px; line-height: 1; }
.commercial-column-active { background: #f5f8ff; }
.commercial-row { cursor: pointer; transition: background-color .15s ease; }
.commercial-row:hover, .commercial-row:focus, .commercial-row.expanded { outline: 0; background: #f5f8ff; }
.commercial-name-cell { max-width: 170px; }
.commercial-name { display: inline-block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.assessment-star { display: inline-block; width: 15px; color: #e39a24; font-size: 13px; vertical-align: middle; }
.commercial-detail-row td { padding: 0 6px 9px; background: #f5f8ff; }
.commercial-detail { display: flex; gap: 8px; padding: 10px 12px; border-left: 2px solid var(--blue); color: var(--muted); font-size: 11px; line-height: 1.6; white-space: pre-wrap; }
.commercial-detail strong { flex: 0 0 auto; color: var(--ink); font-weight: 600; }
.commercial-detail span { min-width: 0; }
.commercial-mobile-dialog { display: none; }
.commercial-mobile-dialog-card { width: min(100%, 520px); max-height: min(88vh, 720px); overflow-y: auto; padding: 16px; border: 1px solid rgba(210,210,215,.85); border-radius: 12px; background: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.2); }
.commercial-mobile-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.commercial-mobile-dialog-header h3 { min-width: 0; margin: 0; font-size: 16px; line-height: 1.4; word-break: break-word; }
.commercial-mobile-dialog-close { width: 30px; height: 30px; flex: 0 0 auto; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: #fff; font-size: 20px; line-height: 1; }
.commercial-mobile-dialog-close:hover, .commercial-mobile-dialog-close:focus-visible { color: var(--ink); border-color: var(--ink); outline: 0; }
.commercial-mobile-dialog-content { display: grid; gap: 0; margin-top: 4px; }
.commercial-mobile-detail-item { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef0f2; font-size: 12px; line-height: 1.45; }
.commercial-mobile-detail-item span, .commercial-mobile-detail-introduction > span { color: var(--muted); }
.commercial-mobile-detail-item strong { min-width: 0; color: var(--ink); font-weight: 600; word-break: break-word; }
.commercial-mobile-detail-introduction { padding-top: 12px; font-size: 12px; line-height: 1.6; }
.commercial-mobile-detail-introduction p { margin: 6px 0 0; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.audience-fixed-header { position: sticky; top: 0; z-index: 20; flex: 0 0 auto; margin: -20px 0 0; padding: 20px 0 12px; background: #fff; box-shadow: 0 -20px 0 #fff, 0 10px 18px -18px rgba(0,0,0,.35); }
.audience-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.audience-summary { margin-top: 14px; padding: 12px 13px; border: 1px solid rgba(210,210,215,.75); border-radius: 10px; background: #fff; font-size: 11px; }
.audience-summary strong { color: var(--ink); font-weight: 650; }
.audience-note { display: none; }
.audience-table-section { margin-top: 19px; }
.audience-subsection { margin-top: 15px; }
.audience-subsection h5 { margin: 0 0 7px; color: var(--muted); font-size: 11px; font-weight: 600; }
.audience-table { min-width: 445px; }
.audience-profile-table { min-width: 515px; }
.audience-table th, .audience-table td { padding-left: 5px; padding-right: 5px; }
.audience-profile-table th:nth-child(2), .audience-profile-table td:nth-child(2) { min-width: 126px; }
.audience-share, .audience-density { display: inline-flex; align-items: center; justify-content: flex-end; white-space: nowrap; }
.audience-share i, .audience-density i { display: inline-block; max-width: 62px; min-width: 4px; height: 6px; margin-left: 5px; border-radius: 4px; background: #c8c1f5; }
.audience-density i { background: #c8c1f5; }
.audience-tgi { font-weight: 600; }
.audience-tgi.high { color: #6f55c7; }
.audience-tgi.low { color: #2e8a61; }
.audience-tgi.key { color: #d66b28; }
.audience-judgement { color: var(--muted); font-size: 10px; white-space: nowrap; }
.commercial-amap-heading { display: flex; justify-content: space-between; align-items: baseline; margin-top: 22px; }
.brand-caption { margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.floor-group { padding: 10px 0; border-top: 1px solid var(--line); }
.floor-title { color: var(--blue); font-size: 12px; font-weight: 700; }
.floor-title span { float: right; color: var(--muted); font-size: 10px; font-weight: 400; }
.brand-row { padding: 7px 0 3px 10px; }
.brand-name { color: var(--ink); font-size: 11px; line-height: 1.4; }
.brand-address { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.amap-shopping-marker { width: 13px; height: 13px; box-sizing: border-box; border: 2px solid #fff; border-radius: 50%; background: #ff3b30; box-shadow: 0 1px 5px rgba(20,35,55,.35); }
.metro-station-logo { display: grid; place-items: center; width: 12px; height: 12px; box-sizing: border-box; border: 1px solid #fff; border-radius: 50%; color: #fff; background: #e53935; box-shadow: 0 1px 3px rgba(20,35,55,.28); font-family: Arial, sans-serif; font-size: 7px; font-weight: 700; line-height: 1; }
.topic-tabs { display: flex; gap: 3px; margin: 18px 0 0; padding: 4px; overflow-x: auto; border-radius: 12px; background: #ededf0; scrollbar-width: none; }
.topic-tabs::-webkit-scrollbar { display: none; }
.topic-button { flex: 0 0 auto; min-height: 33px; padding: 0 13px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 11px; white-space: nowrap; }
.topic-button.active { color: var(--ink); background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.09); }
.topic-panel { display: none; padding-top: 20px; }
.topic-panel.active { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-right: 6px; overscroll-behavior: contain; scrollbar-gutter: stable; }
.topic-panel-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.topic-placeholder { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; padding: 22px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.topic-placeholder strong { color: var(--ink); font-size: 16px; }
.hidden { display: none !important; }
.residential-analysis { margin-top: 0; padding-top: 0; border-top: 0; }
.residential-fixed-header { position: sticky; top: 0; z-index: 20; flex: 0 0 auto; margin: -20px 0 0; padding: 20px 0 12px; background: #fff; border-bottom: 0; box-shadow: 0 -20px 0 #fff, 0 10px 18px -18px rgba(0,0,0,.35); }
.analysis-panel-heading, .analysis-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.analysis-controls { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; margin-top: 14px; }
.analysis-control-label { color: var(--muted); font-size: 10px; }
.segmented-control { display: inline-flex; padding: 3px; border-radius: 9px; background: #ededf0; }
.segmented-control button { min-width: 42px; padding: 6px 8px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 10px; }
.segmented-control button.active { color: var(--ink); background: #fff; box-shadow: 0 1px 3px rgba(42,55,75,.14); }
.residential-overview { margin-top: 14px; }
.analysis-metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.analysis-metric { min-width: 0; padding: 12px; border: 1px solid rgba(210,210,215,.75); border-radius: 10px; background: #fff; }
.analysis-metric span { display: block; color: var(--muted); font-size: 10px; line-height: 1.3; }
.analysis-metric strong { display: block; margin-top: 5px; color: var(--ink); font-size: 16px; line-height: 1.2; word-break: break-word; }
.analysis-metric small { display: block; min-height: 13px; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.3; }
.analysis-empty { padding: 16px 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.analysis-table-section { margin-top: 19px; }
.analysis-section-heading h4 { margin: 0; color: var(--ink); font-size: 13px; }
.analysis-section-heading span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.analysis-table-wrap { flex: 0 0 auto; margin-top: 8px; overflow-x: auto; overflow-y: hidden; border-top: 1px solid var(--line); }
.analysis-table { width: 100%; min-width: 445px; border-collapse: collapse; font-size: 10px; }
.analysis-table th { padding: 7px 4px; color: var(--muted); font-weight: 500; text-align: right; white-space: nowrap; }
.analysis-table th:first-child, .analysis-table td:first-child { text-align: left; }
.analysis-table td { padding: 7px 4px; border-top: 1px solid #eef0f2; color: var(--ink); text-align: right; white-space: nowrap; }
.analysis-table .community-cell { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.analysis-table .table-empty { padding: 15px 4px; color: var(--muted); text-align: left; }
.nearby-table { min-width: 570px; }
.side-panel { min-height: 0; height: 100%; display: flex; flex-direction: column; padding: 22px 24px; background: rgba(255,255,255,.98); border-left: 1px solid rgba(210,210,215,.8); box-shadow: -14px 0 35px rgba(0,0,0,.04); overflow: hidden; overscroll-behavior: contain; }
.side-panel > .panel-heading, .side-panel > .topic-tabs { flex: 0 0 auto; }
.panel-heading, .neighbor-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.status-label { padding: 5px 8px; border-radius: 4px; color: var(--green); background: #e7f4ef; font-size: 11px; white-space: nowrap; }
.status-label.pending { color: var(--orange); background: #fff0e9; }
.selected-detail { margin: 20px 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 18px; }
.detail-item label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.detail-item div { color: var(--ink); font-size: 13px; line-height: 1.5; word-break: break-word; }
.detail-item.full { grid-column: 1 / -1; }
.empty-state { color: var(--muted); font-size: 13px; line-height: 1.7; }
.empty-state.compact { padding: 18px 0; font-size: 12px; }
.divider { height: 1px; margin: 22px 0 20px; background: var(--line); }
.neighbor-heading { align-items: end; margin-bottom: 12px; }
.muted { color: var(--muted); font-size: 10px; }
.neighbor-row { padding: 14px 0; border-top: 1px solid var(--line); }
.neighbor-main { display: flex; align-items: flex-start; gap: 10px; }
.rank { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 11px; font-weight: 700; }
.neighbor-name { flex: 1; min-width: 0; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.4; }
.neighbor-meta { margin: 5px 0 0 32px; color: var(--muted); font-size: 11px; }
.distance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 0 32px; }
.distance-box { padding: 7px 8px; border-radius: 4px; background: #f6f8fa; }
.distance-box label { display: block; margin-bottom: 2px; color: var(--muted); font-size: 10px; }
.distance-box strong { color: var(--ink); font-size: 12px; font-weight: 600; }
.distance-box.driving strong { color: var(--orange); }
.footerbar { display: flex; justify-content: space-between; gap: 12px; padding: 12px 30px; color: var(--muted); background: var(--panel); border-top: 1px solid var(--line); font-size: 11px; }
.footerbar span:first-child { color: var(--ink); font-weight: 600; }
.coordinate-label { color: var(--blue); }
.ai-analysis-card { margin-top: 16px; padding: 13px 14px 12px; border: 1px solid #f0d8ca; border-left: 3px solid #ff9500; border-radius: 8px; background: #fffaf7; }
.ai-analysis-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ai-analysis-heading .eyebrow { margin-bottom: 4px; color: #b46c3d; }
.ai-analysis-actions { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.ai-analysis-actions label { display: inline-flex; align-items: center; gap: 5px; }
.ai-analysis-actions select { height: 27px; padding: 0 6px; border: 1px solid #e7d8cf; border-radius: 6px; color: var(--ink); background: #fff; font-size: 10px; outline: 0; }
.ai-refresh-button { width: 28px; height: 28px; padding: 0; border: 1px solid #e7d8cf; border-radius: 50%; color: #b46c3d; background: #fff; font-size: 16px; line-height: 1; }
.ai-refresh-button:hover, .ai-refresh-button:focus-visible { color: #fff; background: #ff9500; border-color: #ff9500; outline: 0; }
.ai-analysis-content { margin-top: 11px; }
.ai-balance { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid #f0e3dc; }
.ai-balance strong { color: #a94822; font-size: 12px; }
.ai-balance span, .ai-source-note { color: var(--muted); font-size: 9px; }
.ai-summary { margin-top: 9px; color: var(--ink); font-size: 11px; line-height: 1.55; }
.ai-point-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 11px; }
.ai-point-columns h4 { margin: 0 0 6px; color: var(--ink); font-size: 10px; font-weight: 650; }
.ai-point-columns > div:first-child h4 { color: #2e8a61; }
.ai-point-columns > div:last-child h4 { color: #b46c3d; }
.ai-point-columns ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ai-point-columns li { position: relative; padding-left: 9px; color: var(--ink); font-size: 10px; line-height: 1.4; }
.ai-point-columns li::before { position: absolute; top: 5px; left: 0; width: 4px; height: 4px; border-radius: 50%; background: #34c759; content: ""; }
.ai-point-columns > div:last-child li::before { background: #ff9500; }
.ai-point-columns li span { display: block; }
.ai-point-columns li small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.ai-point-columns li em { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; font-style: normal; }
.ai-source-note { margin-top: 10px; }
.ai-loading { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.ai-loading .spinner { width: 14px; height: 14px; }
.ai-error { color: #c0392b; font-size: 10px; line-height: 1.5; }
@media (max-width: 900px) {
  .toolbar { flex-wrap: wrap; }
  .search-field { width: 100%; }
  .target-search { width: 100%; }
  .toolbar-spacer { display: none; }
  .display-options { flex: 1; justify-content: flex-end; }
  .analysis-controls { flex-wrap: wrap; }
  body { height: auto; min-height: 100vh; overflow: auto; }
  .app-shell { height: auto; min-height: 100vh; }
  .workspace { min-height: 0; overflow: visible; grid-template-columns: 1fr; }
  .map { min-height: 55vh; }
  .side-panel { height: auto; min-height: 420px; overflow: visible; border-top: 1px solid var(--line); border-left: 0; }
  .topic-panel.active { flex: 0 0 auto; overflow: visible; }
}
@media (max-width: 560px) {
  body { overflow-x: hidden; }
  .topbar { padding: 17px 16px 14px; align-items: flex-start; }
  h1 { font-size: 19px; }
  .topbar-meta { padding-top: 4px; font-size: 0; }
  .toolbar { min-height: 60px; padding: 9px 14px; background: #fcfcfb; }
  .select-field { flex: 1; }
  .select-field select { min-width: 0; width: 100%; }
  .display-options { width: 100%; justify-content: flex-start; padding: 2px 0; }
  .map-mode { width: 100%; }
  .mode-button { flex: 1; }
  .toolbar { display: flex; }
  .toolbar > *:not(.target-search) { display: none; }
  .toolbar { gap: 0; }
  .target-search { width: auto; min-width: 0; flex: 1 1 auto; }
  .search-field { min-width: 0; }
  .search-field, .search-button, .report-export-button, .image-export-button { height: 42px; }
  .search-field input { font-size: 16px; }
  .map { display: none; }
  .layer-panel { display: none; }
  .topic-tabs { margin-top: 14px; margin-right: -17px; padding-right: 17px; border-radius: 12px 0 0 12px; overscroll-behavior-x: contain; touch-action: pan-x; }
  .topic-button { min-width: max-content; }
  .topic-tabs { position: sticky; top: 0; z-index: 30; grid-template-columns: repeat(3, minmax(0, 1fr)); display: grid; margin: 8px -14px 10px; padding: 7px 14px; border-radius: 0; background: rgba(252,252,251,.97); overflow: visible; touch-action: auto; }
  .topic-button { width: 100%; min-width: 0; min-height: 38px; padding: 8px 2px; white-space: nowrap; }
  .side-panel { padding: 16px 14px; border-top-color: #e4e2dc; box-shadow: none; }
  .panel-heading { gap: 8px; }
  .status-label { max-width: 82px; overflow: hidden; text-overflow: ellipsis; }
  .workspace { display: block; width: 100%; max-width: 100vw; overflow-x: hidden; }
  .side-panel, .topic-tabs, .topic-panel, .topic-panel.active { width: 100%; max-width: 100%; min-width: 0; }
  .topic-panel.active { overflow-x: hidden; }
  .topic-panel > * { max-width: 100%; min-width: 0; }
  .analysis-table-wrap, .traffic-table-wrap, .commercial-table-wrap { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; }
  .analysis-table, .traffic-table, .commercial-table { width: max-content; min-width: 100%; }
  .side-panel h2 { font-size: 17px; line-height: 1.35; }
  .topic-panel { font-size: 12px; line-height: 1.5; }
  .topic-panel h3 { font-size: 15px; line-height: 1.4; }
  .topic-panel h4 { font-size: 13px; line-height: 1.4; }
  .topic-panel h5 { font-size: 12px; line-height: 1.4; }
  .topic-panel .eyebrow { font-size: 10px; letter-spacing: 1.4px; }
  .topic-panel .muted { font-size: 10px; }
  .topic-panel .analysis-table { font-size: 11px; }
  .topic-panel .analysis-table th, .topic-panel .analysis-table td { font-size: 11px; }
  .topic-panel .detail-item label { font-size: 10px; }
  .topic-panel .detail-item div { font-size: 12px; }
  .commercial-mobile-dialog:not(.hidden) { position: fixed; z-index: 1000; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 12px; background: rgba(29,29,31,.42); }
  .commercial-mobile-dialog-card { width: 100%; max-height: 88vh; padding: 15px 14px calc(15px + env(safe-area-inset-bottom)); border-radius: 12px 12px 0 0; }
  .commercial-mobile-dialog-header h3 { font-size: 15px; }
  .commercial-mobile-detail-item, .commercial-mobile-detail-introduction { font-size: 12px; }
  body.commercial-mobile-dialog-open { overflow: hidden; }
  .side-panel { padding: 16px 14px; border-top-color: #e4e2dc; box-shadow: none; }
  .ai-point-columns { grid-template-columns: 1fr; gap: 10px; }
  .analysis-metric strong { font-size: 15px; }
  .footerbar { padding: 11px 16px; flex-wrap: wrap; }
  .footerbar span:nth-child(2) { width: 100%; order: 3; }
}
