:root {
    --bg: #f4f6f8;
    --panel: #ffffff;
    --panel-soft: #f8fafb;
    --text: #17212b;
    --muted: #697684;
    --line: #e3e8ed;
    --line-strong: #d4dce4;
    --accent: #c43d31;
    --accent-dark: #9f2e25;
    --accent-soft: #fff0ee;
    --blue: #2f6fad;
    --blue-soft: #edf5fd;
    --green: #18794e;
    --green-soft: #eaf8f1;
    --amber: #9a6700;
    --amber-soft: #fff8df;
    --shadow: 0 10px 30px rgba(27, 39, 51, .06);
    --radius: 18px;
    --radius-sm: 11px;
    --font: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 85% -10%, rgba(196, 61, 49, .055), transparent 27rem),
        var(--bg);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
button, select, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.is-hidden { display: none !important; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
    height: 72px;
    padding: 0 max(24px, calc((100vw - 1480px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 50;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--accent);
    border: 1px solid #efd5d1;
    border-radius: 13px;
    background: #fff8f7;
}
.brand-mark svg { width: 30px; height: 30px; }
.brand strong { display: block; font-size: 17px; letter-spacing: -.04em; }
.brand small { display: block; margin-top: 2px; color: #8a949e; font-size: 10px; letter-spacing: .08em; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.mode-badge {
    height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
}
.mode-badge i { width: 7px; height: 7px; border-radius: 50%; background: #9ba6af; }
.mode-badge.is-live { color: var(--green); border-color: #bfe8d4; background: #f2fbf6; }
.mode-badge.is-live i { background: #2aa86f; box-shadow: 0 0 0 4px rgba(42,168,111,.1); }
.mode-badge.is-demo { color: var(--amber); border-color: #eadca8; background: #fffaf0; }
.mode-badge.is-demo i { background: #d9a514; }
.icon-button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #596774;
    transition: .2s ease;
}
.icon-button:hover { color: var(--accent); border-color: #e7b9b3; transform: translateY(-1px); }
.icon-button svg { width: 20px; height: 20px; }
.icon-button.is-spinning svg { animation: spin .8s linear infinite; }

.main-content { width: min(1480px, calc(100% - 48px)); margin: 0 auto; padding: 38px 0 30px; flex: 1; }
.hero-section { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 24px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.eyebrow span { width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.hero-section h1 { margin: 8px 0 8px; font-size: clamp(28px, 3vw, 42px); line-height: 1.15; letter-spacing: -.055em; }
.hero-section h1 span { color: var(--accent); }
.hero-section p { margin: 0; color: var(--muted); font-size: 14px; }
.data-stamp { min-width: 230px; padding: 13px 16px; display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 4px 14px rgba(27,39,51,.03); }
.stamp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(24,121,78,.1); flex: 0 0 auto; }
.data-stamp.is-provisional .stamp-dot { background: #d69a09; box-shadow: 0 0 0 5px rgba(214,154,9,.12); }
.data-stamp small { display: block; color: #8b96a0; font-size: 10px; margin-bottom: 3px; }
.data-stamp strong { display: block; font-size: 13px; }

.filter-panel {
    padding: 17px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.month-group { grid-column: 1 / -2; }
.filter-panel > .primary-button { grid-column: -2 / -1; min-width: 150px; }
.filter-group label { display: block; margin: 0 0 7px 3px; color: #667480; font-size: 11px; font-weight: 700; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; border-right: 1.7px solid #7b8792; border-bottom: 1.7px solid #7b8792; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
select, input[type="month"] {
    width: 100%;
    height: 45px;
    padding: 0 14px;
    color: var(--text);
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: #fbfcfd;
    outline: none;
    transition: .18s ease;
}
select { appearance: none; padding-right: 38px; }
select:disabled { color: #a1aab2; background: #f3f5f6; cursor: not-allowed; }
select:focus, input[type="month"]:focus { border-color: #d79790; box-shadow: 0 0 0 4px rgba(196,61,49,.08); background: #fff; }
.month-range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.month-range span { color: #a2abb3; }
.primary-button {
    height: 45px;
    min-width: 124px;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: var(--accent);
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 8px 18px rgba(196,61,49,.2);
    transition: .18s ease;
}
.primary-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.primary-button svg { width: 18px; height: 18px; }

.notice-banner {
    margin-top: 14px;
    padding: 12px 15px;
    display: flex;
    gap: 11px;
    align-items: center;
    border: 1px solid #eadba8;
    border-radius: 12px;
    background: var(--amber-soft);
    color: #705300;
}
.notice-banner svg { width: 20px; height: 20px; flex: 0 0 auto; }
.notice-banner strong, .notice-banner span { font-size: 12px; }
.notice-banner span { margin-left: 6px; color: #836d27; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 18px 0 16px; }
.kpi-card { min-width: 0; padding: 20px 21px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi-card::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: -42px; top: -42px; background: radial-gradient(circle, rgba(196,61,49,.075), transparent 70%); }
.kpi-heading { display: flex; justify-content: space-between; align-items: center; color: #6e7a85; font-size: 12px; font-weight: 700; }
.kpi-heading i { width: 30px; height: 30px; border-radius: 9px; background: #f4f6f8; position: relative; }
.kpi-heading i::before, .kpi-heading i::after { content: ""; position: absolute; }
.icon-home::before { width: 12px; height: 10px; left: 9px; top: 11px; border: 1.6px solid #72808d; border-top: 0; }
.icon-home::after { width: 9px; height: 9px; left: 10px; top: 7px; border-left: 1.6px solid #72808d; border-top: 1.6px solid #72808d; transform: rotate(45deg); }
.icon-chart::before { left: 8px; bottom: 8px; width: 14px; height: 12px; border-left: 1.5px solid #72808d; border-bottom: 1.5px solid #72808d; }
.icon-chart::after { left: 10px; top: 10px; width: 12px; height: 7px; border-top: 1.7px solid #72808d; border-right: 1.7px solid #72808d; transform: skewY(-30deg); }
.icon-swap::before { left: 8px; top: 10px; width: 14px; height: 5px; border-top: 1.6px solid #72808d; border-bottom: 1.6px solid #72808d; }
.icon-swap::after { left: 8px; top: 7px; width: 14px; height: 14px; border-left: 1.6px solid #72808d; border-right: 1.6px solid #72808d; transform: skewY(-35deg); }
.icon-breadth::before { left: 8px; bottom: 7px; width: 3px; height: 8px; background: #72808d; box-shadow: 6px -4px 0 #72808d, 12px -9px 0 #72808d; border-radius: 2px 2px 0 0; }
.kpi-value { display: block; margin: 16px 0 12px; font-size: clamp(24px, 2.2vw, 31px); line-height: 1; letter-spacing: -.055em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value-button { width: auto; max-width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font-weight: 800; text-align: left; cursor: default; }
.kpi-value-button:not(:disabled) { color: var(--accent); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(196,61,49,.3); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.kpi-value-button:not(:disabled):hover { color: var(--accent-dark); text-decoration-color: currentColor; }
.kpi-value-button:not(:disabled):focus-visible { border-radius: 5px; outline: 3px solid rgba(196,61,49,.16); outline-offset: 4px; }
.kpi-value-button:disabled { opacity: 1; }
.kpi-foot { display: flex; align-items: center; gap: 7px; min-height: 22px; }
.kpi-foot small { color: #8a959f; font-size: 10px; }
.change { display: inline-flex; align-items: center; min-height: 21px; padding: 0 7px; border-radius: 7px; font-size: 10px; font-weight: 800; }
.change.positive { color: #b33228; background: #fff0ee; }
.change.negative { color: #2564a9; background: #edf5fd; }
.change.neutral { color: #697682; background: #f0f2f4; }

.period-summary-panel { margin: 0 0 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); box-shadow: var(--shadow); }
.period-summary-header { min-height: 61px; padding: 13px 20px 11px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #edf0f2; }
.period-summary-header h2 { margin: 0; font-size: 15px; letter-spacing: -.035em; }
.period-summary-header p { margin: 0; color: #8a959f; font-size: 9px; line-height: 1.45; text-align: right; }
.period-summary-scroll { overflow-x: auto; }
.period-summary-table { width: 100%; min-width: 720px; border-collapse: collapse; table-layout: fixed; }
.period-summary-table th { height: 35px; padding: 0 20px; background: #fafbfc; border-bottom: 1px solid #edf0f2; color: #8a959f; font-size: 9px; font-weight: 700; text-align: right; }
.period-summary-table th:first-child { width: 24%; text-align: left; }
.period-summary-table td { height: 51px; padding: 0 20px; border-bottom: 1px solid #f0f2f4; font-size: 12px; font-weight: 800; text-align: right; white-space: nowrap; }
.period-summary-table tbody tr:last-child td { border-bottom: 0; }
.period-summary-table tbody tr:hover { background: #fbfcfd; }
.period-summary-table td:first-child { text-align: left; }
.period-summary-label strong { display: block; color: var(--text); font-size: 11px; }
.period-summary-label small { display: block; margin-top: 3px; color: #98a2ab; font-size: 8px; font-weight: 600; }
.period-summary-table .breadth-positive { color: #b33228; }
.period-summary-table .breadth-negative { color: #2564a9; }
.period-summary-table .empty-cell { height: 70px; }

.province-comparison-panel { margin-bottom: 16px; }
.province-comparison-header { min-height: 82px; }
.province-comparison-controls { min-height: 84px; padding: 13px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #edf0f2; background: #fbfcfd; }
.province-comparison-filters { min-width: 0; display: flex; flex-wrap: wrap; gap: 9px 16px; }
.comparison-filter-loading { color: #8a959f; font-size: 10px; }
.comparison-filter-group { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding-right: 14px; border-right: 1px solid #e3e8ed; }
.comparison-filter-group:last-child { padding-right: 0; border-right: 0; }
.comparison-filter-group-title, .comparison-filter-option { min-height: 28px; display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border: 1px solid #e1e6ea; border-radius: 8px; background: #fff; color: #64727e; font-size: 9px; font-weight: 700; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.comparison-filter-group-title { color: #293845; background: #f0f3f5; font-weight: 900; }
.comparison-filter-group-title:hover, .comparison-filter-option:hover { border-color: #d9aaa4; color: var(--accent); }
.comparison-filter-group input { width: 13px; height: 13px; margin: 0; accent-color: var(--accent); }
.comparison-filter-option i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--series-color, #8fb1d2); box-shadow: 0 0 0 2px color-mix(in srgb, var(--series-color, #8fb1d2) 15%, transparent); }
.province-comparison-actions { flex: 0 0 auto; display: inline-flex; gap: 5px; }
.province-comparison-actions button { height: 29px; padding: 0 9px; border: 1px solid #dde3e8; border-radius: 8px; background: #fff; color: #65727e; font-size: 9px; font-weight: 800; }
.province-comparison-actions button:hover, .province-comparison-actions button:focus-visible { border-color: #d7a29c; color: var(--accent); outline: none; }
.province-comparison-status-row { min-height: 36px; padding: 8px 20px 0; display: flex; justify-content: space-between; gap: 18px; color: #8a959f; font-size: 9px; }
.province-comparison-status-row p { margin: 0; }
.province-comparison-status-row p:first-child { color: #667480; font-weight: 800; }
.province-comparison-chart-scroll { overflow-x: auto; overscroll-behavior-inline: contain; }
.province-comparison-chart-wrap { position: relative; min-width: 880px; height: 430px; padding: 0 12px 8px; }
.province-comparison-chart { width: 100%; height: 100%; overflow: visible; }
.comparison-bar-key { width: 9px; height: 9px; border-radius: 2px; background: #8fb1d2; }
.comparison-line-key { width: 17px; height: 2px; border-radius: 2px; background: var(--accent); }
.comparison-volume-bar { fill: #8fb1d2; opacity: .78; transition: opacity .15s ease, fill .15s ease; }
.comparison-change-line { fill: none; stroke: var(--accent); stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(196,61,49,.14)); }
.comparison-change-point { fill: #fff; stroke: var(--accent); stroke-width: 2.2; transition: r .12s ease, fill .12s ease; }
.comparison-change-point.is-positive { stroke: #b33228; }
.comparison-change-point.is-negative { stroke: #2564a9; }
.comparison-change-point.is-hovered { r: 5.5; fill: var(--accent); }
.comparison-zero-line { stroke: #c5cdd4; stroke-width: 1.2; stroke-dasharray: 4 4; }
.comparison-group-divider { stroke: #e3e8ed; stroke-width: 1; stroke-dasharray: 3 4; }
.comparison-axis-title { fill: #697783; font-family: var(--font); font-size: 9px; font-weight: 800; }
.comparison-x-label { fill: #667480; font-family: var(--font); font-size: 9px; font-weight: 800; text-anchor: end; }
.comparison-hit { fill: transparent; cursor: crosshair; }
.comparison-series-line { fill: none; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; opacity: .86; transition: opacity .15s ease, stroke-width .15s ease; }
.comparison-series-line.is-hovered { stroke-width: 4; opacity: 1; }
.comparison-series-point { stroke: #fff; stroke-width: 1.4; opacity: .92; transition: r .12s ease, opacity .12s ease; }
.comparison-series-point.is-hovered { r: 5.5; opacity: 1; }
.comparison-month-guide { stroke: #9eabb5; stroke-width: 1; stroke-dasharray: 3 4; opacity: 0; pointer-events: none; }
.comparison-month-guide.is-visible { opacity: .65; }

.dashboard-grid { display: grid; grid-template-columns: minmax(480px, .88fr) minmax(560px, 1.35fr); gap: 16px; }
.lower-grid { display: grid; grid-template-columns: minmax(600px, 1.25fr) minmax(360px, .75fr); gap: 16px; margin-top: 16px; }
.panel { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-header { min-height: 74px; padding: 19px 22px 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #edf0f2; }
.panel-kicker { display: block; margin-bottom: 4px; color: #9aa4ad; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.panel-header h2 { margin: 0; font-size: 17px; letter-spacing: -.035em; }
.panel-period { padding: 5px 8px; color: #6b7884; background: #f4f6f7; border-radius: 7px; font-size: 10px; font-weight: 700; }
.map-header-actions { display: flex; align-items: center; gap: 9px; }
.panel-size-controls { height: 30px; display: inline-flex; align-items: center; padding: 2px; border: 1px solid #e2e7eb; border-radius: 9px; background: #f7f8f9; }
.panel-size-controls button { width: 27px; height: 24px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #55636f; font-size: 18px; font-weight: 600; line-height: 1; }
.panel-size-controls button:hover:not(:disabled), .panel-size-controls button:focus-visible { background: #fff; color: var(--accent); box-shadow: 0 2px 7px rgba(20,35,48,.09); outline: none; }
.panel-size-controls button:disabled { color: #bdc5cb; cursor: not-allowed; }
.panel-size-controls span { min-width: 34px; color: #7a8792; font-size: 8px; font-weight: 800; text-align: center; }

.map-body { min-height: 430px; display: grid; grid-template-columns: minmax(0, 1fr) 145px; gap: 5px; padding: 11px 17px 18px 9px; align-items: center; }
.region-map-shell { position: relative; width: 100%; height: 450px; max-height: 450px; overflow: hidden; border-radius: 13px; background: #f5f7f8; isolation: isolate; transition: height .22s ease, max-height .22s ease; }
.province-map { width: 100%; height: 100%; max-height: 450px; overflow: visible; transition: opacity .18s ease, visibility .18s ease; }
.dynamic-region-map { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; background: #eef1f3; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, visibility .18s ease; }
.region-map-shell.is-dynamic .dynamic-region-map { opacity: 1; visibility: visible; pointer-events: auto; }
.region-map-shell.is-dynamic .province-map { opacity: 0; visibility: hidden; pointer-events: none; }
.map-breadcrumb { position: absolute; z-index: 40; top: 10px; left: 10px; display: none; align-items: center; max-width: calc(100% - 112px); padding: 4px; border: 1px solid rgba(218,224,229,.95); border-radius: 10px; background: rgba(255,255,255,.94); box-shadow: 0 4px 14px rgba(25,39,52,.12); backdrop-filter: blur(7px); }
.region-map-shell.is-dynamic .map-breadcrumb { display: flex; }
.map-breadcrumb button { position: relative; min-width: 42px; height: 30px; max-width: 145px; overflow: hidden; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: #5d6974; font-family: var(--font); font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.map-breadcrumb button:not(:first-child) { padding-left: 18px; }
.map-breadcrumb button:not(:first-child)::before { content: "›"; position: absolute; left: 5px; color: #a0a9b1; font-size: 13px; }
.map-breadcrumb button:hover, .map-breadcrumb button:focus-visible { color: var(--accent); background: #f5f7f8; outline: none; }
.map-breadcrumb button[aria-current="location"] { color: #1f2c37; background: #eef1f3; }
.map-level-badge { position: absolute; z-index: 39; top: 55px; left: 10px; display: none; min-height: 25px; align-items: center; padding: 0 9px; border: 1px solid rgba(218,224,229,.95); border-radius: 8px; background: rgba(255,255,255,.92); color: #596671; font-size: 9px; font-weight: 800; box-shadow: 0 3px 10px rgba(25,39,52,.08); }
.region-map-shell.is-dynamic .map-level-badge { display: inline-flex; }
.map-mode-status { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; padding: 0; border: 0; clip: rect(0 0 0 0); white-space: nowrap; }
.dynamic-region-map .map_zoom, .dynamic-region-map .map_scale, .dynamic-region-map .naver-map-logo { z-index: 45; }
.amw-apartment-marker {
    position: relative;
    min-width: 58px;
    max-width: 118px;
    padding: 6px 8px 5px;
    border: 1px solid rgba(255,255,255,.96);
    border-radius: 10px;
    background: #22313d;
    color: #fff;
    box-shadow: 0 4px 12px rgba(20,32,42,.26);
    font-family: var(--font);
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.amw-apartment-marker:hover, .amw-apartment-marker:focus-visible { transform: translateY(-2px); outline: none; box-shadow: 0 7px 16px rgba(20,32,42,.31); }
.amw-apartment-marker.is-selected { background: var(--accent); box-shadow: 0 0 0 3px rgba(196,61,49,.2), 0 7px 16px rgba(20,32,42,.28); }
.amw-apartment-marker .marker-name { display: block; overflow: hidden; font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.amw-apartment-marker .marker-volume { display: block; margin-top: 3px; color: #ffe6e2; font-size: 10px; font-weight: 900; }
.amw-apartment-marker.is-cluster { min-width: 64px; border-radius: 18px; background: #245b9e; }
.amw-apartment-marker.is-cluster .marker-name { font-size: 8px; }
.amw-apartment-marker.is-cluster .marker-volume { color: #fff; }
.province-shape-layer { filter: drop-shadow(0 5px 7px rgba(34,48,60,.08)); }
.province-node { cursor: pointer; outline: none; }
.province-node .province-shape { stroke: rgba(255,255,255,.92); stroke-width: 1.7; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: stroke .16s ease, stroke-width .16s ease, filter .16s ease, opacity .16s ease; }
.province-node:hover .province-shape, .province-node:focus .province-shape { stroke: #17232d; stroke-width: 2.8; filter: brightness(1.05); }
.province-node.is-selected .province-shape { stroke: #111a22; stroke-width: 3.4; filter: brightness(1.05) drop-shadow(0 2px 2px rgba(17,26,34,.22)); }
.province-label-layer { pointer-events: none; }
.map-region-label { pointer-events: none; }
.map-label, .map-value { font-family: var(--font); font-weight: 900; text-anchor: middle; dominant-baseline: middle; pointer-events: none; paint-order: stroke; stroke: rgba(255,255,255,.62); stroke-width: 2.4px; stroke-linejoin: round; }
.map-label { font-size: 11px; }
.map-value { font-size: 8px; opacity: .92; }
.map-region-label.is-compact .map-label { font-size: 8px; stroke-width: 1.8px; }
.map-side { align-self: stretch; padding: 22px 0 8px 8px; border-left: 1px solid #edf0f2; display: flex; flex-direction: column; }
.map-callout { padding: 12px 12px 13px; border-radius: 12px; background: var(--panel-soft); border: 1px solid #edf0f2; }
.map-callout small { display: block; color: #8b96a0; font-size: 9px; margin-bottom: 5px; }
.map-callout strong { display: block; font-size: 14px; line-height: 1.35; }
.map-callout span { display: block; margin-top: 5px; color: var(--accent); font-size: 11px; font-weight: 800; }
.legend { display: grid; gap: 8px; margin-top: 18px; }
.legend span { display: flex; align-items: center; gap: 7px; color: #697681; font-size: 9px; white-space: nowrap; }
.legend i { width: 13px; height: 9px; border-radius: 3px; background: var(--legend); }
.map-note { margin: auto 0 0; color: #9aa4ac; font-size: 8px; line-height: 1.45; }
.map-note a { color: inherit; text-decoration-color: #c5ccd1; text-underline-offset: 2px; }
.map-note a:hover { color: #687680; }
.map-note.is-hidden { display: none; }

.map-panel.is-compact .map-body { min-height: 330px; }
.map-panel.is-compact .region-map-shell { height: 340px; max-height: 340px; }
.map-panel.is-compact .province-map { max-height: 340px; }
.map-panel.is-expanded { grid-column: 1 / -1; }
.dashboard-grid.has-expanded-map .trend-panel { grid-column: 1 / -1; }
.map-panel.is-expanded .map-body { min-height: 600px; grid-template-columns: minmax(0, 1fr) 210px; gap: 12px; padding: 14px 20px 20px 12px; }
.map-panel.is-expanded .region-map-shell { height: clamp(580px, 70vh, 760px); max-height: none; }
.map-panel.is-expanded .province-map { max-height: none; }
.map-panel.is-expanded .map-side { padding-left: 14px; }

.chart-legend { display: flex; align-items: center; gap: 13px; color: #71808d; font-size: 9px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { display: inline-block; }
.line-key { width: 16px; height: 2px; border-radius: 2px; background: var(--accent); }
.bar-key { width: 8px; height: 8px; border-radius: 2px; background: #b8c8d7; }
.chart-wrap { height: 430px; padding: 10px 13px 8px; position: relative; }
.trend-chart { width: 100%; height: 100%; overflow: visible; }
.chart-grid { stroke: #edf0f2; stroke-width: 1; }
.chart-axis-label { fill: #89949e; font-family: var(--font); font-size: 9px; }
.chart-x-label { fill: #8d98a2; font-family: var(--font); font-size: 9px; text-anchor: middle; }
.chart-bar { fill: #cbd7e1; opacity: .65; transition: opacity .15s; }
.chart-area { opacity: .45; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 3px 5px rgba(196,61,49,.16)); }
.chart-point { fill: #fff; stroke: var(--accent); stroke-width: 2; }
.chart-hit { fill: transparent; cursor: crosshair; }
.chart-hit:hover + .chart-point, .chart-point.is-hovered { r: 5.5; fill: var(--accent); }
.chart-tooltip { position: absolute; z-index: 10; min-width: 145px; padding: 10px 11px; background: rgba(23,33,43,.94); color: #fff; border-radius: 9px; pointer-events: none; opacity: 0; transform: translate(-50%, -112%); transition: opacity .12s; box-shadow: 0 8px 20px rgba(0,0,0,.16); }
.chart-tooltip.is-visible { opacity: 1; }
.chart-tooltip strong { display: block; font-size: 11px; margin-bottom: 6px; }
.chart-tooltip span { display: flex; justify-content: space-between; gap: 14px; margin-top: 4px; color: #dce4ea; font-size: 9px; }
.chart-tooltip b { color: #fff; }
.empty-chart { fill: #8d98a2; font-family: var(--font); font-size: 13px; text-anchor: middle; }

.ranking-header { align-items: flex-end; }
.segmented { padding: 3px; display: inline-flex; gap: 2px; background: #f1f3f5; border-radius: 9px; }
.segmented button { height: 27px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: #77838e; font-size: 10px; font-weight: 700; }
.segmented button.is-active { background: #fff; color: var(--text); box-shadow: 0 2px 7px rgba(20,35,48,.08); }
.table-scroll { overflow-x: auto; }
.ranking-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ranking-table th { height: 39px; padding: 0 14px; background: #fafbfc; border-bottom: 1px solid #edf0f2; color: #8a959f; font-size: 9px; text-align: right; font-weight: 700; }
.ranking-table th:first-child { width: 58px; text-align: center; }
.ranking-table th:nth-child(2) { width: 31%; text-align: left; }
.ranking-table td { height: 47px; padding: 0 14px; border-bottom: 1px solid #f0f2f4; text-align: right; font-size: 11px; white-space: nowrap; }
.ranking-table tr:last-child td { border-bottom: 0; }
.ranking-table tbody tr { transition: background .15s; }
.ranking-table tbody tr:hover { background: #fbfcfd; }
.ranking-table td:first-child { text-align: center; color: #8a959f; font-weight: 700; }
.ranking-table td:nth-child(2) { text-align: left; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.rank-name { display: inline-flex; align-items: center; gap: 7px; border: 0; padding: 0; background: none; color: inherit; font-weight: 700; max-width: 100%; }
.rank-name:hover { color: var(--accent); }
.rank-name::after { content: "›"; color: #abb4bc; font-size: 14px; }
.rank-change { font-weight: 800; }
.rank-change.positive { color: #b33228; }
.rank-change.negative { color: #2564a9; }
.empty-cell { text-align: center !important; color: #98a2ab; padding: 35px !important; }

.auto-label { padding: 4px 7px; border-radius: 6px; color: #7e8993; background: #f3f5f6; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.insight-list { padding: 13px 16px 16px; display: grid; gap: 9px; }
.insight-card { padding: 12px; display: grid; grid-template-columns: 31px 1fr; gap: 10px; align-items: start; border: 1px solid #edf0f2; border-radius: 11px; background: #fbfcfd; }
.insight-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: #eff2f4; color: #61707c; font-size: 15px; font-weight: 900; }
.insight-card.positive .insight-icon { background: var(--accent-soft); color: var(--accent); }
.insight-card.negative .insight-icon { background: var(--blue-soft); color: var(--blue); }
.insight-card.caution .insight-icon { background: var(--amber-soft); color: var(--amber); }
.insight-card.accent .insight-icon { background: #f0edfb; color: #6553aa; }
.insight-card strong { display: block; font-size: 11px; margin: 1px 0 4px; }
.insight-card p { margin: 0; color: #73808c; font-size: 9px; line-height: 1.55; }
.skeleton-card { height: 66px; border-radius: 11px; background: linear-gradient(90deg,#f2f4f5 25%,#fafbfc 37%,#f2f4f5 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; }

.method-panel { margin-top: 16px; min-height: 66px; padding: 13px 18px; display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #eef1f3; border: 1px solid #e0e5e9; border-radius: 14px; }
.method-panel > div { display: flex; align-items: center; gap: 12px; }
.method-icon { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #bfc8d0; border-radius: 50%; color: #667480; font: 800 13px Georgia, serif; flex: 0 0 auto; }
.method-panel strong { display: block; font-size: 11px; margin-bottom: 3px; }
.method-panel p { margin: 0; color: #6f7b86; font-size: 10px; line-height: 1.45; }
.method-panel button { border: 0; background: transparent; color: #596875; font-size: 10px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.method-detail { margin-top: 8px; padding: 13px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: #687580; font-size: 10px; line-height: 1.6; }
.method-detail p { margin: 3px 0; }
.method-detail strong { color: var(--text); }

.error-panel { margin-top: 16px; padding: 21px; border: 1px solid #ebc3bf; border-radius: 14px; background: #fff5f3; color: #8f3028; }
.error-panel strong { font-size: 14px; }
.error-panel p { margin: 7px 0 12px; color: #8d5b57; font-size: 11px; }
.error-panel button { height: 34px; padding: 0 13px; border: 1px solid #d8a49f; border-radius: 8px; background: #fff; color: #8f3028; font-weight: 700; font-size: 10px; }

.footer { width: min(1480px, calc(100% - 48px)); margin: 0 auto; padding: 22px 0 30px; display: flex; justify-content: space-between; gap: 15px; color: #98a2ab; font-size: 9px; border-top: 1px solid #e5e9ec; }
.modal-open { overflow: hidden; }
.trade-modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 28px; background: rgba(17,27,36,.46); backdrop-filter: blur(5px); }
.trade-dialog { width: min(1240px, 100%); height: min(900px, calc(100vh - 32px)); max-height: calc(100vh - 32px); overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.85); border-radius: 19px; background: #fff; box-shadow: 0 28px 75px rgba(16,27,37,.25); }
.trade-dialog-header { min-height: 78px; flex: 0 0 auto; padding: 15px 22px 13px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e9edf0; }
.trade-dialog-heading { min-width: 0; flex: 1 1 auto; }
.trade-dialog-header h2 { margin: 0; overflow: hidden; font-size: 20px; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.trade-dialog-meta { min-width: 0; margin-top: 7px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.trade-dialog-header p { min-width: 0; margin: 0; overflow: hidden; color: #7e8a95; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.trade-dialog-close { width: 38px; height: 38px; flex: 0 0 auto; padding: 0 0 3px; border: 1px solid var(--line); border-radius: 11px; background: #f7f8f9; color: #5c6974; font-size: 25px; line-height: 1; }
.trade-dialog-close:hover, .trade-dialog-close:focus-visible { border-color: #e0aaa4; background: var(--accent-soft); color: var(--accent); outline: none; }
.trade-dialog-toolbar { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; color: #7d8993; font-size: 10px; white-space: nowrap; }
.trade-dialog-toolbar span:first-child { color: #4f5d69; font-weight: 800; }
.trade-scatter-panel { min-height: 0; flex: 0 0 218px; border-bottom: 1px solid #e9edf0; background: #fcfdfe; }
.trade-scatter-heading { height: 38px; padding: 6px 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.trade-scatter-title-row { min-width: 0; display: flex; align-items: center; gap: 11px; }
.trade-scatter-heading strong { color: #33414d; font-size: 11px; }
.trade-scatter-high-legend, .trade-scatter-average-legend, .trade-scatter-low-legend { display: inline-flex; align-items: center; gap: 5px; color: #657684 !important; font-size: 8px !important; font-weight: 700; }
.trade-scatter-high-legend i, .trade-scatter-average-legend i, .trade-scatter-low-legend i { width: 15px; height: 2px; flex: 0 0 auto; border-radius: 2px; }
.trade-scatter-high-legend i { background: repeating-linear-gradient(90deg, #b42318 0 5px, transparent 5px 8px); }
.trade-scatter-average-legend i { background: #245b9e; }
.trade-scatter-low-legend i { background: repeating-linear-gradient(90deg, #18794e 0 5px, transparent 5px 8px); }
.trade-scatter-tools { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.trade-scatter-tools label { flex: 0 0 auto; color: #6e7b86; font-size: 9px; font-weight: 800; }
.trade-scatter-area-select { width: auto; max-width: 270px; height: 27px; padding: 0 7px; border-radius: 7px; appearance: auto; background: #fff; color: #43515d; font-size: 9px; }
.trade-scatter-area-select:disabled { color: #9ca6ae; }
.trade-scatter-heading span { max-width: 360px; overflow: hidden; color: #87939d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.trade-scatter-chart-wrap { position: relative; height: 180px; padding: 0 13px 5px; }
.trade-scatter-chart { width: 100%; height: 100%; overflow: visible; }
.trade-scatter-point { fill: var(--accent); fill-opacity: .56; stroke: #fff; stroke-width: 1; cursor: crosshair; transition: r .12s ease, fill-opacity .12s ease, stroke-width .12s ease; }
.trade-scatter-point:hover, .trade-scatter-point.is-hovered { r: 5.7; fill-opacity: .95; stroke-width: 1.7; }
.trade-scatter-average-line { fill: none; stroke: #245b9e; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(36,91,158,.16)); }
.trade-scatter-average-point { fill: #fff; stroke: #245b9e; stroke-width: 2; cursor: crosshair; transition: r .12s ease, fill .12s ease; }
.trade-scatter-average-point:hover, .trade-scatter-average-point.is-hovered { r: 5.8; fill: #245b9e; }
.trade-scatter-high-line, .trade-scatter-low-line { fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 5 4; pointer-events: none; }
.trade-scatter-high-line { stroke: #b42318; }
.trade-scatter-low-line { stroke: #18794e; }
.trade-scatter-high-point, .trade-scatter-low-point { fill: #fff; stroke-width: 1.8; cursor: crosshair; transition: r .12s ease, fill .12s ease; }
.trade-scatter-high-point { stroke: #b42318; }
.trade-scatter-low-point { stroke: #18794e; }
.trade-scatter-high-point:hover, .trade-scatter-high-point.is-hovered { r: 5.6; fill: #b42318; }
.trade-scatter-low-point:hover, .trade-scatter-low-point.is-hovered { r: 5.6; fill: #18794e; }
.trade-scatter-extreme-point { fill: #fff; stroke-width: 3; cursor: crosshair; filter: drop-shadow(0 2px 3px rgba(25,39,52,.23)); transition: r .12s ease, fill .12s ease; }
.trade-scatter-extreme-point.is-high { stroke: #8f1d14; }
.trade-scatter-extreme-point.is-low { stroke: #11643f; }
.trade-scatter-extreme-point.is-both { stroke: #6d4aa0; }
.trade-scatter-extreme-point:hover, .trade-scatter-extreme-point.is-hovered { r: 8.2; }
.trade-scatter-extreme-point.is-high:hover, .trade-scatter-extreme-point.is-high.is-hovered { fill: #b42318; }
.trade-scatter-extreme-point.is-low:hover, .trade-scatter-extreme-point.is-low.is-hovered { fill: #18794e; }
.trade-scatter-extreme-point.is-both:hover, .trade-scatter-extreme-point.is-both.is-hovered { fill: #6d4aa0; }
.trade-scatter-extreme-label { font-family: var(--font); font-size: 10px; font-weight: 900; paint-order: stroke; stroke: #fff; stroke-width: 3.4px; stroke-linejoin: round; pointer-events: none; }
.trade-scatter-extreme-price { font-size: 10px; font-weight: 900; }
.trade-scatter-extreme-label.is-high { fill: #8f1d14; }
.trade-scatter-extreme-label.is-low { fill: #11643f; }
.trade-scatter-extreme-label.is-both { fill: #6d4aa0; }
.trade-scatter-axis-title { fill: #6f7c87; font-family: var(--font); font-size: 8.5px; font-weight: 800; }
.trade-scatter-tooltip { min-width: 175px; }
.trade-table-wrap { min-height: 0; flex: 1 1 auto; overflow: hidden; padding: 14px 16px 17px; }
#tradeTable { width: 100%; height: 100%; min-height: 0; }
#tradeTable.tabulator { border: 1px solid #dfe5e9; border-radius: 11px; background: #fff; font-family: var(--font); font-size: 11px; }
#tradeTable .tabulator-header { border-bottom: 1px solid #dfe5e9; background: #f4f6f8; color: #4f5d68; font-weight: 800; }
#tradeTable .tabulator-header .tabulator-col { border-right-color: #e2e7eb; background: #f4f6f8; }
#tradeTable .tabulator-header-filter { margin-top: 6px; }
#tradeTable .tabulator-header-filter input { width: 100%; height: 27px; padding: 0 7px; border: 1px solid #d8e0e6; border-radius: 6px; background: #fff; color: #34424e; font-family: var(--font); font-size: 9px; outline: none; }
#tradeTable .tabulator-header-filter input::placeholder { color: #a2abb3; }
#tradeTable .tabulator-header-filter input:focus { border-color: #d79790; box-shadow: 0 0 0 3px rgba(196,61,49,.08); }
#tradeTable .tabulator-row { min-height: 34px; border-bottom-color: #edf0f2; }
#tradeTable .tabulator-row:nth-child(even) { background: #fbfcfd; }
#tradeTable .tabulator-row:hover { background: #fff5f3; }
#tradeTable .tabulator-cell { padding: 7px 9px; border-right-color: #edf0f2; line-height: 1.25; }
#tradeTable .tabulator-footer { border-top: 1px solid #dfe5e9; background: #fafbfc; }
#tradeTable .tabulator-footer .tabulator-page-size { width: auto; height: 30px; margin: 4px 8px; padding: 0 28px 0 9px; border: 1px solid #dce2e7; border-radius: 6px; background-color: #fff; font-size: 10px; }
#tradeTable .tabulator-page { border-color: #dce2e7; border-radius: 6px; background: #fff; color: #5c6873; }
#tradeTable .tabulator-page.active { border-color: var(--accent); background: var(--accent); color: #fff; }
#tradeTable .tabulator-placeholder { color: #7c8994; }

.loading-overlay { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 13px; background: rgba(244,246,248,.82); backdrop-filter: blur(4px); color: #5f6c78; font-size: 11px; transition: opacity .18s; }
.loading-overlay.is-hidden { opacity: 0; pointer-events: none; display: flex !important; }
.spinner { width: 31px; height: 31px; border: 3px solid #e2e6e9; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

@media (max-width: 1180px) {
    .dashboard-grid, .lower-grid { grid-template-columns: 1fr; }
    .map-body { grid-template-columns: minmax(0, 1fr) 170px; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    .topbar { padding: 0 18px; }
    .brand small { display: none; }
    .main-content, .footer { width: calc(100% - 28px); }
    .main-content { padding-top: 25px; }
    .hero-section { align-items: flex-start; flex-direction: column; gap: 16px; }
    .data-stamp { min-width: 0; width: 100%; }
    .filter-panel { grid-template-columns: 1fr 1fr; }
    .month-group { grid-column: 1 / -1; }
    .filter-panel > .primary-button { grid-column: 1 / -1; }
    .map-body { grid-template-columns: 1fr; }
    .map-side { border-left: 0; border-top: 1px solid #edf0f2; padding: 14px 3px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .legend { margin-top: 0; }
    .map-note { grid-column: 1 / -1; }
    .region-map-shell { height: clamp(400px, 60vh, 560px); max-height: none; }
    .map-panel.is-expanded .map-body { min-height: 520px; grid-template-columns: 1fr; padding: 9px; }
    .map-panel.is-expanded .region-map-shell { height: clamp(500px, 68vh, 650px); }
    .chart-wrap { height: 390px; }
    .province-comparison-controls { align-items: flex-start; flex-direction: column; }
    .province-comparison-actions { align-self: flex-end; }
    .province-comparison-chart-wrap { height: 405px; }
    .trade-modal { padding: 14px; }
    .trade-dialog { height: calc(100vh - 28px); max-height: calc(100vh - 28px); border-radius: 15px; }
    .trade-dialog-header { min-height: 72px; padding: 13px 16px 11px; }
    .trade-scatter-panel { flex-basis: 205px; }
    .trade-scatter-chart-wrap { height: 167px; padding-right: 8px; padding-left: 8px; }
    .trade-table-wrap { padding: 10px; }
    #tradeTable { height: 100%; }
}

@media (max-width: 560px) {
    .topbar { height: 64px; }
    .brand-mark { width: 38px; height: 38px; }
    .brand strong { font-size: 15px; }
    .mode-badge { display: none; }
    .hero-section h1 { font-size: 29px; }
    .filter-panel { grid-template-columns: 1fr; padding: 14px; }
    .month-group, .filter-panel > .primary-button { grid-column: auto; }
    .month-range { grid-template-columns: 1fr; }
    .month-range span { display: none; }
    .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .kpi-card { padding: 16px 15px; }
    .kpi-value { font-size: 21px; }
    .trade-modal { padding: 0; }
    .trade-dialog { width: 100%; height: 100vh; max-height: 100vh; min-height: 100vh; border: 0; border-radius: 0; }
    .trade-dialog-header h2 { font-size: 17px; }
    .trade-dialog-meta { gap: 8px; }
    .trade-dialog-toolbar { gap: 8px; }
    .trade-dialog-toolbar span:last-child { display: none; }
    .trade-scatter-panel { flex-basis: 190px; }
    .trade-scatter-heading { padding-right: 12px; padding-left: 12px; }
    .trade-scatter-title-row { flex: 0 0 auto; }
    .trade-scatter-high-legend, .trade-scatter-average-legend, .trade-scatter-low-legend { display: none; }
    .trade-scatter-heading span { display: none; }
    .trade-scatter-area-select { max-width: 210px; }
    .trade-scatter-chart-wrap { height: 152px; padding-right: 4px; padding-left: 4px; }
    #tradeTable { height: 100%; min-height: 0; }
    .period-summary-header { align-items: flex-start; flex-direction: column; gap: 5px; padding: 13px 15px; }
    .period-summary-header p { text-align: left; }
    .period-summary-table { min-width: 0; }
    .period-summary-table thead { display: none; }
    .period-summary-table tbody, .period-summary-table tr { display: block; }
    .period-summary-table tr { padding: 13px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 11px 14px; border-bottom: 1px solid #edf0f2; }
    .period-summary-table tbody tr:last-child { border-bottom: 0; }
    .period-summary-table td { height: auto; padding: 0; border: 0; font-size: 11px; text-align: left; white-space: normal; }
    .period-summary-table td:first-child { grid-column: 1 / -1; padding-bottom: 8px; border-bottom: 1px dashed #e7ebee; }
    .period-summary-table td:not(:first-child)::before { content: attr(data-label); display: block; margin-bottom: 4px; color: #929ca5; font-size: 8px; font-weight: 700; }
    .province-comparison-header { align-items: flex-start; flex-direction: column; }
    .province-comparison-controls { padding: 12px 14px; }
    .province-comparison-filters { display: grid; gap: 9px; }
    .comparison-filter-group { padding: 0 0 9px; border-right: 0; border-bottom: 1px solid #e7ebee; }
    .comparison-filter-group:last-child { padding-bottom: 0; border-bottom: 0; }
    .province-comparison-status-row { padding: 9px 14px 0; flex-direction: column; gap: 3px; }
    .province-comparison-chart-wrap { min-width: 820px; height: 390px; }
    .panel-header { padding: 16px; }
    .map-panel .panel-header { align-items: stretch; flex-direction: column; gap: 10px; }
    .map-header-actions { width: 100%; justify-content: flex-start; gap: 10px; }
    .map-body { min-height: 390px; padding: 7px; }
    .region-map-shell { height: clamp(370px, 58vh, 470px); border-radius: 10px; }
    .map-breadcrumb { max-width: calc(100% - 94px); }
    .map-breadcrumb button { max-width: 105px; height: 34px; padding-right: 7px; padding-left: 7px; }
    .map-breadcrumb button:not(:first-child) { padding-left: 16px; }
    .map-level-badge { top: 59px; }
    .amw-apartment-marker { min-width: 42px; max-width: 54px; padding: 6px; border-radius: 14px; }
    .amw-apartment-marker:not(.is-cluster) .marker-name { display: none; }
    .amw-apartment-marker .marker-volume { margin-top: 0; }
    .map-side { grid-template-columns: 1fr; }
    .legend { grid-template-columns: 1fr 1fr; }
    .chart-wrap { height: 330px; padding: 5px; }
    .chart-legend { display: none; }
    .ranking-header { align-items: flex-start; flex-direction: column; }
    .ranking-table th, .ranking-table td { padding: 0 9px; }
    .ranking-table th:nth-child(3), .ranking-table td:nth-child(3) { display: none; }
    .ranking-table th:nth-child(2) { width: 42%; }
    .method-panel { align-items: flex-start; flex-direction: column; }
    .footer { flex-direction: column; }
}

@media (max-height: 760px) and (min-width: 561px) {
    .trade-scatter-panel { flex-basis: 170px; }
    .trade-scatter-chart-wrap { height: 132px; }
}
