.reg-scope-form,
.m-reg-scope {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.reg-scope-form button,
.m-reg-scope button {
    border: 1px solid #dde4ec;
    border-radius: 8px;
    background: #fff;
    padding: 8px 14px;
    cursor: pointer;
}

.reg-scope-form button.active,
.m-reg-scope button.active {
    background: #d40012;
    color: #fff;
    border-color: #d40012;
}

.topic-live-region {
    display: flex;
    align-items: end;
    gap: 10px;
    margin: 12px 0;
}

.topic-live-region label {
    display: grid;
    gap: 5px;
}

.topic-live-region select {
    min-width: 130px;
    padding: 8px 10px;
    border: 1px solid #dce3ed;
    border-radius: 8px;
}

.ranking-scope-select form,
.m-ranking-toolbar form {
    display: block;
}

.reg-rank-item small,
.m-reg-rank-item small {
    color: #6e7b8d;
}

.m-reg-analysis-shell [hidden] {
    display: none !important;
}

.m-reg-rank-tabs {
    overflow-x: auto;
}

.m-ranking-tabs a,
.ranking-tabs a {
    text-decoration: none;
}

/* A shared compact metric switch for topic and project overviews. */
.registration-live-page .reg-scope-form,
.registration-live-page .m-reg-scope {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
}
.registration-live-page .reg-scope-form > span,
.registration-live-page .m-reg-scope > span { flex-shrink: 0; white-space: nowrap; }
.registration-live-page .reg-scope-tabs {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 4px;
    margin: 0;
}
.registration-live-page .reg-scope-current {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 5px 8px;
    margin: 0;
    border-radius: 7px;
    background: #fff1f3;
    color: #c93549;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
}
.registration-live-page .ranking-job-stats > div {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 7px;
}

/* User-facing notes and real selection controls, shared by both scopes. */
.registration-live-page .reg-stat-note,
.registration-live-page .m-reg-stat-note {
    margin: 12px 0;
    padding: 0 12px;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    background: #f9fbfd;
}

.registration-live-page .reg-stat-note summary,
.registration-live-page .m-reg-stat-note summary {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    color: #53667e;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.registration-live-page .m-reg-stat-note summary { font-weight: 400; }

.registration-live-page summary .ui-icon { width: 15px; height: 15px; }
.registration-live-page .reg-note-chevron {
    width: 6px;
    height: 6px;
    margin-left: auto;
    border-right: 1.5px solid #8996a8;
    border-bottom: 1.5px solid #8996a8;
    transform: rotate(45deg);
}
.registration-live-page details[open] .reg-note-chevron { transform: rotate(225deg); }
.registration-live-page .reg-stat-note .reg-note-copy,
.registration-live-page .m-reg-stat-note .reg-note-copy {
    padding: 0 0 10px 22px;
    color: #7c899b;
    font-size: 12px;
    line-height: 1.8;
}
.registration-live-page .reg-note-copy p { margin: 0 0 3px; }

.registration-live-page .reg-job-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 6px;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #edf0f5;
    font: inherit;
}
.registration-live-page .reg-job-actions > label,
.registration-live-page .reg-job-actions > div,
.registration-live-page .reg-job-actions > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 36px;
    margin: 0;
    padding: 0 5px;
    border: 1px solid #e3e9f1;
    border-radius: 9px;
    background: #fff;
    color: #60718b;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}
.registration-live-page .reg-job-actions .ui-icon {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    font-size: 13px;
    background: none;
    color: inherit;
}
.registration-live-page .reg-job-actions .ui-icon svg { width: 100%; height: 100%; }
.registration-live-page .reg-job-compare input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
}
.registration-live-page .reg-compare-selected { display: none; }
.registration-live-page .reg-job-actions .reg-job-compare {
    min-height: 38px;
    border-color: #8dcbb0 !important;
    background: #edf9f3 !important;
    color: #137c54 !important;
    font-size: 13px;
    font-weight: 800;
}
.registration-live-page .reg-job-actions .reg-job-compare .ui-icon {
    width: 17px;
    height: 17px;
    font-size: 17px;
}
.registration-live-page .reg-job-actions .reg-job-compare:hover {
    background: #e0f2e9 !important;
    border-color: #13845c !important;
}
.registration-live-page .reg-job-actions .reg-job-compare:is(.is-selected,:has(input:checked)) {
    border-color: #13845c !important;
    background: #13845c !important;
    color: #fff !important;
}
.registration-live-page .reg-job-actions .reg-job-compare:is(.is-selected,:has(input:checked)):hover {
    background: #116c4d !important;
}
.registration-live-page .reg-job-actions .reg-job-compare:has(input:focus-visible) {
    outline: 2px solid #13845c;
    outline-offset: 2px;
}
.registration-live-page .reg-job-compare input:checked ~ .reg-compare-idle { display: none; }
.registration-live-page .reg-job-compare input:checked ~ .reg-compare-selected { display: inline; }
.registration-live-page .reg-job-compare:has(input:focus-visible),
.registration-live-page .reg-job-pool:has(select:focus-visible),
.registration-live-page .reg-job-detail:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
.registration-live-page .reg-job-actions .reg-job-pool { padding: 0; }
.registration-live-page .reg-job-pool > .ui-icon {
    position: absolute;
    left: 6px;
    pointer-events: none;
}
.registration-live-page .reg-job-pool:not(.unified-favorite-wrap)::after {
    content: "";
    position: absolute;
    right: 7px;
    top: 14px;
    width: 5px;
    height: 5px;
    border-bottom: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
    pointer-events: none;
}
.registration-live-page .reg-job-pool select {
    appearance: none;
    width: 100%;
    min-width: 0;
    height: 34px;
    margin: 0;
    padding: 0 16px 0 22px;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    outline: none;
}
.registration-live-page .reg-job-actions .reg-job-detail {
    background: #fff2f4;
    border-color: #ffe1e6;
    color: var(--brand);
}
.registration-live-page .reg-job-actions > label:hover,
.registration-live-page .reg-job-actions > div:hover { border-color: #cbd6e5; }
.registration-live-page .reg-job-detail:hover { background: #ffe8ec; }

@media (max-width: 700px) {
    .registration-live-page .m-ranking-toolbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
        border-radius: 12px;
    }
    .registration-live-page .m-ranking-toolbar h2 { font-size: 14px; line-height: 1.5; }
    .registration-live-page .m-ranking-toolbar > label {
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        padding-top: 10px;
        border-top: 1px solid #edf0f5;
    }
    .registration-live-page .m-ranking-toolbar label > span { font-size: 12px; font-weight: 500; white-space: nowrap; }
    .registration-live-page .m-ranking-toolbar form { min-width: 0; width: 100%; }
    .registration-live-page .m-ranking-toolbar .select {
        width: 100%;
        min-width: 0;
        height: 38px;
        padding: 0 30px 0 12px;
        font-size: 13px;
        font-weight: 500;
        border-radius: 9px;
    }
    .registration-live-page .topic-live-region {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 10px 0;
        padding: 11px 13px;
        border: 1px solid #e8edf3;
        border-radius: 12px;
        background: #fff;
    }
    .registration-live-page .topic-live-region label {
        display: flex;
        align-items: center;
        flex: 1 1 0;
        min-width: 0;
        gap: 10px;
        font-size: 12px;
        color: #7c8999;
    }
    .registration-live-page .topic-live-region label > span { flex-shrink: 0; white-space: nowrap; }
    .registration-live-page .topic-live-region select {
        flex: 1 1 0;
        min-width: 0;
        width: 100%;
        height: 38px;
        padding: 0 25px 0 10px;
        border-radius: 9px;
        background: #f9fbfe;
        color: #53667e;
        font-size: 12px;
    }
    .registration-live-page .topic-live-region button {
        flex: 0 0 56px;
        height: 38px;
        min-height: 38px;
        padding: 0 8px;
        border: 1px solid #ffdbe2;
        border-radius: 9px;
        background: #fff2f4;
        color: var(--brand);
        font-size: 12px;
        white-space: nowrap;
    }
    .registration-live-page .m-reg-panel-head > div { min-width: 0; }
    .registration-live-page .m-reg-panel-head h2 { font-size: 13px; line-height: 1.5; }
    .registration-live-page .m-reg-panel-head > a { flex-shrink: 0; }
    .registration-live-page .m-ranking-job .m-ranking-current,
    .registration-live-page .m-ranking-job .m-ranking-ratio-box {
        min-height: 26px;
        height: auto;
        padding: 8px 6px;
        align-items: center;
        text-align: center;
    }
    .registration-live-page .m-ranking-job .m-ranking-current p { margin: 0; }
    .registration-live-page .m-ranking-main {
        grid-template-columns: minmax(0, 1fr) 124px;
        align-items: start;
        gap: 6px;
    }
    .registration-live-page .m-ranking-job .m-ranking-score {
        grid-column: 2;
        align-self: start;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 124px;
        min-width: 0;
        gap: 4px;
    }
    .registration-live-page .m-ranking-job .m-ranking-score.m-ranking-score--count { grid-template-columns: minmax(0, 1fr); }
    .registration-live-page .m-ranking-job .m-ranking-current,
    .registration-live-page .m-ranking-job .m-ranking-ratio-box {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 3px;
        min-width: 0;
        padding: 5px 4px;
    }
    .registration-live-page .m-ranking-job .m-ranking-current > span,
    .registration-live-page .m-ranking-job .m-ranking-ratio-box > span {
        margin: 0;
        font-size: 9px;
        font-weight: 400;
        line-height: 1.5;
    }
    .registration-live-page .m-ranking-job .m-ranking-current p { display: flex; align-items: baseline; gap: 1px; white-space: nowrap; }
    .registration-live-page .m-ranking-job .m-ranking-current b,
    .registration-live-page .m-ranking-job .m-ranking-ratio-box b { margin: 0; font-size: 12px; white-space: nowrap; }
    .registration-live-page .m-ranking-job .m-ranking-current em { font-size: 9px; }
    .registration-live-page .m-ranking-title h3 { font-size: 12px; line-height: 1.45; }
    .registration-live-page .m-ranking-title p { font-size: 10px; }
    .registration-live-page .m-reg-analysis-shell .m-reg-rank-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 3px;
        overflow: visible;
    }
    .registration-live-page .m-reg-analysis-shell .m-reg-rank-tabs button {
        min-width: 0;
        min-height: 34px;
        padding: 8px 2px;
        font-size: 12px;
        line-height: 18px;
        white-space: nowrap;
    }
    .registration-live-page .m-ranking-tabs a {
        white-space: nowrap;
        font-size: 12px;
        padding: 8px 9px;
    }
    .registration-live-page .m-ranking-tabs a.active {
        border-color: var(--brand);
        background: var(--brand);
        color: #fff;
        font-weight: 600;
        box-shadow: 0 3px 8px rgba(230, 0, 18, .12);
    }
    .registration-live-page .m-ranking-tabs a:focus-visible {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }
    .registration-live-page .m-ranking-no {
        align-self: start;
        margin-top: 3px;
        height: 30px;
        border-radius: 7px;
    }
    .registration-live-page .m-ranking-no::before {
        font-size: 9px;
        margin-bottom: 2px;
        letter-spacing: .03em;
    }
    .registration-live-page .m-reg-rank-value { flex-shrink: 0; }
    .registration-live-page .m-reg-rank-value b { white-space: nowrap; }
    .registration-live-page .m-reg-rank-value span { font-size: 10px; }
    .registration-live-page .reg-page-footnote {
        margin: 12px 0 16px;
        padding: 0 6px;
        color: #919cac;
        font-size: 11px;
        line-height: 1.6;
        text-align: center;
        border: 0;
        background: transparent;
    }
    .registration-live-page .reg-job-actions { gap: 5px; }
    .registration-live-page .reg-job-actions .reg-job-pool > .ui-icon { display: none; }
    .registration-live-page .reg-job-pool select { padding-left: 5px; }
    .registration-live-page .m-reg-scope { gap: 6px; margin: 10px 0; min-height: 30px; }
    .registration-live-page .m-reg-scope > span { font-size: 11px; font-weight: 500; }
    .registration-live-page .m-reg-scope .reg-scope-tabs { gap: 3px; margin: 0; }
    .registration-live-page .m-reg-scope button {
        min-height: 30px;
        padding: 5px 8px;
        border-radius: 7px;
        font-size: 11px;
        font-weight: 500;
        line-height: 18px;
        white-space: nowrap;
    }
    .registration-live-page .m-reg-scope .reg-scope-current {
        margin-left: auto;
        padding: 5px 6px;
        font-size: 10px;
    }
}


