:root{font-family:Inter,PingFang SC,Microsoft YaHei,Noto Sans CJK SC,sans-serif;color:#17211d;background:#f4f6f5;font-synthesis:none;text-rendering:optimizeLegibility;--ink: #17211d;--muted: #66716c;--faint: #89928e;--line: #dde3e0;--line-strong: #cbd3cf;--surface: #ffffff;--canvas: #f4f6f5;--green: #087d5b;--green-soft: #dcefe8;--coral: #d85d45;--coral-soft: #f9e7e2;--blue: #376b97;--blue-soft: #e1ebf4;--shadow: 0 12px 34px rgba(30, 50, 41, .08)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:var(--canvas)}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button,a{color:inherit}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.app-shell{min-height:100vh}.brand-mark{width:34px;height:34px;display:grid;place-items:center;flex:0 0 auto;color:#ecf7f2;background:#087d5b;border-radius:6px}.workspace{min-width:0}.topbar{height:76px;position:sticky;top:0;z-index:15;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 34px;background:#fffffff2;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.topbar-brand{display:flex;align-items:center;gap:11px}.topbar-brand strong,.topbar-brand span{display:block;letter-spacing:0}.topbar-brand strong{font-size:16px;line-height:1.25}.topbar-brand span{margin-top:3px;color:var(--muted);font-size:10px}.title-line{display:flex;align-items:center;gap:10px}.single-city-toolbar h1{margin:0;font-size:19px;line-height:1.25;letter-spacing:0}.single-city-toolbar p{margin:5px 0 0;color:var(--muted);font-size:11px}.city-tier{padding:3px 6px;color:#466158;background:#edf2f0;border-radius:4px;font-size:10px;font-weight:600}.header-actions,.table-actions{display:flex;align-items:center;gap:8px}.sync-note{display:flex;align-items:center;gap:7px;margin-right:4px;color:var(--muted);font-size:11px;white-space:nowrap}.sync-dot{width:7px;height:7px;background:#28a477;border-radius:50%}.sync-dot.pulse{animation:pulse 1s ease-in-out infinite}.sync-dot.error{background:#c94e3b}.icon-button,.secondary-button{height:34px;display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#fff;border:1px solid var(--line-strong);border-radius:5px;cursor:pointer}.icon-button{width:34px;padding:0}.secondary-button{padding:0 12px;font-size:12px;font-weight:600}.secondary-button.compact{height:32px;padding-inline:10px}.icon-button:hover,.secondary-button:hover{border-color:#95a39d;background:#f8faf9}.icon-button:disabled{cursor:wait;opacity:.65}main{width:min(1480px,100%);margin:0 auto;padding:24px 34px 52px}.demo-notice{min-height:38px;display:flex;align-items:center;gap:8px;margin-bottom:18px;padding:8px 12px;color:#65583d;background:#fff8e7;border:1px solid #ead8ac;border-radius:5px;font-size:12px}.demo-notice svg{flex:0 0 auto;color:#9b7425}.demo-notice button{margin-left:auto;padding:3px 0;color:#6d5420;background:transparent;border:0;border-bottom:1px solid #b3914c;cursor:pointer;font-size:11px}.view-tabs{display:flex;align-items:flex-end;gap:26px;margin-bottom:24px;border-bottom:1px solid var(--line-strong)}.view-tabs button{position:relative;height:43px;padding:0 2px;color:var(--muted);background:transparent;border:0;cursor:pointer;font-size:13px;font-weight:600}.view-tabs button:after{position:absolute;right:0;bottom:-1px;left:0;height:2px;content:"";background:transparent}.view-tabs button:hover{color:var(--ink)}.view-tabs button.active{color:var(--green)}.view-tabs button.active:after{background:var(--green)}.view-tabs button:focus-visible,.city-picker-trigger:focus-visible,.single-city-option:focus-visible{outline:2px solid rgba(8,125,91,.35);outline-offset:2px}.single-city-toolbar{min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:15px}.city-picker-trigger{min-width:184px;height:38px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 11px;color:var(--muted);background:#fff;border:1px solid var(--line-strong);border-radius:5px;cursor:pointer;font-size:11px}.city-picker-trigger:hover,.city-picker-trigger[aria-expanded=true]{color:var(--ink);border-color:#8fa098;background:#f8faf9}.city-picker-trigger strong{color:var(--ink);font-size:12px}.city-picker-trigger svg:last-child{margin-left:auto;transition:transform .16s ease}.city-picker-trigger svg.rotated{transform:rotate(180deg)}.single-city-picker{margin:-3px 0 16px;padding:14px;background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:0 8px 24px #1e32290f}.single-city-picker-heading{display:flex;align-items:baseline;gap:10px;margin-bottom:11px}.single-city-picker-heading strong{font-size:12px}.single-city-picker-heading span{color:var(--muted);font-size:10px}.single-city-options{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:7px}.single-city-option{min-width:0;min-height:47px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-content:center;gap:3px 8px;padding:6px 10px;color:var(--ink);background:#f8faf9;border:1px solid var(--line);border-radius:5px;cursor:pointer;text-align:left}.single-city-option:hover{border-color:#9aa8a2}.single-city-option.active{color:#075d46;background:#edf7f3;border-color:#8fc8b3}.single-city-option span{overflow:hidden;font-size:11px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.single-city-option small{grid-column:1 / -1;overflow:hidden;color:var(--faint);font-size:8px;text-overflow:ellipsis;white-space:nowrap}.single-city-option svg{grid-column:2;grid-row:1;color:var(--green)}.metric-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:14px;background:var(--surface);border:1px solid var(--line);border-radius:6px}.metric{position:relative;min-height:118px;padding:21px 23px 18px;border-right:1px solid var(--line)}.metric:last-child{border-right:0}.metric-rule{position:absolute;top:21px;left:0;width:3px;height:23px}.metric-rule.green{background:var(--green)}.metric-rule.coral{background:var(--coral)}.metric-rule.ink{background:var(--ink)}.metric-rule.blue{background:var(--blue)}.metric-rule.gold{background:#a67923}.metric-label{display:block;margin-bottom:12px;color:var(--muted);font-size:11px}.metric strong{display:block;font-size:clamp(19px,1.55vw,25px);line-height:1.2;letter-spacing:0;white-space:nowrap}.metric-foot{min-height:18px;display:flex;align-items:center;gap:7px;margin-top:10px;color:var(--faint);font-size:10px}.change{display:inline-flex;align-items:center;gap:2px;font-weight:700}.change.positive{color:var(--green)}.change.negative{color:var(--coral)}.change.neutral{color:var(--muted)}.rent-ratio-note{display:grid;grid-template-columns:minmax(240px,.9fr) repeat(2,minmax(260px,1fr));align-items:center;gap:22px;margin-bottom:30px;padding:14px 18px;background:#fffaf0;border:1px solid #eadbb9;border-radius:6px}.rent-ratio-title{display:flex;align-items:flex-start;gap:10px}.rent-ratio-title>svg{flex:0 0 auto;margin-top:1px;color:#9a7120}.rent-ratio-title strong,.rent-ratio-title span,.rent-formula span,.rent-formula strong,.rent-formula small{display:block}.rent-ratio-title strong{font-size:12px}.rent-ratio-title span{margin-top:4px;color:#74684f;font-size:9px;line-height:1.5}.rent-formula{padding-left:18px;border-left:1px solid #e4d3ad}.rent-formula span{color:#847554;font-size:9px}.rent-formula strong{margin-top:5px;color:#433b2b;font-size:12px;line-height:1.45}.rent-formula small{margin-top:3px;color:#8c8067;font-size:9px;line-height:1.45}.analysis-heading,.records-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:13px}.analysis-heading h2,.records-heading h2{margin:0;font-size:16px;letter-spacing:0}.analysis-heading p,.records-heading p{margin:5px 0 0;color:var(--muted);font-size:11px}.mortgage-page{display:grid;gap:22px;min-width:0}.mortgage-heading{margin-top:2px}.mortgage-heading h1{margin:0;font-size:21px;line-height:1.25}.calculator-note{color:var(--muted);font-size:10px}.mortgage-layout{display:grid;grid-template-columns:minmax(330px,.72fr) minmax(430px,1.28fr);gap:18px;align-items:stretch;min-width:0}.mortgage-input-panel,.mortgage-result-panel{min-width:0;padding:20px}.mortgage-mode{width:100%;margin-top:18px}.loan-type-control{display:grid;gap:7px;margin-top:18px}.loan-type-control>span{color:var(--muted);font-size:10px;font-weight:600}.loan-type-control .mortgage-mode{margin-top:0}.mortgage-mode button{flex:1}.mortgage-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.mortgage-field{display:grid;gap:6px}.mortgage-field>span,.repayment-method>span{color:var(--muted);font-size:10px;font-weight:600}.mortgage-number{position:relative}.mortgage-number input{width:100%;height:38px;min-width:0;padding:0 54px 0 10px;color:var(--ink);background:#fff;border:1px solid var(--line-strong);border-radius:5px;outline:none}.mortgage-number input:focus{border-color:#23836a;box-shadow:0 0 0 3px #087d5b1a}.mortgage-number small{position:absolute;top:50%;right:10px;color:var(--faint);font-size:9px;transform:translateY(-50%);pointer-events:none}.derived-loan{grid-column:1 / -1;display:grid;grid-template-columns:1fr auto;gap:7px 14px;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.derived-loan span{color:var(--muted);font-size:10px}.derived-loan strong{font-size:11px;text-align:right}.loan-split-summary{grid-column:1 / -1;display:grid;grid-template-columns:1fr auto;gap:7px 14px;padding:11px 12px;background:#f7f9f8;border:1px solid var(--line);border-radius:5px}.loan-split-summary span{color:var(--muted);font-size:10px}.loan-split-summary strong{font-size:11px;text-align:right}.repayment-method{display:grid;gap:7px;margin-top:18px}.repayment-method .change-mode{width:100%}.repayment-method .change-mode button{flex:1}.mortgage-result-panel{display:grid;grid-template-columns:1fr;align-content:start}.mortgage-primary-result{padding-bottom:18px;border-bottom:1px solid var(--line)}.mortgage-primary-result span,.mortgage-primary-result small{display:block}.mortgage-primary-result span{color:var(--muted);font-size:11px;font-weight:600}.mortgage-primary-result strong{display:block;margin:8px 0 5px;color:var(--green);font-size:30px;line-height:1.1}.mortgage-primary-result small{color:var(--faint);font-size:10px}.mortgage-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:11px 0;border-bottom:1px solid var(--line)}.mortgage-summary>div{min-width:0;padding:10px 13px;border-right:1px solid var(--line)}.mortgage-summary>div:nth-child(2n){border-right:0}.mortgage-summary span,.mortgage-summary strong{display:block}.mortgage-summary span{color:var(--muted);font-size:9px}.mortgage-summary strong{margin-top:5px;font-size:13px}.repayment-composition{padding-top:18px}.composition-heading,.composition-legend{display:flex;align-items:center;justify-content:space-between}.composition-heading span{font-size:11px;font-weight:600}.composition-heading small,.composition-legend{color:var(--muted);font-size:9px}.composition-bar{height:10px;display:flex;overflow:hidden;margin:9px 0 8px;background:#eef1ef;border-radius:3px}.composition-bar span{display:block;min-width:0}.principal-part,.principal-key{background:#087d5b}.interest-part,.interest-key{background:#d5a13c}.composition-legend{justify-content:flex-start;gap:18px}.composition-legend span{display:inline-flex;align-items:center;gap:5px}.composition-legend i{width:7px;height:7px;border-radius:2px}.mortgage-caution{display:flex;align-items:flex-start;gap:9px;margin-top:18px;padding-top:14px;color:#6c562e;border-top:1px solid #eadcbd}.mortgage-caution svg{flex:0 0 auto}.mortgage-caution p{margin:0;font-size:9px;line-height:1.65}.mortgage-schedule{margin-top:0;min-width:0}.mortgage-schedule .records-toolbar>div:first-child h2{margin:0;font-size:15px}.mortgage-schedule .records-toolbar>div:first-child p{margin:5px 0 0;color:var(--muted);font-size:10px}.schedule-year-select{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:9px}.schedule-year-select select{height:32px;padding:0 27px 0 9px;color:var(--ink);background:#fff;border:1px solid var(--line-strong);border-radius:5px}.segmented{display:inline-flex;align-items:center;background:#e8ecea;border-radius:5px}.segmented button{height:26px;padding:0 10px;color:var(--muted);background:transparent;border:0;border-radius:4px;cursor:pointer;font-size:11px}.segmented button.active{color:var(--ink);background:#fff;box-shadow:0 1px 3px #1e32291f;font-weight:600}.trend-filters{min-height:34px;display:flex;align-items:center;gap:8px;padding:4px 5px 4px 9px;color:var(--muted);background:#e8ecea;border-radius:5px}.trend-filters>svg{flex:0 0 auto}.trend-filters label{display:flex;align-items:center;gap:5px}.trend-filters label span{font-size:9px;white-space:nowrap}.trend-filters select{height:28px;padding:0 24px 0 8px;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:4px;font-size:10px;font-weight:600}.range-separator{color:var(--faint);font-size:9px}.comparison-section{margin-bottom:31px}.comparison-heading{align-items:center}.comparison-heading-actions{display:flex;align-items:center;gap:8px}.comparison-sort{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:9px}.comparison-sort select{height:32px;padding:0 28px 0 9px;color:var(--ink);background:#fff;border:1px solid var(--line-strong);border-radius:5px;font-size:10px}.compact-sort{width:32px;height:32px}.compact-sort:disabled{cursor:not-allowed;opacity:.45}.selection-count,.active-period{color:var(--faint);font-size:10px;white-space:nowrap}.city-compare-picker{display:grid;grid-template-columns:repeat(11,minmax(76px,1fr));gap:6px;margin-bottom:10px}.city-check{min-width:0;height:38px;display:grid;grid-template-columns:13px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;column-gap:7px;padding:4px 8px;color:var(--muted);background:#fff;border:1px solid var(--line);border-radius:5px;cursor:pointer}.city-check:hover{border-color:#9aa8a2}.city-check.selected{color:var(--ink);background:#f8faf9;border-color:#a8b5af}.city-check.disabled{cursor:not-allowed;opacity:.62}.city-check input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.city-check-color{width:11px;height:11px;grid-row:1 / 3;align-self:center;border:1px solid #a8b1ad;border-radius:3px}.city-check>span:nth-of-type(2){overflow:hidden;font-size:10px;font-weight:600;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.city-check small{color:var(--faint);font-size:8px;line-height:1.2}.city-check:focus-within{border-color:var(--green);box-shadow:0 0 0 2px #087d5b1a}.comparison-table-shell{overflow-x:auto;background:#fff;border:1px solid var(--line);border-radius:6px 6px 0 0}.comparison-table{min-width:1080px}.comparison-table th{height:36px}.comparison-table td{height:42px}.table-city-line{width:3px;height:17px;display:inline-block;margin-right:8px;border-radius:1px;vertical-align:middle}.comparison-chart-panel{margin-top:-1px;border-radius:0 0 6px 6px}.comparison-formula-note{padding:9px 12px;color:var(--muted);background:#f8faf9;border-right:1px solid var(--line);border-left:1px solid var(--line);font-size:9px;line-height:1.55}.comparison-formula-note strong{color:var(--ink)}.ratio-cell{color:#7a5014;font-weight:600}.comparison-controls{display:flex;align-items:center;gap:7px}.comparison-legend{min-height:35px;display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:8px 18px 0;color:var(--muted);font-size:9px}.comparison-legend span{display:inline-flex;align-items:center;gap:5px}.comparison-legend b{color:var(--ink);font-size:9px}.comparison-legend small{color:var(--faint);font-size:8px}.comparison-legend i{width:14px;height:3px;display:inline-block;border-radius:1px}.comparison-series{stroke-width:2.2}.comparison-tooltip text:not(.tooltip-month){font-weight:600}.city-trend-heading{margin-top:0}.trend-stack{display:grid;gap:15px}.analytics-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(330px,.8fr);gap:15px}.panel{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:6px}.panel-header{min-height:67px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 18px;border-bottom:1px solid var(--line)}.panel-header h2{margin:0;font-size:13px}.panel-header p{margin:5px 0 0;color:var(--muted);font-size:10px}.panel-icon{color:var(--faint)}.chart-legend{display:flex;align-items:center;gap:4px}.trend-panel-actions{display:flex;align-items:center;gap:8px}.change-mode{height:28px;display:inline-flex;align-items:center;padding:2px;background:#e8ecea;border-radius:4px}.change-mode button{height:24px;padding:0 9px;color:var(--muted);background:transparent;border:0;border-radius:3px;cursor:pointer;font-size:10px}.change-mode button.active{color:var(--ink);background:#fff;box-shadow:0 1px 2px #1e32291f;font-weight:600}.chart-legend button{min-width:67px;height:28px;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 8px;color:var(--faint);background:transparent;border:1px solid transparent;border-radius:4px;cursor:pointer;font-size:10px}.chart-legend button.selected{color:var(--ink);background:#f7f9f8;border-color:var(--line)}.legend-dot{width:7px;height:7px;border-radius:50%}.legend-dot.new{background:var(--green)}.legend-dot.resale{background:var(--coral)}.legend-dot.wage{background:var(--blue)}.chart-wrap{padding:12px 12px 7px;overflow:hidden}.trend-chart{width:100%;height:auto;display:block;touch-action:none}.grid-line{stroke:#e7ebe9;stroke-width:1}.zero-line{stroke:#aeb8b3;stroke-width:1.2}.axis-label{fill:#8c9691;font-size:9px;font-family:inherit}.axis-label.y{text-anchor:end}.axis-label.y-right{fill:#6e8193;text-anchor:start}.axis-label.x{text-anchor:middle}.series-line{fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.series-line.new{stroke:var(--green)}.series-line.resale{stroke:var(--coral)}.series-line.wage{stroke:var(--blue);stroke-width:2;stroke-dasharray:5 4}.series-point{stroke-width:2}.series-point.new{fill:#fff;stroke:var(--green)}.series-point.resale{fill:#fff;stroke:var(--coral)}.series-point.wage{fill:#fff;stroke:var(--blue)}.wage-source-note{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 18px;color:var(--muted);background:#f8faf9;border-top:1px solid var(--line);font-size:9px;line-height:1.5}.wage-source-note a{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;color:var(--blue);font-weight:600;text-decoration:none}.wage-source-note a:hover{text-decoration:underline}.hover-line{stroke:#9da7a2;stroke-width:1;stroke-dasharray:3 3}.chart-tooltip rect{fill:#18231f;opacity:.96}.chart-tooltip text{fill:#eef4f1;font-family:inherit;font-size:9px}.chart-tooltip .tooltip-month{fill:#a9b8b1;font-size:8px}.district-list{padding:10px 18px 14px}.district-row{min-height:50px;display:grid;grid-template-columns:62px 1fr;align-items:center;gap:10px;border-bottom:1px solid #edf0ee}.district-row:last-child{border-bottom:0}.district-name strong,.district-name span{display:block}.district-name strong{font-size:11px}.district-name span{margin-top:4px;color:var(--faint);font-size:9px}.bar-stack{display:grid;gap:5px}.bar-line{position:relative;height:9px;display:flex;align-items:center}.bar{height:5px;display:block;border-radius:1px}.bar.new{background:var(--green)}.bar.resale{background:var(--coral)}.bar-line em{position:absolute;right:0;padding-left:5px;color:var(--muted);background:#fff;font-size:8px;font-style:normal;font-variant-numeric:tabular-nums}.official-snapshot{min-height:86px;display:grid;grid-template-columns:minmax(270px,1fr) auto auto;align-items:center;gap:30px;margin:16px 0 31px;padding:15px 18px;background:#e9f2ef;border:1px solid #c9ded6;border-radius:6px}.official-heading{display:flex;align-items:center;gap:12px}.official-icon{width:35px;height:35px;display:grid;place-items:center;color:#eaf6f1;background:#236c55;border-radius:5px}.official-heading h2{margin:0;font-size:12px}.official-heading p{margin:5px 0 0;color:#64766f;font-size:9px}.official-numbers{display:flex;align-items:center;gap:26px}.official-numbers>div{min-width:110px}.official-numbers span{display:block;margin-bottom:4px;color:#64766f;font-size:9px}.official-numbers strong{font-size:20px}.official-numbers small{margin-left:3px;color:#798a84;font-size:9px}.source-link{display:inline-flex;align-items:center;gap:6px;color:#235e4a;font-size:10px;font-weight:600;text-decoration:none;white-space:nowrap}.source-link:hover{text-decoration:underline}.records-heading>span{color:var(--faint);font-size:10px}.records-section{background:var(--surface);border:1px solid var(--line);border-radius:6px}.records-toolbar{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 13px;border-bottom:1px solid var(--line)}.segmented{padding:3px}.segmented button{min-width:94px;display:inline-flex;align-items:center;justify-content:center;gap:6px}.search-box{width:190px;height:32px;display:flex;align-items:center;gap:7px;padding:0 9px;color:var(--faint);background:#f8faf9;border:1px solid var(--line);border-radius:5px}.search-box:focus-within{border-color:#7e9189;box-shadow:0 0 0 2px #087d5b1a}.search-box input{width:100%;padding:0;color:var(--ink);background:transparent;border:0;outline:0;font-size:11px}.search-box input::placeholder{color:#a3aaa7}.table-shell{overflow-x:auto}table{width:100%;min-width:840px;border-collapse:collapse}th,td{height:47px;padding:0 15px;border-bottom:1px solid #edf0ee;text-align:left;white-space:nowrap}th{height:38px;color:var(--muted);background:#f8faf9;font-size:10px;font-weight:600}td{color:#4e5954;font-size:11px}tbody tr:last-child td{border-bottom:0}tbody tr:hover td{background:#fbfcfc}td strong{color:var(--ink);font-weight:600}.align-right{text-align:right}.price-cell{color:var(--ink);font-weight:700;font-variant-numeric:tabular-nums}.nature-tag{display:inline-flex;align-items:center;min-height:21px;padding:0 7px;color:#27634f;background:var(--green-soft);border-radius:3px;font-size:9px}.nature-tag.listing{color:#6b5728;background:#f4ead2}.confidence{width:20px;height:20px;display:inline-grid;place-items:center;margin-right:6px;border-radius:3px;font-size:9px;font-weight:700}.confidence-A{color:#176449;background:#d9eee6}.confidence-B{color:#37618a;background:#e0eaf4}.confidence-C{color:#8b6630;background:#f4ead7}.empty-state{padding:44px;color:var(--muted);text-align:center;font-size:12px}.drawer-layer{position:fixed;inset:0;z-index:50;display:flex;justify-content:flex-end;background:#1219166b;animation:fade-in .15s ease-out}.source-drawer{width:min(430px,100%);height:100%;overflow-y:auto;padding:23px;background:#fff;box-shadow:-16px 0 42px #141f1a29;animation:drawer-in .18s ease-out}.content-editor{width:min(500px,100%)}.editor-section{padding:20px 0;border-bottom:1px solid var(--line)}.editor-section:last-child{border-bottom:0}.editor-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.editor-section-heading strong,.editor-section-heading span{display:block}.editor-section-heading strong{font-size:13px}.editor-section-heading span{margin-top:4px;color:var(--muted);font-size:10px}.editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.editor-field{display:grid;gap:6px;margin-top:12px}.editor-grid .editor-field{margin-top:0}.editor-field>span{color:var(--muted);font-size:10px;font-weight:600}.editor-field input{width:100%;height:36px;min-width:0;padding:0 10px;color:var(--ink);background:#fff;border:1px solid var(--line-strong);border-radius:5px;outline:none}.editor-field input:focus{border-color:#23836a;box-shadow:0 0 0 3px #087d5b1a}.number-input{position:relative}.number-input input{padding-right:52px}.number-input small{position:absolute;top:50%;right:10px;color:var(--faint);font-size:9px;transform:translateY(-50%);pointer-events:none}.editor-footnote{margin:14px 0 0;color:var(--muted);font-size:10px;line-height:1.65}.drawer-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:19px;border-bottom:1px solid var(--line)}.drawer-header h2{margin:0;font-size:18px}.drawer-header p{margin:7px 0 0;color:var(--muted);font-size:11px;line-height:1.6}.source-list{padding:11px 0 0}.source-item{padding:15px 0;border-bottom:1px solid var(--line)}.source-item-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.source-item-top>div:first-child{display:flex;align-items:center;gap:7px}.source-item-top strong{font-size:12px}.source-item-top span{color:var(--faint);font-size:9px}.source-item>p{margin:7px 0 11px;color:var(--muted);font-size:10px}.source-status{display:inline-flex;align-items:center;gap:5px;font-size:9px;font-weight:600}.source-status.connected{color:var(--green)}.source-status.adapting{color:#8a6929}.source-status.planned{color:#7a7f7d}.source-status.error{color:#b74836}.source-item>.source-detail{margin-top:-5px;color:#3f6658}.source-meta{display:flex;align-items:center;justify-content:space-between;color:var(--faint);font-size:9px}.source-meta a,.city-source a{display:inline-flex;align-items:center;gap:5px;color:var(--green);font-weight:600;text-decoration:none}.source-meta a:hover,.city-source a:hover{text-decoration:underline}.city-source{margin-top:18px;padding:16px;background:#f4f8f6;border:1px solid #d9e4df;border-radius:5px}.city-source>div{display:flex;align-items:center;gap:8px}.city-source strong{font-size:12px}.city-source p{margin:9px 0 13px;color:var(--muted);font-size:10px;line-height:1.65}.city-source a{font-size:10px}.method-note{display:flex;align-items:flex-start;gap:10px;margin-top:16px;padding:14px;color:#665632;background:#fff8e9;border:1px solid #eadbb8;border-radius:5px}.method-note>svg{flex:0 0 auto;margin-top:1px}.method-note strong{font-size:11px}.method-note p{margin:6px 0 0;font-size:10px;line-height:1.65}.toast{position:fixed;z-index:80;right:24px;bottom:24px;min-height:42px;display:flex;align-items:center;gap:8px;padding:0 14px;color:#eff7f3;background:#1b2b24;border:1px solid #1b2b24;border-radius:5px;box-shadow:var(--shadow);font-size:11px;animation:toast-in .18s ease-out}.toast.error{color:#8d3327;background:#fff3f0;border-color:#eccbc4}.spin{animation:spin .75s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.35;transform:scale(.85)}}@keyframes fade-in{0%{opacity:0}}@keyframes drawer-in{0%{transform:translate(24px);opacity:0}}@keyframes toast-in{0%{transform:translateY(8px);opacity:0}}@media(max-width:1120px){.topbar,main{padding-left:24px;padding-right:24px}.metric{padding-left:18px;padding-right:18px}.metric strong{font-size:19px}.rent-ratio-note{grid-template-columns:1fr 1fr}.rent-ratio-title{grid-column:1 / -1}.rent-formula:first-of-type{padding-left:0;border-left:0}.city-compare-picker{grid-template-columns:repeat(6,minmax(82px,1fr))}.single-city-options{grid-template-columns:repeat(4,minmax(120px,1fr))}.analytics-grid{grid-template-columns:1fr}.mortgage-layout{grid-template-columns:minmax(300px,.85fr) minmax(380px,1.15fr)}.district-list{display:grid;grid-template-columns:1fr 1fr;column-gap:28px}}@media(max-width:840px){.topbar{height:66px;padding:0 18px}.sync-note{display:none}main{padding:18px 18px 42px}.single-city-options{grid-template-columns:repeat(3,minmax(110px,1fr))}.metric-strip{grid-template-columns:1fr 1fr}.metric:nth-child(2n){border-right:0}.metric:nth-child(-n+4){border-bottom:1px solid var(--line)}.metric:last-child{grid-column:1 / -1;border-bottom:0}.city-compare-picker{grid-template-columns:repeat(4,minmax(82px,1fr))}.official-snapshot{grid-template-columns:1fr auto}.source-link{grid-column:1 / -1}.mortgage-layout{grid-template-columns:1fr}}@media(max-width:620px){.topbar{padding-inline:13px}.header-actions .secondary-button{width:34px;padding:0;font-size:0}.content-editor{padding:18px}.editor-grid{grid-template-columns:1fr}.mortgage-input-panel,.mortgage-result-panel{padding:16px}.mortgage-fields{grid-template-columns:1fr}.derived-loan,.loan-split-summary{grid-column:auto}.mortgage-primary-result strong{font-size:25px}.mortgage-summary{grid-template-columns:1fr}.mortgage-summary>div,.mortgage-summary>div:nth-child(2n){border-right:0;border-bottom:1px solid var(--line)}.mortgage-summary>div:last-child{border-bottom:0}.mortgage-schedule .records-toolbar{gap:12px}.mortgage-schedule .table-actions{align-items:flex-end}main{padding:14px 12px 36px}.demo-notice{align-items:flex-start;flex-wrap:wrap;line-height:1.5}.demo-notice button{margin-left:24px}.view-tabs{gap:22px;margin-bottom:20px;overflow-x:auto}.view-tabs button{flex:0 0 auto}.single-city-toolbar{align-items:flex-start;flex-direction:column;gap:13px}.city-picker-trigger{width:100%}.single-city-picker-heading{align-items:flex-start;flex-direction:column;gap:4px}.single-city-options{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-strip{grid-template-columns:1fr}.metric{grid-column:auto;min-height:101px;border-right:0;border-bottom:1px solid var(--line)}.metric:nth-child(3){border-bottom:1px solid var(--line)}.metric:last-child{grid-column:auto;border-bottom:0}.metric strong{font-size:22px}.rent-ratio-note{grid-template-columns:1fr;gap:13px;padding:14px}.rent-ratio-title{grid-column:auto}.rent-formula,.rent-formula:first-of-type{padding:11px 0 0;border-top:1px solid #e4d3ad;border-left:0}.analysis-heading,.records-heading{align-items:flex-start;flex-direction:column}.trend-filters{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:7px;padding:7px}.trend-filters>svg{display:none}.trend-filters label{min-width:0;display:grid;align-items:stretch;gap:3px}.trend-filters select{width:100%;min-width:0;padding-right:18px;font-size:9px}.range-separator{align-self:end;padding-bottom:8px}.comparison-heading{align-items:flex-start}.comparison-heading-actions{width:100%;flex-wrap:wrap}.comparison-sort,.comparison-sort select{min-width:0;flex:1}.selection-count{width:100%}.city-compare-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.comparison-controls{width:100%;align-items:stretch;flex-direction:column}.comparison-controls .change-mode{width:100%}.comparison-controls .change-mode button{flex:1}.comparison-legend{justify-content:flex-start;flex-wrap:wrap;gap:8px 14px;padding-bottom:3px}.comparison-chart-panel .chart-wrap{overflow-x:auto}.active-period{line-height:1.5}.panel-header{align-items:flex-start;flex-direction:column}.trend-panel-actions,.chart-legend{align-self:stretch}.trend-panel-actions{flex-wrap:wrap}.change-mode,.change-mode button,.chart-legend button{flex:1}.chart-wrap{padding-inline:3px}.trend-chart{min-width:570px}.trend-panel .chart-wrap{overflow-x:auto}.wage-source-note{align-items:flex-start;flex-direction:column}.district-list{display:block}.official-snapshot{grid-template-columns:1fr;gap:16px}.official-numbers{justify-content:space-between}.records-toolbar{align-items:stretch;flex-direction:column}.segmented{width:100%}.segmented button{flex:1}.table-actions{width:100%}.search-box{flex:1;width:auto}.records-heading>span{display:none}.toast{right:12px;bottom:12px;left:12px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
