.market-page {
    container-type: inline-size;
    padding: clamp(12px, 2.4vw, 24px);
    border: 1px solid #cadce8;
    border-radius: 14px;
    color: #1c3353;
    background: linear-gradient(115deg, #e4f1f9f5, #dfedf6ec), url("../assets/img/bg-city.png") center / cover;
    font: 14px/1.45 "Segoe UI", Arial, sans-serif;
}
.market-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.market-nav a { padding: 7px 12px; color: #29587f; background: #f6fbfe; border-radius: 7px; font-weight: 600; }
.market-nav [aria-current] { background: #24496d; color: white; }
.market-scope { margin: 12px 0; color: #405b72; }
.market-ledgers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.market-panel { min-width: 0; padding: 16px clamp(10px,1.5vw,20px) 8px; background: #fcfeff; border: 1px solid #d2e3ec; border-radius: 14px; }
.market-panel h2 { color: #152d4d; font-size: 18px; font-weight: 700; letter-spacing: -.025em; }
.market-panel p { margin: 2px 0 11px; color: #536981; font-size: 13px; }
.market-panel table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.market-panel th, .market-panel td { padding: 6px 2px; border-bottom: 1px solid #dbe7ef; text-align: right; }
.market-panel thead th { color: #516c84; font-size: 12px; }
.market-panel th:first-child, .market-panel td:first-child, .market-panel th:nth-child(2) { text-align: left; }
.market-panel tbody tr:last-child > * { border-bottom: 0; }
.market-item { display: inline-flex; align-items: center; gap: 7px; color: #255b87; font-weight: 600; text-decoration: none; }
.market-item:hover { text-decoration: underline; }
.market-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 6px; background: #eaf4fa; }
.market-total { color: #182e4d; font-weight: 700; }
.market-note { margin: 10px 0 0; color: #405b72; font-size: 12px; }
.market-panel .market-empty { text-align: left; padding: 15px 0; color: #526b80; }
.market-scroll { overflow-x: auto; }
@container (max-width: 700px) { .market-ledgers { grid-template-columns: minmax(0,1fr); } }
@container (max-width: 580px) {
    .market-stock thead { position: absolute; clip-path: inset(100%); width: 1px; height: 1px; overflow: hidden; }
    .market-stock tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 9px 0; border-bottom: 1px solid #d5e4ed; }
    .market-stock tbody th, .market-stock tbody td { border: 0; text-align: left; padding: 0; }
    .market-stock tbody td:first-child, .market-stock tbody th { grid-row: 1; align-self: center; }
    .market-stock tbody td:first-child { grid-column: 1; }
    .market-stock tbody th { grid-column: 1/-1; margin-left: 23px; }
    .market-stock td[data-label] { display: flex; justify-content: space-between; gap: 3px; }
    .market-stock td[data-label]::before { content: attr(data-label); color: #536981; font-size: 12px; }
    .market-stock .market-total, .market-stock .market-empty { grid-column: 1/-1; }
}

.market-wrap { margin: 24px auto; }
#hero, .home-social-list { display: none; }
#main-cont.global-container { margin: 118px auto 24px; padding: 12px; }
.market-panel h2 { margin: 0; padding: 0; line-height: 1.3; }
.market-panel a.market-item { color: #255b87; }
.market-page .market-local-sample { color: #47627d; font-size: 13px; }
.market-page h1 { margin: 14px 0 0; color: #182f50; font-size: clamp(24px,4vw,32px); font-weight: 700; }
