:root {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.5;
    font-weight: 400;

    --bg: #f5f7fa;
    --panel: #ffffff;
    --border: #dbe1e8;
    --text: #17202a;
    --muted: #65717e;

    --accent: #1769aa;
    --accent-hover: #12598f;

    --success: #18794e;
    --success-bg: #e9f7ef;

    --offline: #a64040;
    --offline-bg: #fdecec;

    --shadow:
        0 2px 12px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

.container {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    background: #18222d;
    color: white;
    padding: 24px 0;
    margin-bottom: 24px;
}

.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 2px;
    font-size: 28px;
}

.topbar p {
    margin-bottom: 0;
    color: #c2cbd4;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.panel-header h2,
.section-title h2 {
    margin-bottom: 3px;
}

.panel-header p {
    color: var(--muted);
    margin-bottom: 0;
}

.status {
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
}

.status-online {
    background: var(--success-bg);
    color: var(--success);
}

.status-offline {
    background: var(--offline-bg);
    color: var(--offline);
}

.status-loading {
    background: rgba(255,255,255,.12);
    color: white;
}

.probe-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.probe {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    cursor: pointer;
    transition:
        border-color .15s,
        background .15s;
}

.probe:hover {
    border-color: #aab6c2;
}

.probe.selected {
    border-color: var(--accent);
    background: #f1f7fc;
}

.probe.offline {
    opacity: .55;
    cursor: not-allowed;
}

.probe input {
    margin-top: 4px;
}

.probe-name {
    font-weight: 650;
}

.probe-meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

.probe-health {
    font-size: 12px;
    margin-top: 5px;
}

.online-text {
    color: var(--success);
}

.offline-text {
    color: var(--offline);
}

.controls {
    display: grid;
    grid-template-columns:
        minmax(250px, 2fr)
        minmax(130px, .65fr)
        minmax(130px, .65fr)
        auto;

    gap: 14px;
    align-items: end;
}

label span {
    display: block;
    font-size: 13px;
    font-weight: 650;
    margin-bottom: 6px;
}

input,
select,
button {
    font: inherit;
}

input,
select {
    width: 100%;
    height: 43px;
    border: 1px solid #bdc7d1;
    border-radius: 7px;
    background: white;
    padding: 0 11px;
    color: var(--text);
}

input:focus,
select:focus {
    outline: 2px solid rgba(23,105,170,.2);
    border-color: var(--accent);
}

button {
    border: 0;
    border-radius: 7px;
    cursor: pointer;
}

.button-primary {
    min-height: 43px;
    padding: 0 22px;
    background: var(--accent);
    color: white;
    font-weight: 650;
}

.button-primary:hover {
    background: var(--accent-hover);
}

.button-primary:disabled {
    opacity: .55;
    cursor: wait;
}

.button-secondary {
    padding: 8px 12px;
    color: var(--text);
    background: #eef2f5;
}

.running {
    display: flex;
    gap: 16px;
    align-items: center;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #d9e0e6;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#progress-text,
#elapsed {
    color: var(--muted);
    font-size: 13px;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

td {
    font-size: 14px;
}

.reached {
    color: var(--success);
    font-weight: 650;
}

.not-reached {
    color: var(--offline);
    font-weight: 650;
}

.section-title {
    margin: 25px 0 12px;
}

.result-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.result-card summary {
    cursor: pointer;
    padding: 17px 20px;
    font-weight: 650;
}

.result-content {
    padding: 0 20px 20px;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 15px;
}

pre {
    padding: 15px;
    overflow-x: auto;
    background: #101820;
    color: #e7edf3;
    border-radius: 7px;
    font-family:
        "Cascadia Code",
        "SFMono-Regular",
        Consolas,
        monospace;
    font-size: 12px;
    line-height: 1.55;
}

.hop-table td,
.hop-table th {
    padding: 7px 9px;
    font-family:
        "Cascadia Code",
        Consolas,
        monospace;
    font-size: 12px;
}

.error-panel {
    border-color: #e2aaaa;
}

.hidden {
    display: none !important;
}

.loading {
    color: var(--muted);
}

footer {
    color: var(--muted);
    font-size: 12px;
    padding: 16px 0 30px;
}

@media (max-width: 800px) {

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

    .controls label:first-child {
        grid-column: 1 / -1;
    }

    .button-primary {
        grid-column: 1 / -1;
    }

    .topbar .container,
    .panel-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   lg-hub 0.4.0
   ========================================================= */

.result-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.copy-button {
    flex: 0 0 auto;
    padding: 6px 11px;
    border: 1px solid #bdc7d1;
    border-radius: 6px;
    background: #f3f5f7;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.copy-button:hover {
    border-color: var(--accent);
    background: #edf5fb;
}

.copy-button.copied {
    border-color: var(--success);
    background: var(--success-bg);
    color: var(--success);
}

.reverse-name {
    color: #44515e;
}

.asn-value {
    font-weight: 650;
    white-space: nowrap;
}

.network-name {
    min-width: 220px;
    white-space: normal;
    line-height: 1.3;
}

.hop-table {
    min-width: 1250px;
}

.hop-table td:nth-child(2),
.hop-table td:nth-child(3) {
    white-space: nowrap;
}

.clipboard-fallback {
    position: fixed;
    left: -10000px;
    top: 0;
    width: 1px;
    height: 1px;
}


/* =========================================================
   lg-hub frontend 0.6.0
   ========================================================= */

.table-wrapper {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.result-card summary > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

#error-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

#summary-table th:first-child,
#summary-table td:first-child {
    position: sticky;
    left: 0;
    background: var(--panel);
    z-index: 1;
}

#summary-table th:first-child {
    z-index: 2;
}

.hop-table th:first-child,
.hop-table td:first-child {
    position: sticky;
    left: 0;
    background: var(--panel);
    z-index: 1;
}

.hop-table th:first-child {
    z-index: 3;
}

@media (max-width: 700px) {

    .container {
        width: min(
            100% - 20px,
            1280px
        );
    }

    .topbar {
        padding: 17px 0;
        margin-bottom: 14px;
    }

    h1 {
        font-size: 23px;
    }

    .panel {
        padding: 16px;
        margin-bottom: 14px;
        border-radius: 9px;
    }

    .probe-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 18px;
    }

    .probe {
        padding: 12px;
    }

    .controls {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .controls label:first-child,
    .button-primary {
        grid-column: auto;
    }

    input,
    select {
        font-size: 16px;
        height: 46px;
    }

    .button-primary {
        min-height: 48px;
        width: 100%;
    }

    .button-secondary {
        min-height: 40px;
    }

    .result-card summary {
        padding: 14px;
        gap: 10px;
    }

    .result-content {
        padding:
            0 14px 14px;
    }

    .copy-button {
        min-height: 36px;
        padding: 6px 10px;
    }

    #summary-table {
        min-width: 620px;
    }

    #summary-table th:nth-child(6),
    #summary-table td:nth-child(6),
    #summary-table th:nth-child(7),
    #summary-table td:nth-child(7) {
        display: none;
    }

    .hop-table {
        min-width: 1180px;
    }

    .network-name {
        min-width: 180px;
    }

    .result-meta {
        display: grid;
        gap: 4px;
    }
}

