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

.cs-schema-field { margin-bottom: 16px; }
.cs-schema-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}
.cs-schema-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-schema-field input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

.cs-schema-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-schema-button:hover:not(:disabled) { background: #005a87; }
.cs-schema-button:active:not(:disabled) { transform: scale(0.98); }
.cs-schema-button:disabled { opacity: 0.6; cursor: not-allowed; }

/* Прогресс */
.cs-schema-progress { margin-top: 16px; }
.cs-schema-progress-text { color: #0073aa; font-weight: 500; margin-bottom: 8px; }
.cs-schema-progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}
.cs-schema-progress-fill {
    height: 100%;
    width: 0;
    background: #0073aa;
    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-schema-cache {
    background: #e7f4ff;
    color: #0073aa;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 16px;
    border-left: 4px solid #0073aa;
}

/* Сводка */
.cs-schema-summary {
    margin-bottom: 20px;
}
.cs-schema-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
}
.cs-schema-status-badge.good { background: #d4edda; color: #155724; }
.cs-schema-status-badge.warn { background: #fff3cd; color: #856404; }
.cs-schema-status-badge.bad { background: #f8d7da; color: #721c24; }

.cs-schema-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: #f0f0f1;
    color: #555;
    margin-right: 8px;
    margin-bottom: 8px;
}

.cs-schema-types {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.cs-schema-type-tag {
    background: #e7f4ff;
    color: #0073aa;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
    border: 1px solid #b3d7f2;
}

/* Валидация */
.cs-schema-validation {
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 6px;
}
.cs-schema-validation.errors {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}
.cs-schema-validation.warnings {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}
.cs-schema-validation h4 {
    margin: 0 0 8px;
    font-size: 14px;
}
.cs-schema-validation ul {
    margin: 0;
    padding-left: 20px;
}
.cs-schema-validation li {
    font-size: 13px;
    line-height: 1.6;
}

/* Секции */
.cs-schema-section {
    margin-bottom: 14px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    overflow: hidden;
}
.cs-schema-section summary {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    background: #f9f9f9;
    transition: background 0.2s;
}
.cs-schema-section summary:hover { background: #f0f0f1; }
.cs-schema-section[open] summary { border-bottom: 1px solid #e1e1e1; }

/* Сущности */
.cs-schema-item {
    padding: 0;
    margin: 0;
}
.cs-schema-item summary {
    padding: 10px 16px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}
.cs-schema-item summary:hover { background: #f5f8ff; }

/* Код */
.cs-schema-code {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 14px;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.5;
    overflow-x: auto;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

/* Таблицы свойств */
.cs-schema-prop-table {
    width: 100%;
    border-collapse: collapse;
}
.cs-schema-prop-table th {
    text-align: left;
    padding: 8px 12px;
    background: #f5f5f5;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #ddd;
}
.cs-schema-prop-table td {
    padding: 8px 12px;
    font-size: 13px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}
.cs-schema-prop-table td:first-child {
    font-family: monospace;
    color: #d63384;
    white-space: nowrap;
    width: 30%;
}
.cs-schema-prop-table td a {
    color: #0073aa;
    word-break: break-all;
}

/* Пусто */
.cs-schema-empty {
    background: #f0f0f1;
    color: #555;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    font-size: 15px;
}

/* Ошибка */
.cs-schema-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 4px;
    border-left: 4px solid #dc3545;
    font-size: 14px;
}

@media (max-width: 600px) {
    .cs-schema-prop-table th,
    .cs-schema-prop-table td { font-size: 12px; padding: 6px 8px; }
    .cs-schema-code { font-size: 11px; }
}
