.profil-section h1,
.profil-section h2,
.profil-section h3,
.profil-section h4,
.profil-section h5,
.profil-section h6 {
    font-size: 1.1rem;
}

.profil-section p,
.profil-section label,
.profil-section small,
.profil-section .badge,
.profil-section button {
    font-size: 0.8rem;
}

.profil-section .application-action-stack__button {
    font-size: 0.8rem;
}

.profil-section .custom-control-label strong {
    font-size: 0.85rem;
}

.check-history-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    border: 1px solid rgba(17, 43, 71, 0.08);
    box-shadow: 0 12px 28px rgba(17, 43, 71, 0.08);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.check-history-card--empty {
    padding: 24px;
    border-radius: 14px;
    background: #f3f6fb;
    border: 1px solid rgba(17, 43, 71, 0.08);
}

#rawdataModal.manual-modal-open {
    position: fixed;
    inset: 0;
    background: rgba(16, 31, 49, 0.55);
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

#rawdataModal.manual-modal-open .partnersec {
    max-height: 90vh;
    width: 90vw;
    overflow: hidden;
}

#rawdataModal.manual-modal-open .scrollbar-innercontent {
    max-height: calc(90vh - 40px);
    overflow-y: auto;
}

.history-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 22px;
    border-radius: 14px;
    background: #f7f9fc;
    border: 1px solid rgba(17, 43, 71, 0.08);
    color: #112b47;
}

.history-header__left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.history-header__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(17, 43, 71, 0.12);
    color: #2a4161;
    font-size: 1.35rem;
}

.history-header__title-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.history-header__title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #10233b;
    margin: 0;
}

.history-header__subtitle {
    font-size: 0.85rem;
    color: #55687a;
    margin: 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.history-header__subtitle-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.04em;
    color: inherit;
}

.history-header__right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    max-width: 100%;
}

.history-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    border: 1px solid transparent;
    line-height: 1;
}

.history-status--ok {
    background: #eef6f0;
    border-color: #c8e2cf;
    color: #2d6f43;
}

.history-status--warn {
    background: #fef4ed;
    border-color: #f3d2bc;
    color: #a2571b;
}

.history-status--muted {
    background: #f3f5f8;
    border-color: #d5dce4;
    color: #5a6a79;
}

.history-header__status {
    font-size: 0.85rem;
    padding: 8px 14px;
}

.history-severity {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.history-severity--critical {
    background: #fbe9ea;
    border-color: #f2c8cb;
    color: #9f2732;
}

.history-severity--high {
    background: #fef0e2;
    border-color: #f6d8bd;
    color: #a45a15;
}

.history-severity--medium {
    background: #fef7e6;
    border-color: #f5e3b8;
    color: #8c6e1f;
}

.history-severity--low {
    background: #edf5ff;
    border-color: #d3e4f9;
    color: #2d5f94;
}

.history-severity--info {
    background: #f2f4f7;
    border-color: #d9e0e8;
    color: #4c5d6f;
}

.history-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(17, 43, 71, 0.16);
    background: #f2f5f8;
    color: #3d5269;
}

.history-tag--accent {
    background: #e8eff8;
    border-color: #c9d7e8;
    color: #1f3b5b;
}

.history-tag--info {
    background: #eef6ff;
    border-color: #d0e4f9;
    color: #235281;
}

.history-tag--alert {
    background: #fbeaea;
    border-color: #f0c9cc;
    color: #962632;
}

.history-header__meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
}

.history-header__meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #ffffff;
    border: 1px solid rgba(17, 43, 71, 0.12);
    border-radius: 12px;
    padding: 10px 12px;
    max-width: 100%;
    flex: 1 1 160px;
    min-width: 160px;
}

.history-header__meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #8494a6;
}

.history-header__meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #10233b;
    word-break: break-word;
}

.history-header__meta-item--url .history-header__meta-value {
    max-width: 360px;
    word-break: break-all;
}

.history-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #ffffff;
    border: 1px solid rgba(17, 43, 71, 0.06);
    border-radius: 16px;
    padding: 22px;
}

.history-section--compact {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.history-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(17, 43, 71, 0.08);
    padding-bottom: 8px;
}

.history-section__header h5,
.history-section__header h6,
.history-section__header .heading-title {
    font-size: 1rem;
    font-weight: 600;
    color: #112b47;
    margin: 0;
}