/* =========================================================
   BEGIN LG BGP UI
   ========================================================= */

.bgp-mode-hidden {
    display: none !important;
}

.controls.bgp-mode {
    grid-template-columns:
        minmax(250px, 2fr)
        minmax(140px, .8fr)
        auto;
}

.bgp-results {
    margin-top: 18px;
}

.bgp-panel-header {
    align-items: center;
}

.bgp-body {
    padding: 0 20px 20px;
}

.bgp-summary-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.bgp-summary-item {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--panel);
}

.bgp-summary-label {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.bgp-summary-value {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
    font-size: 14px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.bgp-notice,
.bgp-error {
    margin-top: 14px;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.bgp-error {
    margin-top: 18px;
}

.bgp-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 80px;
    color: var(--muted);
}

.bgp-block {
    margin-top: 24px;
}

.bgp-block h3 {
    margin: 0 0 5px;
}

.bgp-help {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
}

.bgp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.bgp-table th,
.bgp-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

.bgp-table th {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.bgp-as-path {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
    white-space: normal !important;
    min-width: 300px;
}

.bgp-communities {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bgp-collector {
    margin-top: 9px;
    border: 1px solid var(--border);
    border-radius: 9px;
    overflow: hidden;
}

.bgp-collector > summary {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 650;
}

.bgp-collector[open] > summary {
    border-bottom: 1px solid var(--border);
}

.bgp-peer-count {
    color: var(--muted);
    font-weight: 400;
    white-space: nowrap;
}

.bgp-route-table {
    min-width: 1200px;
}

.bgp-path-table {
    min-width: 760px;
}

@media (max-width: 800px) {

    .controls.bgp-mode {
        grid-template-columns: 1fr 1fr;
    }

    .controls.bgp-mode .button-primary {
        grid-column: 1 / -1;
    }

    .bgp-body {
        padding:
            0 12px 16px;
    }

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

    .bgp-collector > summary {
        align-items: flex-start;
    }
}

/* =========================================================
   END LG BGP UI
   ========================================================= */

/* Masquage strict des contrôles inutiles en mode BGP */
.bgp-controls-hidden {
    display: none !important;
}

/* =========================================================
   BEGIN LG BGP UI V020
   ========================================================= */

.bgp-as-path {
    line-height: 1.55;
}

.bgp-path-table td:first-child,
.bgp-path-table td:nth-child(2),
.bgp-path-table td:nth-child(3) {
    font-variant-numeric: tabular-nums;
}

.bgp-path-table td:first-child,
.bgp-path-table td:nth-child(2) {
    text-align: right;
}

.bgp-summary-value {
    line-height: 1.35;
}

/* =========================================================
   END LG BGP UI V020
   ========================================================= */

/* =========================================================
   BEGIN LG BGP UI V030
   ========================================================= */

.bgp-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
}

.bgp-filter-input {
    flex: 1 1 420px;
    min-width: 180px;
}

.bgp-filter-status {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.bgp-filter-clear {
    flex: 0 0 auto;
}

.bgp-no-results {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--muted);
    text-align: center;
}

.rpki-cell {
    white-space: nowrap !important;
}

.rpki-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.rpki-valid {
    background: #e9f7ef;
    border-color: #9bcbae;
    color: #176b3a;
}

.rpki-invalid {
    background: #fbecec;
    border-color: #e0a1a1;
    color: #9f2424;
}

.rpki-not-found {
    background: #f2f3f5;
    border-color: #c7ccd1;
    color: #626a73;
}

.rpki-unavailable {
    background: #fff7df;
    border-color: #dfca86;
    color: #786016;
}

@media (max-width: 800px) {

    .bgp-filter-bar {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .bgp-filter-input {
        flex-basis: 100%;
        width: 100%;
    }

    .bgp-filter-status {
        flex: 1 1 auto;
    }
}

/* =========================================================
   END LG BGP UI V030
   ========================================================= */

/* =========================================================
   BEGIN LG BGP UI PHASE2B
   ========================================================= */

.controls.bgp-mode {
    grid-template-columns:
        minmax(250px, 2fr)
        minmax(120px, .7fr)
        minmax(175px, 1fr)
        auto;
}

.bgp-source-table {
    min-width: 760px;
}

.bgp-source-table td:nth-child(2),
.bgp-source-table td:nth-child(3),
.bgp-source-table td:nth-child(4) {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

@media (max-width: 800px) {

    .controls.bgp-mode {
        grid-template-columns:
            1fr 1fr;
    }

    #bgp-source-label {
        grid-column:
            1 / -1;
    }
}

/* =========================================================
   END LG BGP UI PHASE2B
   ========================================================= */

/* =========================================================
   BEGIN LG BGP PHASE3AB
   ========================================================= */

.bgp-analysis-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(210px, 1fr)
        );
    gap: 10px;
    margin-top: 12px;
    margin-bottom: 14px;
}

.bgp-analysis-card {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
}

.bgp-analysis-label {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.bgp-analysis-value {
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 600;
}

.bgp-analysis-note,
.bgp-analysis-warning {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
}

.bgp-analysis-alert {
    margin: 8px 0;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-left-width: 4px;
    border-radius: 7px;
    font-size: 12px;
}

.bgp-analysis-alert-warning,
.bgp-analysis-warn {
    font-weight: 700;
}

.bgp-analysis-ok {
    font-weight: 700;
}

.bgp-analysis-details {
    margin-top: 10px;
}

.bgp-analysis-details > summary {
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.bgp-analysis-details .table-wrapper {
    margin-top: 8px;
}

.bgp-specifics-table {
    min-width: 480px;
}

.bgp-transit-table {
    min-width: 760px;
}

.bgp-transit-table td:nth-child(n+2) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.bgp-path-example-list {
    margin: 8px 0 0 0;
    padding-left: 22px;
}

.bgp-path-example-list li {
    margin: 4px 0;
}

.bgp-mono {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        "Courier New",
        monospace;

    font-size: 12px;
}

@media (max-width: 800px) {

    .bgp-analysis-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   END LG BGP PHASE3AB
   ========================================================= */

/* =========================================================
   BEGIN LG BGP PHASE3C
   ========================================================= */

.bgp-history-chart {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    min-height: 92px;
    margin: 12px 0 6px 0;
    padding: 8px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 9px;
}

.bgp-history-column {
    display: flex;
    align-items: flex-end;
    min-width: 6px;
    height: 82px;
}

.bgp-history-bars {
    display: flex;
    align-items: flex-end;
    gap: 1px;
    width: 100%;
    height: 80px;
}

.bgp-history-bar {
    width: 3px;
    min-height: 0;
    border-radius: 2px 2px 0 0;
    background: currentColor;
}

.bgp-history-announcement {
    color: #397d54;
}

.bgp-history-withdrawal {
    color: #b84a4a;
}

.bgp-history-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 11px;
}

.bgp-history-legend-item::before {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 5px;
    border-radius: 2px;
    content: "";
}

.bgp-history-legend-a::before {
    background: #397d54;
}

.bgp-history-legend-w::before {
    background: #b84a4a;
}

.bgp-history-table {
    min-width: 1100px;
}

.bgp-history-table td:nth-child(1),
.bgp-history-table td:nth-child(2),
.bgp-history-table td:nth-child(3),
.bgp-history-table td:nth-child(4) {
    white-space: nowrap;
}

.bgp-event-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    min-height: 22px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.bgp-event-a {
    color: #397d54;
}

.bgp-event-w {
    color: #b84a4a;
}

#bgp-history-start-label,
#bgp-history-end-label {
    min-width: 195px;
}

/* =========================================================
   END LG BGP PHASE3C
   ========================================================= */

/* =========================================================
   BEGIN LG BGP PHASE3D
   ========================================================= */

.bgp-asn-heading {
    margin-bottom: 14px;
}

.bgp-asn-heading h2 {
    margin-bottom: 3px;
}

.bgp-asn-holder {
    color: var(--muted);
    font-size: 13px;
}

.bgp-asn-source-table {
    min-width: 620px;
}

.bgp-asn-source-table td:nth-child(2),
.bgp-asn-source-table td:nth-child(3),
.bgp-asn-source-table td:nth-child(4) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.bgp-asn-prefix-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}

.bgp-asn-prefix-controls .bgp-filter-input {
    flex: 1 1 420px;
}

.bgp-asn-family-filter {
    flex: 0 0 150px;
}

.bgp-asn-prefix-table {
    min-width: 680px;
}

.bgp-asn-prefix-table td:first-child {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        "Courier New",
        monospace;
}

.bgp-asn-prefix-table td:last-child {
    width: 1%;
    white-space: nowrap;
}

.bgp-prefix-action {
    white-space: nowrap;
}

@media (max-width: 800px) {

    .bgp-asn-prefix-controls {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .bgp-asn-prefix-controls
    .bgp-filter-input {
        flex-basis: 100%;
        width: 100%;
    }

    .bgp-asn-family-filter {
        flex: 1 1 140px;
    }
}

/* =========================================================
   END LG BGP PHASE3D
   ========================================================= */

/* =========================================================
   BEGIN LG BGP PHASE3E
   ========================================================= */

.irr-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.irr-status-ok {
    color: #397d54;
}

.irr-status-warning {
    color: #b84a4a;
}

.irr-status-info {
    color: #8a6d22;
}

.bgp-irr-prefix-table {
    min-width: 760px;
}

.bgp-irr-peer-table {
    min-width: 540px;
}

.bgp-irr-prefix-table td:first-child {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        "Courier New",
        monospace;
}

.bgp-irr-prefix-table td:nth-child(3),
.bgp-irr-prefix-table td:nth-child(4),
.bgp-irr-peer-table td:nth-child(2),
.bgp-irr-peer-table td:nth-child(3) {
    text-align: center;
}

/* =========================================================
   END LG BGP PHASE3E
   ========================================================= */

/* =========================================================
   BEGIN LG BGP PHASE3F
   ========================================================= */

.bgp-routeviews-explorer > button {
    margin-top: 10px;
}

.bgp-rv-explorer-area {
    margin-top: 12px;
}

.bgp-rv-controls,
.bgp-rv-prefix-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.bgp-rv-controls select,
.bgp-rv-controls input,
.bgp-rv-prefix-controls select,
.bgp-rv-prefix-controls input {
    min-height: 36px;
}

.bgp-rv-peer-asn {
    width: 180px;
}

.bgp-rv-regex {
    flex: 1 1 230px;
}

.bgp-rv-community {
    flex: 1 1 270px;
}

.bgp-rv-peer-table {
    min-width: 760px;
    margin-top: 10px;
}

.bgp-rv-prefix-browser {
    margin-top: 18px;
}

.bgp-rv-prefix-table {
    min-width: 1250px;
}

.bgp-rv-prefix-table td:first-child,
.bgp-rv-prefix-table td:nth-child(3),
.bgp-rv-prefix-table td:nth-child(4) {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        "Courier New",
        monospace;
}

.bgp-rv-prefix-table td:last-child,
.bgp-rv-peer-table td:last-child {
    width: 1%;
    white-space: nowrap;
}

@media (max-width: 800px) {

    .bgp-rv-controls,
    .bgp-rv-prefix-controls {
        align-items: stretch;
    }

    .bgp-rv-controls > *,
    .bgp-rv-prefix-controls > * {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* =========================================================
   END LG BGP PHASE3F
   ========================================================= */

/* =========================================================
   BEGIN LG BGP TABLE ALIGNMENT
   ========================================================= */

/*
 * Couverture par source
 *
 * Colonne 1 :
 *   Source
 *
 * Colonnes suivantes :
 *   Collecteurs
 *   Peers
 *   AS paths
 *   Préfixes
 *   Origines
 */

.bgp-source-coverage-table th:nth-child(n+2),
.bgp-source-coverage-table td:nth-child(n+2) {
    text-align: center !important;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}


/*
 * ASN de transit les plus fréquents
 *
 * Colonne 1 :
 *   ASN
 *
 * Colonnes suivantes :
 *   RIS routes
 *   RIS %
 *   RouteViews routes
 *   RV %
 *   Combiné %
 */

.bgp-transit-table th:nth-child(n+2),
.bgp-transit-table td:nth-child(n+2) {
    text-align: center !important;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}


/*
 * La colonne descriptive reste alignée à gauche.
 */

.bgp-source-coverage-table th:first-child,
.bgp-source-coverage-table td:first-child,
.bgp-transit-table th:first-child,
.bgp-transit-table td:first-child {
    text-align: left !important;
}


/*
 * Les titres numériques utilisent exactement
 * le même axe horizontal que leurs valeurs.
 */

.bgp-source-coverage-table th,
.bgp-transit-table th {
    vertical-align: middle;
}


/* =========================================================
   END LG BGP TABLE ALIGNMENT
   ========================================================= */

/* =========================================================
   BEGIN LG BGP PHASE4A
   ========================================================= */

.bgp-ris-live-resource {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-top: 12px;
}

.bgp-ris-live-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 12px 0 8px 0;
}

.bgp-ris-live-controls select,
.bgp-ris-live-controls input,
.bgp-ris-live-controls button {
    min-height: 36px;
}

.bgp-ris-live-path {
    flex: 1 1 280px;
}

.bgp-ris-live-status {
    margin: 10px 0;
    font-size: 12px;
    font-weight: 600;
}

.bgp-ris-live-table {
    min-width: 1250px;
}

.bgp-ris-live-table th:nth-child(2),
.bgp-ris-live-table td:nth-child(2),
.bgp-ris-live-table th:nth-child(3),
.bgp-ris-live-table td:nth-child(3) {
    text-align: center;
}

.bgp-ris-live-table td:nth-child(5),
.bgp-ris-live-table td:nth-child(6),
.bgp-ris-live-table td:nth-child(7),
.bgp-ris-live-table td:nth-child(8) {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        "Courier New",
        monospace;
}

.bgp-ris-live-table td:first-child,
.bgp-ris-live-table td:nth-child(3),
.bgp-ris-live-table td:nth-child(4),
.bgp-ris-live-table td:nth-child(5) {
    white-space: nowrap;
}

@media (max-width: 800px) {

    .bgp-ris-live-controls {
        align-items: stretch;
    }

    .bgp-ris-live-controls > * {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* =========================================================
   END LG BGP PHASE4A
   ========================================================= */

/* =========================================================
   BEGIN LG BGP PHASE4B3
   ========================================================= */

.bgp-live-resource {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-top: 12px;
}

.bgp-live-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 12px 0 8px 0;
}

.bgp-live-controls select,
.bgp-live-controls input,
.bgp-live-controls button {
    min-height: 36px;
}

.bgp-live-path {
    flex: 1 1 250px;
}

.bgp-live-status-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(260px, 1fr)
        );
    gap: 8px;
    margin: 10px 0;
}

.bgp-live-status {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
}

.bgp-live-source-table {
    min-width: 760px;
}

.bgp-live-source-table th:nth-child(n+2),
.bgp-live-source-table td:nth-child(n+2) {
    text-align: center !important;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}

.bgp-live-source-table th:first-child,
.bgp-live-source-table td:first-child {
    text-align: left !important;
}

.bgp-live-event-table {
    min-width: 1400px;
    margin-top: 14px;
}

.bgp-live-event-table th:nth-child(2),
.bgp-live-event-table td:nth-child(2),
.bgp-live-event-table th:nth-child(3),
.bgp-live-event-table td:nth-child(3) {
    text-align: center;
}

.bgp-live-event-table td:first-child,
.bgp-live-event-table td:nth-child(4),
.bgp-live-event-table td:nth-child(5),
.bgp-live-event-table td:nth-child(6) {
    white-space: nowrap;
}

.bgp-live-event-table td:nth-child(6),
.bgp-live-event-table td:nth-child(7),
.bgp-live-event-table td:nth-child(8),
.bgp-live-event-table td:nth-child(9) {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        "Courier New",
        monospace;
}

@media (max-width: 800px) {

    .bgp-live-controls {
        align-items: stretch;
    }

    .bgp-live-controls > * {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* =========================================================
   END LG BGP PHASE4B3
   ========================================================= */

/* BEGIN LG PROBES 8 COLUMNS */

/*
 * Grille compacte des probes.
 *
 * Desktop large : 8 colonnes.
 * La logique de sélection reste entièrement inchangée.
 */

.probe-grid > * {
    box-sizing: border-box;
    min-width: 0 !important;
    min-height: 32px !important;

    padding:
        4px
        6px !important;

    margin: 0 !important;

    font-size: 11px !important;
    line-height: 1.15 !important;

    overflow-wrap: anywhere;
}


.probe-grid label {
    gap: 4px !important;
    margin: 0 !important;

    font-size: 11px !important;
    line-height: 1.15 !important;

    cursor: pointer;
}


/*
 * Case à cocher plus compacte.
 */

.probe-grid input[type="checkbox"] {
    width: 12px !important;
    height: 12px !important;

    min-width: 12px !important;
    min-height: 12px !important;

    flex:
        0
        0
        12px !important;

    margin:
        0
        3px
        0
        0 !important;

    padding: 0 !important;
}


/*
 * 8 probes par ligne dès qu'il y a suffisamment
 * de largeur utile.
 */


@media (min-width: 1200px) {

.probe-grid {
    grid-template-columns:
        repeat(
            8,
            minmax(0, 1fr)
        ) !important;
    gap: 5px !important;
}

}



/*
 * Tailles intermédiaires.
 */


@media (min-width: 1000px) and (max-width: 1199px) {

.probe-grid {
    grid-template-columns:
        repeat(
            6,
            minmax(0, 1fr)
        ) !important;
    gap: 5px !important;
}

}



@media (min-width: 720px) and (max-width: 999px) {

.probe-grid {
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        ) !important;
    gap: 5px !important;
}

}



@media (min-width: 480px) and (max-width: 719px) {

.probe-grid {
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        ) !important;
    gap: 5px !important;
}

}



@media (max-width: 479px) {

.probe-grid {
    grid-template-columns:
        repeat(
            1,
            minmax(0, 1fr)
        ) !important;
    gap: 5px !important;
}

}





/* LG HIDDEN SEMANTICS */

/*
 * Ne jamais laisser une règle de layout réafficher
 * un élément volontairement masqué par le frontend.
 */
html [hidden] {
    display: none !important;
}

/* END LG PROBES 8 COLUMNS */

