.ce-service-scan-page {
    margin: 1.25rem auto 4rem;
    max-width: 1140px;
}

.ce-service-scan-page > .ce-back-link {
    margin-bottom: 1rem;
}

.ce-service-scan-hero {
    align-items: end;
    background:
        radial-gradient(circle at 100% 0, rgb(20 92 255 / 14%), transparent 26rem),
        var(--ce-surface, #101012);
    border: 1px solid var(--ce-line-soft, rgb(255 255 255 / 10%));
    border-radius: var(--ce-radius-lg, 24px);
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    padding: 2rem;
}

.ce-service-scan-heading {
    max-width: 680px;
    min-width: 0;
}

.ce-service-scan-heading h1 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    margin: 0;
    overflow-wrap: anywhere;
}

.ce-service-scan-intro {
    color: var(--ce-text-muted, #a7a7ae);
    font-size: .92rem;
    line-height: 1.65;
    margin: .9rem 0 0;
}

.ce-service-scan-filter {
    flex: 0 0 auto;
}

.ce-service-scan-filter label {
    color: var(--ce-text-muted, #a7a7ae);
    display: block;
    font-size: .8rem;
    margin-bottom: .5rem;
}

.ce-service-scan-filter-controls {
    align-items: stretch;
    display: flex;
    gap: .65rem;
}

.ce-service-scan-filter .form-select {
    background-color: var(--ce-surface-raised, #171719);
    border-color: var(--ce-line, #29292e);
    border-radius: var(--ce-radius-sm, 12px);
    color: var(--ce-text, #f7f7f8);
    font-size: .9rem;
    min-height: 44px;
    min-width: 155px;
    width: auto;
}

.ce-service-scan-filter .btn {
    min-height: 44px;
    white-space: nowrap;
}

.ce-service-scan-notice {
    border: 1px solid var(--ce-line-soft, rgb(255 255 255 / 10%));
    border-radius: var(--ce-radius-sm, 12px);
    font-size: .9rem;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
}

.ce-service-scan-notice.is-warning {
    background: rgb(244 183 64 / 8%);
    border-color: rgb(244 183 64 / 25%);
    color: #ffd878;
}

.ce-service-scan-results {
    margin-top: 1.75rem;
}

.ce-service-scan-summary {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1rem;
    justify-content: space-between;
    margin-bottom: .9rem;
}

.ce-service-scan-summary h2 {
    font-size: 1rem;
    margin: 0;
}

.ce-service-scan-summary time,
.ce-service-scan-page-number {
    color: var(--ce-text-muted, #a7a7ae);
    font-size: .85rem;
}

.ce-service-scan-timezone {
    color: var(--ce-text-dim, #85858e);
    font-size: .75em;
    margin-left: .3em;
}

.ce-service-scan-table-wrap.table-responsive {
    overflow-x: auto;
}

.ce-service-scan-table {
    min-width: 690px;
    table-layout: fixed;
    width: 100%;
}

.ce-service-scan-table thead th:nth-child(1) {
    width: 22%;
}

.ce-service-scan-table thead th:nth-child(2) {
    width: 22%;
}

.ce-service-scan-table thead th:nth-child(3) {
    width: 17%;
}

.ce-service-scan-table--asns {
    min-width: 400px;
}

.ce-service-scan-table--asns thead th:nth-child(1) {
    width: 40%;
}

.ce-service-scan-table--asns thead th:nth-child(2),
.ce-service-scan-table--asns thead th:nth-child(3) {
    text-align: right;
    width: 30%;
}

.ce-service-scan-table--services {
    min-width: 720px;
}

.ce-service-scan-table--services thead th:nth-child(1) {
    width: 16%;
}

.ce-service-scan-table--services thead th:nth-child(2) {
    width: 50%;
}

.ce-service-scan-table--services thead th:nth-child(3),
.ce-service-scan-table--services thead th:nth-child(4) {
    text-align: right;
    width: 17%;
}

.ce-service-scan-table--detail {
    min-width: 820px;
}

.ce-service-scan-table--detail thead th:nth-child(1) {
    width: 14%;
}

.ce-service-scan-table--detail thead th:nth-child(2) {
    width: 21%;
}

.ce-service-scan-table--detail thead th:nth-child(3) {
    width: 22%;
}

.ce-service-scan-table--detail thead th:nth-child(4) {
    width: 14%;
}

.ce-service-scan-number {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.ce-service-scan-asn {
    font-weight: 600;
    white-space: nowrap;
}

.ce-service-scan-short {
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.ce-service-scan-table > tbody > tr > * {
    vertical-align: top;
}

.ce-service-scan-table .ce-service-scan-ip {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.ce-service-scan-date {
    font-variant-numeric: tabular-nums;
}

.ce-service-scan-service span,
.ce-service-scan-service a {
    background: var(--ce-accent-soft, rgb(20 92 255 / 15%));
    border: 1px solid rgb(127 165 255 / 18%);
    border-radius: 6px;
    color: var(--ce-accent-light, #7fa5ff);
    display: inline-block;
    font-size: .75rem;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: .15rem .45rem;
}

.ce-service-scan-service a {
    text-decoration: none;
}

.ce-service-scan-service a:hover {
    background: rgb(20 92 255 / 25%);
    color: var(--ce-text, #f7f7f8);
}

.ce-service-scan-about {
    background: var(--ce-surface, #101012);
    border: 1px solid var(--ce-line-soft, rgb(255 255 255 / 10%));
    border-radius: var(--ce-radius-md, 18px);
    margin-top: 1.25rem;
    padding: 1.5rem 2rem;
}

.ce-service-scan-about-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ce-service-scan-about h2 {
    font-size: 1rem;
    margin: 0 0 .7rem;
}

.ce-service-scan-about p {
    color: var(--ce-text-muted, #a7a7ae);
    font-size: .85rem;
    line-height: 1.75;
    margin: 0;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.ce-service-scan-sources {
    border-top: 1px solid var(--ce-line-subtle, rgb(255 255 255 / 7%));
    margin-top: 1.25rem;
    padding-top: 1rem;
}

.ce-service-scan-sources h3 {
    color: var(--ce-text-muted, #a7a7ae);
    font-size: .75rem;
    margin: 0 0 .4rem;
}

.ce-service-scan-sources ul {
    display: flex;
    flex-wrap: wrap;
    font-size: .8rem;
    gap: .35rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ce-service-scan-comment {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.ce-service-scan-table tbody tr:last-child > * {
    border-bottom: 0;
}

.ce-service-scan-empty {
    background: var(--ce-surface, #101012);
    border: 1px solid var(--ce-line-soft, rgb(255 255 255 / 10%));
    border-radius: var(--ce-radius-md, 18px);
    color: var(--ce-text-muted, #a7a7ae);
    margin: 0;
    padding: 2rem;
}

.ce-service-scan-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
    margin-top: 1.25rem;
}

.ce-service-scan-pagination .btn {
    font-size: .85rem;
    min-height: 42px;
}

@media (max-width: 991px) {
    .ce-service-scan-hero {
        align-items: stretch;
        flex-direction: column;
        gap: 1.5rem;
    }

    .ce-service-scan-filter {
        align-self: flex-start;
    }
}

@media (max-width: 575px) {
    .ce-service-scan-page {
        margin-top: 1rem;
    }

    .ce-service-scan-hero,
    .ce-service-scan-about,
    .ce-service-scan-empty {
        padding: 1.35rem;
    }

    .ce-service-scan-filter {
        align-self: stretch;
    }

    .ce-service-scan-filter .form-select {
        flex: 1;
        min-width: 0;
    }

    .ce-service-scan-table:not(.ce-service-scan-table--asns):not(.ce-service-scan-table--services):not(.ce-service-scan-table--detail) {
        min-width: 640px;
    }

    .ce-service-scan-about-grid {
        gap: 1.5rem;
        grid-template-columns: minmax(0, 1fr);
    }
}