/* Registration rankings: stable previous / current / next pagination. */

/* Desktop ranking filters, selected tabs and compact unbroken statistics. */
.pc.registration-live-page .ranking-page .topic-live-region {
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    padding: 12px 15px;
    border: 1px solid #edf0f5;
    border-radius: 12px;
    background: #fff;
}
.pc.registration-live-page .ranking-page .topic-live-region label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.pc.registration-live-page .ranking-page .topic-live-region label > span {
    color: #7c899b;
    font-size: 12px;
    white-space: nowrap;
}
.pc.registration-live-page .ranking-page .topic-live-region select {
    width: 180px;
    height: 36px;
    padding: 0 30px 0 10px;
    border-color: #e3e8f0;
    border-radius: 8px;
    background: #fafbfc;
    color: #2b2f35;
    font-size: 12px;
}
.pc.registration-live-page .ranking-page .topic-live-region button {
    height: 36px;
    padding: 0 16px;
    border: 1px solid #ffdce2;
    border-radius: 8px;
    background: #fff2f4;
    color: #d7354a;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.pc.registration-live-page .ranking-tabs > a.active {
    border: 1px solid #e60012;
    background: #e60012;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 3px 9px rgba(230, 0, 18, .12);
}
.pc.registration-live-page .ranking-tabs > a:focus-visible {
    outline: 2px solid #e60012;
    outline-offset: 2px;
}
.pc.registration-live-page .ranking-job {
    align-items: start;
}
.pc.registration-live-page .ranking-no {
    align-self: start;
    margin-top: 2px;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 12px;
}
.pc.registration-live-page .ranking-job-main {
    align-items: start;
    min-width: 0;
}
.pc.registration-live-page .ranking-job-title {
    min-width: 0;
    padding-top: 2px;
    overflow-wrap: anywhere;
}
.pc.registration-live-page .ranking-job-stats {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 7px;
}
.pc.registration-live-page .ranking-job-stats > div {
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
}
.pc.registration-live-page .ranking-job-stats span {
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
}
.pc.registration-live-page .ranking-job-stats b {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.registration-live-page .reg-pagination {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 20px 0 4px;
    padding-top: 16px;
    border-top: 1px solid #edf0f5;
}
.registration-live-page .reg-pagination .reg-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 7px;
    width: auto;
    min-width: 92px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #f3d9dd;
    border-radius: 10px;
    background: #fff;
    color: #c93549;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
}
.registration-live-page .reg-page-link > span { font-size: 19px; font-weight: 400; }
.registration-live-page a.reg-page-link:hover { background: #fff3f4; border-color: #ed9ca6; }
.registration-live-page a.reg-page-link:focus-visible { outline: 2px solid #e60012; outline-offset: 3px; }
.registration-live-page .reg-pagination .reg-page-link.is-disabled {
    border-color: #edf0f5;
    background: #f7f8fa;
    color: #a4adba;
}
.registration-live-page .reg-page-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #8591a3;
    font-size: 12px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.registration-live-page .reg-page-status b {
    display: grid;
    place-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 7px;
    border-radius: 9px;
    background: #e60012;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
@media (max-width: 700px) {
    .registration-live-page .reg-pagination { gap: 10px; margin-top: 16px; padding-top: 12px; }
    .registration-live-page .reg-pagination .reg-page-link {
        min-width: 74px;
        height: 34px;
        padding: 0 8px;
        gap: 4px;
        font-size: 12px;
    }
    .registration-live-page .reg-page-status { gap: 5px; font-size: 11px; }
    .registration-live-page .reg-page-status b { min-width: 29px; height: 29px; font-size: 12px; }
}

@media(max-width:360px){body.mobile.registration-live-page .reg-job-actions .reg-job-compare{font-size:12px;padding:0 3px;gap:3px}body.mobile.registration-live-page .reg-job-actions .reg-job-compare .ui-icon{width:15px;height:15px;font-size:15px}}
