.cs-broken-container {
    max-width: 860px;
    margin: 24px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}
.cs-broken-container h3 {
    color: #0073aa;
    margin-top: 0;
    margin-bottom: 8px;
}
.cs-broken-container p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 15px;
}

.cs-broken-field { margin-bottom: 16px; }
.cs-broken-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}
.cs-broken-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cs-broken-field input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

.cs-broken-button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.cs-broken-button:hover:not(:disabled) { background: #005a87; }
.cs-broken-button:active:not(:disabled) { transform: scale(0.98); }
.cs-broken-button:disabled { opacity: 0.6; cursor: not-allowed; }

/* Прогресс */
.cs-broken-progress {
    margin-top: 16px;
}
.cs-broken-progress-text {
    color: #0073aa;
    font-weight: 500;
    margin-bottom: 8px;
}
.cs-broken-progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}
.cs-broken-progress-fill {
    height: 100%;
    width: 0%;
    background: #0073aa;
    transition: width 0.4s ease;
    animation: indeterminate 1.5s infinite;
}
@keyframes indeterminate {
    0% { width: 0%; margin-left: 0; }
    50% { width: 40%; margin-left: 30%; }
    100% { width: 0%; margin-left: 100%; }
}
.cs-broken-progress-count {
    margin-top: 6px;
    font-size: 13px;
    color: #777;
}

/* Кэш */
.cs-broken-cache {
    background: #e7f4ff;
    color: #0073aa;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 16px;
    border-left: 4px solid #0073aa;
}

.cs-broken-empty {
    background: #d4edda;
    color: #155724;
    padding: 16px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
}

.cs-broken-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 4px;
    border-left: 4px solid #dc3545;
    font-size: 14px;
}

/* Сводка */
.cs-broken-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.cs-broken-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: #f0f0f1;
    color: #555;
}
.cs-broken-badge.ok { background: #d4edda; color: #155724; }
.cs-broken-badge.broken { background: #f8d7da; color: #721c24; }
.cs-broken-badge.redirect { background: #fff3cd; color: #856404; }
.cs-broken-badge.truncated { background: #fde8d4; color: #8a4500; }
.cs-broken-badge.total { background: #e7f4ff; color: #0073aa; }

/* Таблица */
.cs-broken-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.cs-broken-table th {
    text-align: left;
    padding: 10px 12px;
    background: #f5f5f5;
    font-weight: 600;
    font-size: 13px;
    color: #555;
    border-bottom: 2px solid #ddd;
}
.cs-broken-table td {
    padding: 10px 12px;
    font-size: 13px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}
.cs-broken-table td code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 12px;
    color: #d63384;
}
.cs-broken-table td a {
    color: #0073aa;
    text-decoration: none;
    word-break: break-all;
}
.cs-broken-table td a:hover { text-decoration: underline; }

/* Цвета строк */
.cs-broken-status-broken td:first-child { border-left: 3px solid #dc3545; }
.cs-broken-status-redirect td:first-child { border-left: 3px solid #ffc107; }
.cs-broken-status-ok td:first-child { border-left: 3px solid #28a745; }

/* Точка статуса */
.cs-broken-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.cs-broken-dot.ok { background: #28a745; }
.cs-broken-dot.broken { background: #dc3545; }
.cs-broken-dot.redirect { background: #ffc107; }

@media (max-width: 600px) {
    .cs-broken-table { font-size: 12px; }
    .cs-broken-table th, .cs-broken-table td { padding: 6px 8px; }
    .cs-broken-summary { flex-direction: column; }
}
