.market-module-page,
.market-module-page *{
    box-sizing:border-box;
}

.market-module-page{
    width:min(1240px,calc(100% - 30px));
    max-width:100%;
    margin:0 auto;
    padding:24px 0 110px;
    overflow:hidden;
}

.market-module-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:26px;
    border-radius:24px;
    color:#fff;
    background:linear-gradient(135deg,#073d27,#0d7040);
}

.market-module-header h1{
    margin:6px 0;
    font-size:clamp(30px,5vw,48px);
    line-height:1.05;
}

.market-module-header p{
    margin:0;
    color:rgba(255,255,255,.82);
}

.market-module-actions{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
}

.market-module-actions a,
.market-module-actions button{
    min-height:44px;
    padding:10px 15px;
    border:1px solid rgba(255,255,255,.22);
    border-radius:12px;
    color:#fff;
    background:rgba(255,255,255,.08);
    font-weight:900;
    text-decoration:none;
}

.market-module-metrics{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin-top:18px;
}

.market-module-card{
    min-width:0;
    padding:18px;
    border:1px solid #dce8e0;
    border-radius:18px;
    background:#fff;
    box-shadow:0 10px 28px rgba(13,58,35,.06);
}

.market-module-card small{
    display:block;
    color:#68776f;
    font-weight:800;
}

.market-module-card strong{
    display:block;
    margin-top:8px;
    color:#0b6b3a;
    font-size:28px;
    overflow-wrap:anywhere;
}

.market-module-grid{
    display:grid;
    grid-template-columns:minmax(0,2fr) minmax(280px,1fr);
    gap:18px;
    margin-top:18px;
}

.market-module-table-wrap{
    width:100%;
    overflow-x:auto;
    border:1px solid #dce8e0;
    border-radius:16px;
    background:#fff;
}

.market-module-table{
    width:100%;
    min-width:700px;
    border-collapse:collapse;
}

.market-module-table th,
.market-module-table td{
    padding:13px;
    border-bottom:1px solid #e5eee8;
    text-align:left;
}

.market-module-form{
    display:grid;
    gap:12px;
}

.market-module-form input,
.market-module-form select,
.market-module-form textarea{
    width:100%;
    min-width:0;
    min-height:45px;
    padding:10px 12px;
    border:1px solid #dce8e0;
    border-radius:11px;
    background:#fff;
}

.market-module-form button{
    min-height:45px;
    border:0;
    border-radius:11px;
    color:#fff;
    background:#16a75e;
    font-weight:900;
}

@media(max-width:980px){
    .market-module-metrics{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .market-module-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:680px){
    .market-module-page{
        width:min(100% - 20px,1240px);
        padding-top:12px;
    }

    .market-module-header{
        align-items:flex-start;
        flex-direction:column;
        padding:22px 18px;
    }

    .market-module-actions{
        width:100%;
    }

    .market-module-actions a,
    .market-module-actions button{
        flex:1 1 130px;
        text-align:center;
    }

    .market-module-metrics{
        grid-template-columns:1fr 1fr;
        gap:10px;
    }

    .market-module-card{
        padding:14px;
    }

    .market-module-card strong{
        font-size:23px;
    }
}

@media(max-width:420px){
    .market-module-metrics{
        grid-template-columns:1fr;
    }
}
