
/* ============================================================
   MATTVPN PDF FIXES — TEST SITE
   ============================================================ */

/* ----- общая навигация ----- */

.matt-pdf-home-link{
    cursor:pointer;
}

/* ----- статус "Активен" ----- */

.status-pill,
.mv3-state,
.mv4-state,
.m6-status,
[class*="status-pill"],
[class*="state-active"]{
    vertical-align:middle;
}

.mv3-config-top > .mv3-state,
.mv4-config-top > [class*="state"],
.config-card [class*="active"]{
    justify-self:end;
    align-self:start;
    margin:0!important;
}

/* ----- support должен оставаться частью ЛК ----- */

.matt-support-shell{
    width:min(1560px,calc(100% - 32px));
    margin:18px auto 42px;
    display:grid;
    grid-template-columns:226px minmax(0,1fr);
    gap:18px;
    align-items:start;
}

.matt-support-shell > .matt-support-sidebar{
    position:sticky;
    top:18px;
}

.matt-support-shell > .matt-support-content{
    min-width:0;
}

.matt-support-back-dashboard{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:0 14px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:12px;
    background:#101512;
    color:#e6ece8!important;
    font-size:11px;
    font-weight:900;
    text-decoration:none;
}

/* ----- MattAI feedback ----- */

.matt-ai-feedback-fixed,
.support-ai-feedback,
.ai-feedback,
[data-ai-feedback]{
    clear:both!important;
    position:static!important;
    float:none!important;
    width:100%!important;
    margin:10px 0 2px!important;
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    flex-wrap:wrap!important;
}

.matt-ai-feedback-fixed button,
.support-ai-feedback button,
.ai-feedback button,
[data-ai-feedback] button{
    position:static!important;
    transform:none!important;
    margin:0!important;
}

/* ----- network ----- */

.network-status-grid{
    align-items:stretch;
}

.network-card{
    min-height:150px;
}

.network-card [class*="status"],
.network-card .status-pill{
    white-space:nowrap;
}

/* ----- mobile cleanup ----- */

@media(max-width:760px){

    body{
        overflow-x:hidden;
    }

    .dashboard.mv3-app,
    .dashboard.mv4-app,
    .m6-dash{
        width:100%!important;
        max-width:100%!important;
    }

    .mv3-topbar,
    .mv4-topbar,
    .m6-pagehead{
        padding:16px!important;
    }

    .mv3-topbar p,
    .mv4-topbar p,
    .m6-pagehead p{
        max-width:38ch!important;
    }

    .mv3-overview-grid,
    .mv4-overview-grid{
        grid-template-columns:1fr 1fr!important;
        gap:7px!important;
        padding:0 8px!important;
    }

    .mv3-overview-card.primary,
    .mv4-overview-card.primary{
        grid-column:1/-1!important;
    }

    .mv3-stat-card,
    .mv4-stat-card{
        min-height:100px!important;
        padding:13px!important;
    }

    .mv3-overview-value strong,
    .mv4-overview-value strong{
        font-size:32px!important;
    }

    .mv3-section,
    .mv4-section{
        padding:13px!important;
    }

    .mv3-section-head p,
    .mv4-section-head p{
        display:none!important;
    }

    .mv3-config-meta,
    .mv4-config-meta{
        grid-template-columns:1fr!important;
    }

    .mv3-config-actions,
    .mv4-config-actions{
        flex-wrap:wrap!important;
    }

    .mv3-plan-grid,
    .mv4-plan-grid{
        grid-template-columns:1fr 1fr!important;
    }

    .matt-support-shell{
        width:100%;
        margin:0;
        grid-template-columns:1fr;
        gap:8px;
    }

    .matt-support-shell > .matt-support-sidebar{
        position:static;
    }

    .support-page{
        width:calc(100% - 20px)!important;
        margin-top:20px!important;
    }

    .support-hero{
        padding:20px!important;
    }

    .support-hero p{
        font-size:13px!important;
    }

    .support-metrics{
        grid-template-columns:repeat(2,1fr)!important;
        gap:7px!important;
    }

    .support-metrics div{
        padding:12px!important;
    }

    .msp3-help-grid{
        display:none!important;
    }

    .msp3-heading p{
        display:none!important;
    }

    .mh-hero{
        padding:24px!important;
    }

    .mh-hero h1{
        font-size:39px!important;
        line-height:.96!important;
    }

    .mh-hero p{
        font-size:14px!important;
        max-width:34ch!important;
    }

    .mh-services,
    .mh-news{
        gap:10px!important;
    }
}

/* MattVPN card-meta v1 */
.noel27 .m8-config-card .m8-config-main { container: vpncard / inline-size; }
.noel27 .m8-config-card .m8-config-meta {
  display:flex; flex-flow:row wrap; gap:12px 26px; margin-top:12px;
  padding-top:10px; border-top:1px solid #63534f;
}
.noel27 .m8-config-card .m8-config-meta > span {
  display:grid; gap:3px; min-width:0; max-width:100%; padding:0;
  background:none!important; border:0!important; border-radius:0; box-shadow:none;
}
.noel27 .m8-config-card .m8-config-meta small {
  color:#d0c4bd!important; font-size:12px; line-height:1.35; font-weight:400;
}
.noel27 .m8-config-card .m8-config-meta b {
  color:#fff5e6!important; font-size:14px; line-height:1.4; font-weight:600;
  font-variant-numeric:tabular-nums; overflow-wrap:anywhere;
}
@container vpncard (max-width:27rem) {
  .noel27 .m8-config-card .m8-config-meta { display:grid; grid-template-columns:minmax(0,1fr); gap:6px; }
  .noel27 .m8-config-card .m8-config-meta > span {
    grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:10px; align-items:baseline;
  }
  .noel27 .m8-config-card .m8-config-meta b { text-align:right; }
}
