body.page-material {
    background: linear-gradient(180deg, #f5f9fd 0%, #edf3f9 100%);
}

.material-shell {
    width: min(1380px, calc(100% - 40px));
    margin: 0 auto;
}

.material-page {
    padding: 26px 0 42px;
}

.material-page__headline h1 {
    margin: 0;
    color: #2d343f;
    font-size: 40px;
    line-height: 1.05;
    font-weight: 800;
}

.material-page__headline p {
    margin: 14px 0 0;
    color: #70839e;
    font-size: 16px;
    line-height: 1.8;
    font-weight: 700;
}

.material-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.material-tab-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(203, 216, 231, 0.96);
    background: rgba(255, 255, 255, 0.96);
    color: #30445f;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(39, 74, 112, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.material-tab-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 173, 239, 0.72);
    box-shadow: 0 14px 26px rgba(39, 74, 112, 0.08);
}

.material-tab-pill em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(77, 167, 236, 0.1);
    color: #2482d8;
    font-style: normal;
    font-size: 14px;
    font-weight: 700;
}

.material-tab-pill.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #5ec0f0 0%, #2d88dc 100%);
    color: #fff;
    box-shadow: 0 18px 32px rgba(45, 136, 220, 0.2);
}

.material-tab-pill.is-active em {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.material-summary-card {
    --material-accent: #57b7e9;
    --material-soft: rgba(87, 183, 233, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding: 26px 24px;
    border: 1px solid rgba(214, 225, 238, 0.96);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 36px rgba(39, 74, 112, 0.06);
}

.material-summary-card--teal {
    --material-accent: #32d693;
    --material-soft: rgba(50, 214, 147, 0.12);
}

.material-summary-card--blue {
    --material-accent: #32d6c8;
    --material-soft: rgba(50, 214, 200, 0.12);
}

.material-summary-card--gold {
    --material-accent: #e6a34e;
    --material-soft: rgba(230, 163, 78, 0.12);
}

.material-summary-card--indigo {
    --material-accent: #446ce0;
    --material-soft: rgba(68, 108, 224, 0.12);
}

.material-summary-card--emerald {
    --material-accent: #3aa7a6;
    --material-soft: rgba(58, 167, 166, 0.12);
}

.material-summary-card--coral {
    --material-accent: #ef7f63;
    --material-soft: rgba(239, 127, 99, 0.12);
}

.material-summary-card--slate {
    --material-accent: #6d7da4;
    --material-soft: rgba(109, 125, 164, 0.12);
}

.material-summary-card__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    background: var(--material-soft);
    color: var(--material-accent);
    font-size: 12px;
    font-weight: 700;
}

.material-summary-card h2 {
    margin: 12px 0 0;
    color: #2f3a4a;
    font-size: 40px;
    line-height: 1.08;
    font-weight: 700;
}

.material-summary-card p {
    margin: 10px 0 0;
    color: #70839e;
    font-size: 16px;
    line-height: 1.8;
    font-weight: 700;
}

.material-summary-card__count {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--material-soft);
    color: var(--material-accent);
    font-size: 15px;
    font-weight: 700;
}

.material-page__content {
    margin-top: 20px;
}

.material-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.material-device-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid rgba(214, 225, 238, 0.96);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 32px rgba(39, 74, 112, 0.06);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.material-device-card:hover {
    transform: translateY(-3px);
    border-color: rgba(96, 173, 239, 0.72);
    box-shadow: 0 22px 38px rgba(39, 74, 112, 0.1);
}

.material-device-card__media {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    box-sizing: border-box;
    height: 210px;
    padding: 12px 16px;
    background: #fff;
    overflow: hidden;
}

.material-device-card__media img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.material-device-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px 18px;
    text-align: center;
}

.material-device-card__tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(77, 167, 236, 0.08);
    color: #2d88dc;
    font-size: 12px;
    font-weight: 700;
}

.material-device-card h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    margin: 12px 0 0;
    color: #2f3a4a;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 500;
}

.material-device-card h3 a {
    color: inherit;
}

.material-device-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 116px;
    height: 42px;
    margin-top: auto;
    border-radius: 999px;
    background: linear-gradient(135deg, #5ec0f0 0%, #2d88dc 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.material-device-card__cta:hover {
    color: #fff;
}

.material-empty-state {
    padding: 48px 24px;
    border: 1px solid rgba(214, 225, 238, 0.96);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 32px rgba(39, 74, 112, 0.06);
    text-align: center;
    color: #70839e;
    font-size: 16px;
}

@media only screen and (max-width: 1280px) {
    .material-summary-card h2 {
        font-size: 44px;
    }

    .material-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 980px) {
    .material-shell {
        width: calc(100% - 28px);
    }

    .material-page__headline h1 {
        font-size: 48px;
    }

    .material-summary-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .material-summary-card h2 {
        font-size: 36px;
    }

    .material-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 680px) {
    .material-page {
        padding: 18px 0 30px;
    }

    .material-page__headline h1 {
        font-size: 38px;
    }

    .material-page__headline p,
    .material-summary-card p {
        font-size: 14px;
    }

    .material-tab-pill {
        min-height: 44px;
        padding: 0 16px;
        font-size: 14px;
    }

    .material-summary-card {
        padding: 18px 16px;
    }

    .material-summary-card h2 {
        font-size: 28px;
    }

    .material-summary-card__count {
        min-width: 0;
    }

    .material-card-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .material-device-card__media {
        height: 200px;
        padding: 12px 14px;
    }

    .material-device-card h3 {
        min-height: 0;
        font-size: 16px;
    }
}