.history-section__header p {
    margin: 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(17, 43, 71, 0.6);
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.history-tile {
    background: #ffffff;
    border: 1px solid rgba(17, 43, 71, 0.08);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 6px 16px rgba(17, 43, 71, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.history-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(17, 43, 71, 0.08);
}

.history-tile--ok {
    border-color: rgba(46, 125, 50, 0.18);
}

.history-tile--warn {
    border-color: rgba(255, 179, 0, 0.2);
}

.history-tile--muted {
    border-style: dashed;
    opacity: 0.8;
}

.history-tile__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.history-tile__title {
    font-size: 1rem;
    font-weight: 600;
    color: #1d3147;
    margin: 0;
}

.history-tile__category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.history-tile__status {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.history-tile__body {
    font-size: 0.95rem;
    line-height: 1.45;
    color: #112b47;
}

.history-tile__details {
    display: grid;
    gap: 12px;
    margin: 0;
}

.history-tile__details dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #607289;
    margin-bottom: 4px;
}

.history-tile__details dd {
    margin: 0;
    font-size: 0.9rem;
    color: #112b47;
}

.history-tile__description {
    font-size: 0.9rem;
    color: #4f6075;
}

.history-tile__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.history-tile__recommendation {
    font-size: 0.85rem;
    color: #2a4057;
}

.history-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.history-summary__card {
    background: #f4f6f9;
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(17, 43, 71, 0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-summary__card--stretch {
    grid-column: 1 / -1;
}

.history-summary__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6a7a8c;
}

.history-summary__value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #10233b;
}

.history-summary__value--grade {
    font-size: 1.4rem;
    letter-spacing: 0.12em;
}

.history-summary__list {
    margin: 0;
    padding-left: 18px;
    font-size: 0.9rem;
    color: #2a3d55;
}

.history-rawblock {
    background: #f3f6fb;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid rgba(17, 43, 71, 0.06);
}

.history-rawblock__title,
.history-rawblock__summary {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5c6d7c;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.history-rawblock__code {
    background: #111d2d;
    color: #eff3f9;
    border-radius: 10px;
    padding: 16px;
    font-size: 0.8rem;
    max-height: 360px;
    overflow: auto;
}

.history-category {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-category__title {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #607289;
    margin: 0;
}

.history-pair {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-pair__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #607289;
}

.history-pair__value {
    font-size: 0.9rem;
    color: #21344b;
}

.history-probes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.history-probes {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.history-probes__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1d3147;
    margin: 0;
}

.history-probe {
    background: #ffffff;
    border: 1px solid rgba(17, 43, 71, 0.08);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-probe__payload {
    font-size: 0.9rem;
    color: #21344b;
}

.history-probe__meta {
    display: grid;
    gap: 4px;
    font-size: 0.8rem;
    color: #5e6f81;
}

.history-ssl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.history-ssl__column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.history-list dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #607289;
    margin-bottom: 4px;
}

.history-list dd {
    margin: 0;
    font-size: 0.9rem;
    color: #21344b;
}

.history-ssl__card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(17, 43, 71, 0.08);
    padding: 16px;
}

.history-http {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.history-http__column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-http__body {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(17, 43, 71, 0.08);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.history-metrics__card {
    background: #f4f6f9;
    border-radius: 14px;
    border: 1px solid rgba(17, 43, 71, 0.06);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-baseline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: #1d3147;
}

.history-baseline__url {
    word-break: break-all;
}

.history-baseline__snippet {
    font-size: 0.8rem;
    color: #2a4057;
}

@media (max-width: 767.98px) {
    .check-history-card {
        padding: 22px;
        border-radius: 16px;
    }

    .history-header__chip {
        min-width: 50px;
        height: 50px;
        border-radius: 14px;
        font-size: 0.8rem;
    }

    .history-card__header {
        padding: 18px;
    }

    .history-header__right {
        align-items: flex-start;
        max-width: none;
    }

    .history-header__meta {
        justify-content: flex-start;
    }

    .history-grid {
        grid-template-columns: 1fr;
    }

    .history-section--compact {
        flex-direction: column;
        align-items: flex-start;
    }

    .history-summary__card--stretch {
        grid-column: auto;
    }
}
