/* FORCE PLUGIN ISOLATION */
#rrc-app {
    all: unset; /* remove theme styles */
    display: block;
    max-width: 420px;
    width: 100%;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* All elements inside inherit box-sizing */
#rrc-app {
    width: 448px; /* your fixed desktop width */
    margin: 20px auto; /* center horizontally */
    padding: 0 16px;   /* default horizontal padding */
}


/* Input */
#rrc-name {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #ddd;
    font-size: 16px;
    margin-bottom: 12px;
}

/* Button */
#rrc-search {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fc4c02, #ff7a18);
    color: #fff;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
}

/* Card */
.rrc-card {
    margin-top: 20px;
    padding: 22px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

/* Status */
.rrc-status.ok {
    background: #e7f7ef;
    color: #0f8a5f;
    padding: 6px 14px;
    border-radius: 999px;
    display: inline-block;
    font-size: 13px;
}

.rrc-status.no {
    background: #fdeaea;
    color: #b42318;
    padding: 6px 14px;
    border-radius: 999px;
    display: inline-block;
    font-size: 13px;
}

/* Name */
.rrc-name {
    font-size: 22px;
    font-weight: 700;
    margin-top: 8px;
}

/* Metrics row */
.rrc-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
    margin-top: 12px;
}

.rrc-metrics span {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.rrc-metrics strong {
    font-size: 15px;
    font-weight: 600;
}

/* Divider */
.rrc-divider {
    height: 1px;
    background: #eee;
    margin: 16px 0;
}

/* Verified badge */
.rrc-verified {
    background: #1e88e5;
    color: #fff;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 999px;
    margin-left: 6px;
}

/* Muted text */
.rrc-meta.muted {
    color: #888;
    font-size: 14px;
}

/* Skeleton loader */
.rrc-skeleton {
    height: 120px;
    border-radius: 18px;
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 37%,
        #f0f0f0 63%
    );
    background-size: 400% 100%;
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}


/* Mobile responsive adjustment */
@media (max-width: 480px) {
    #rrc-app {
        width: 100%;       /* full width on small screens */
        padding: 0 16px;   /* horizontal margin */
        box-sizing: border-box; /* include padding in width */
    }

    .rrc-card {
        width: 100%;       /* card fills container */
    }

    #rrc-name,
    #rrc-search {
        width: 100%;       /* inputs/buttons fill container */
    }
}
