.market-shell {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    min-height: 100vh;
    background: #f4f6fa;
}
.market-shell > .market-content {
    width: min(100%, 1280px);
    padding: 28px clamp(18px, 3vw, 44px) 48px;
    margin: 0 auto;
    min-width: 0;
}
.market-sidebar {
    position: sticky;
    top: 0;
    z-index: 2;
    align-self: start;
    height: 100vh;
    overflow-y: auto;
    background: #fff;
    border-right: 1px solid #e8ebf1;
    padding: 26px 16px;
}
.market-brand { display: block; padding: 0 10px 28px; }
.market-brand img { display: block; width: min(190px, 100%); }
.market-side-label {
    margin: 0 10px 8px;
    color: #8791a4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
}
.market-side-nav { display: grid; gap: 4px; }
.market-side-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border-radius: 9px;
    color: #4c5870;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}
.market-side-nav a:hover,
.market-side-nav a[aria-current="page"] { background: #edf3ff; color: #185adb; }
.market-nav-icon { flex: 0 0 20px; text-align: center; font-size: 16px; }
.market-side-nav .market-child {
    position: relative;
    margin-left: 18px;
    padding: 9px 11px;
    gap: 9px;
    color: #59667c;
    font-size: 13px;
}
.market-child .market-nav-icon { flex-basis: 15px; font-size: 13px; }
.market-child::before {
    content: "";
    position: absolute;
    left: -10px;
    top: -4px;
    bottom: -4px;
    border-left: 1px solid #dce5f1;
}
.market-parent + .market-child::before { top: 50%; }
.market-child:has(+ .market-nav-divider)::before { bottom: 50%; }
.market-nav-divider { border-top: 1px solid #dce5f1; margin: 0 10px; }
@media (max-width: 900px) {
    .market-shell { display: block; }
    .market-sidebar { height: auto; padding: 12px 14px 0; border-right: 0; border-bottom: 1px solid #e8ebf1; }
    .market-brand { padding: 0 4px 12px; }
    .market-brand img { width: 156px; }
    .market-side-label, .market-child::before { display: none; }
    .market-side-nav { display: flex; overflow-x: auto; padding-bottom: 12px; }
    .market-side-nav a, .market-side-nav .market-child {
        flex-shrink: 0;
        margin: 0;
        padding: 8px 10px;
        gap: 7px;
        font-size: 12px;
        white-space: nowrap;
    }
    .market-side-nav .market-nav-icon { flex-basis: 14px; font-size: 14px; }
    .market-nav-divider { margin: 3px 2px; border-top: 0; border-left: 1px solid #dce5f1; }
    .market-shell > .market-content { padding-top: 20px; }
}
