        body { font-family: Arial, sans-serif; margin: 20px; background-color: #f5f5f5; }
        h1 { color: #333; }
        p { color: #666; font-size: 0.9em; }
        .toolbar { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
        .toolbar label { color: #333; font-weight: 600; }
        #searchInput { width: 100%; max-width: 480px; padding: 10px 12px; border: 1px solid #ccc; border-radius: 8px; font-size: 1em; }
        table { border-collapse: collapse; width: 100%; background-color: white; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
        th { background-color: rgb(76, 94, 175); color: white; padding: 12px; text-align: left; font-weight: bold; cursor: pointer; user-select: none; position: relative; }
        th:hover { background-color: rgb(64, 79, 154); }
        
        
        td { border-bottom: 1px solid #ddd; padding: 12px; }
        tr:hover { background-color: #f9f9f9; }
        
    
        /* ===== cci-fast v0.20 ===== */

        /* --- Table layout: fixed widths from a <colgroup> (set by the script);
               no wrapping, long text cut with "…" (full text as tooltip). --- */
        #ratingTable { table-layout: fixed; }
        #ratingTable tr.odd { background-color: #f9f9f9; }
        #ratingTable tbody tr:hover { background-color: #fff6cc; }     /* row under the mouse */
        #ratingTable td { padding: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

        /* --- Header: sticky; text cut with "…" if needed, sort arrow right after it.
               Every header reserves the arrow's space, so nothing moves when sorting. --- */
        #ratingTable thead th { position: sticky; top: 0; z-index: 2;
            padding: 12px 10px; white-space: nowrap; overflow: hidden; }
        #ratingTable th .th-text { display: inline-block; max-width: calc(100% - 1.4em);
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
        #ratingTable th::after { content: "\25B2"; display: inline-block; width: 1em;
            margin-left: 6px; font-size: 0.85em; visibility: hidden; }
        #ratingTable th.asc::after { content: "\25B2"; visibility: visible; }
        #ratingTable th.desc::after { content: "\25BC"; visibility: visible; }

        /* --- Scroll-button columns (no data, not sortable); the 2nd one holds the
               CCI-page badge, right-aligned next to the engine name. --- */
        #ratingTable th.nav, #ratingTable td.nav { padding: 0 2px; overflow: visible;
            text-align: center; cursor: default; }
        #ratingTable th.nav:first-child, #ratingTable td.nav:first-child { padding-left: 6px; }
        #ratingTable td.nav:nth-child(2) { text-align: right; }
        #ratingTable th.nav::after { display: none; }
        #ratingTable th.nav button { display: inline-flex; align-items: center; justify-content: center;
            width: 32px; height: 32px; margin: 5px 0; padding: 0; border: 0; border-radius: 6px;
            background: transparent; color: #fff; cursor: pointer; }
        #ratingTable th.nav button:hover { background: rgba(255,255,255,0.22); }
        #ratingTable th.nav button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
        #ratingTable th.nav svg { width: 22px; height: 22px; }

        /* --- Link check: button in the Check column, badge for the CCI page. --- */
        #ratingTable td.cci-time { padding: 0 6px; overflow: visible; text-align: right; }
        .cci-chkbtn, .cci-mdbadge { display: inline-flex; align-items: center; vertical-align: middle;
            white-space: nowrap; border: 1px solid #d4d4d4; }
        .cci-chkbtn { justify-content: center; gap: 4px; min-width: 28px; height: 24px; padding: 0 7px;
            border-color: #cfd4e6; border-radius: 12px; background: #fff; color: rgb(76, 94, 175);
            font-size: 0.8em; cursor: pointer; }
        .cci-chkbtn:hover { background: #eef0f8; }
        .cci-chkbtn.busy { cursor: progress; }
        .cci-mdbadge { height: 22px; padding: 0 7px; border-radius: 11px; font-size: 0.75em; }
        .cci-mdbadge.busy { border-color: transparent; }
        .cci-chkbtn svg { width: 14px; height: 14px; }
        .cci-mdbadge svg { width: 13px; height: 13px; }
        .cci-chkbtn svg.spin, .cci-mdbadge svg.spin { animation: cci-spin 0.8s linear infinite; }

        /* status colours: green OK, gray neutral, orange uncertain, red dead */
        .cci-chkbtn.ok, .cci-mdbadge.ok { color: #1b7a34; border-color: #a8d8b4; background: #eef8f0; }
        .cci-chkbtn.reachable, .cci-chkbtn.none { color: #666; border-color: #d4d4d4; background: #f4f4f4; }
        .cci-chkbtn.notfound { color: #b45309; border-color: #f2c28a; background: #fff5e8; }
        .cci-chkbtn.unreachable, .cci-mdbadge.dead { color: #c62828; border-color: #efb0b0;
            background: #fdeeee; font-weight: bold; }

        /* --- Filter row: label, input and explanation on one line (wraps when narrow). --- */
        .toolbar label { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
        .toolbar #searchInput { width: 320px; max-width: 100%; }
        .toolbar .filter-help { flex: 1 1 320px; color: #666; font-size: 0.9em; }

        /* --- Search highlighting: one colour per filter word. --- */
        ::highlight(cci-search-0) { background-color: #ffd54a; color: #000; }
        ::highlight(cci-search-1) { background-color: #9fe3a0; color: #000; }
        ::highlight(cci-search-2) { background-color: #9fcfff; color: #000; }
        ::highlight(cci-search-3) { background-color: #ffb0c8; color: #000; }
        ::highlight(cci-search-4) { background-color: #ffc285; color: #000; }
        ::highlight(cci-search-5) { background-color: #d3b8ff; color: #000; }

        /* --- Busy indicator: full-window dimming layer (blocks clicks), centred spinner. --- */
        #cciSpinner { position: fixed; inset: 0; z-index: 1000; display: flex;
            align-items: center; justify-content: center;
            background: rgba(40, 45, 70, 0.30); cursor: progress; }
        #cciSpinner[hidden] { display: none; }
        #cciSpinner .box { width: 112px; height: 112px; padding: 14px; box-sizing: border-box;
            border-radius: 18px; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,0.3); }
        #cciSpinner svg { display: block; width: 100%; height: 100%;
            animation: cci-spin 0.8s linear infinite; will-change: transform; }

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