.cim-wrap {
    color: #1f2933;
}

.cim-wrap .notice p,
.cim-rtl {
    direction: rtl;
}

.cim-header {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin: 18px 0;
}

.cim-header-icon {
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 96, 88, 0.18);
    flex: 0 0 auto;
    height: 64px;
    width: 64px;
}

.cim-header-title {
    flex: 1 1 auto;
    min-width: 180px;
}

.cim-header h1 {
    font-size: 28px;
    line-height: 1.25;
    margin: 0 0 6px;
}

.cim-header p {
    color: #5b6673;
    font-size: 14px;
    margin: 0;
}

.cim-mode-pill {
    background: #eef8f6;
    border: 1px solid #9ddbd0;
    border-radius: 999px;
    color: #06675f;
    font-weight: 700;
    padding: 8px 14px;
    white-space: nowrap;
}

.cim-mode-pill.mode-none {
    background: #fff8e5;
    border-color: #f5cf72;
    color: #805300;
}

.cim-stats {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 16px 0 20px;
}

.cim-stat-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    padding: 16px;
}

.cim-stat-card span {
    color: #646970;
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
}

.cim-stat-card strong {
    color: #1d2327;
    display: block;
    font-size: 28px;
    line-height: 1;
}

.cim-stat-card.is-index strong {
    color: #00796b;
}

.cim-stat-card.is-noindex strong {
    color: #b44d00;
}

.cim-tabs {
    margin-bottom: 16px;
}

.cim-toolbar {
    align-items: center;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
    padding: 12px;
}

.cim-toolbar input[type="search"] {
    min-width: 260px;
}

.cim-bulk-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    margin: 14px 0 10px;
}

.cim-table {
    overflow: hidden;
}

.cim-table th,
.cim-table td {
    vertical-align: middle;
}

.cim-badge {
    border-radius: 999px;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    padding: 4px 10px;
}

.cim-badge.is-index {
    background: #e7f6f2;
    color: #00796b;
}

.cim-badge.is-noindex {
    background: #fff0db;
    color: #a34600;
}

.cim-badge.is-loading {
    background: #f0f0f1;
    color: #50575e;
}

.cim-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 44px;
}

.cim-switch input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.cim-switch span {
    background: #b7c0c9;
    border-radius: 999px;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: background 0.18s ease;
}

.cim-switch span::before {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    content: "";
    height: 18px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: transform 0.18s ease;
    width: 18px;
}

.cim-switch input:checked + span {
    background: #d97706;
}

.cim-switch input:checked + span::before {
    transform: translateX(20px);
}

.cim-switch input:disabled + span {
    cursor: wait;
    opacity: 0.65;
}

.cim-row-links {
    display: flex;
    gap: 10px;
}

.cim-pagination {
    margin-top: 14px;
}

@media (max-width: 782px) {
    .cim-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .cim-stats {
        grid-template-columns: 1fr;
    }

    .cim-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .cim-toolbar input[type="search"],
    .cim-toolbar select,
    .cim-toolbar .button {
        max-width: none;
        width: 100%;
    }

    .cim-bulk-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cim-bulk-actions select,
    .cim-bulk-actions .button {
        width: 100%;
    }
}
