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

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

.cs-http-button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-end;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
}
.cs-http-button:hover:not(:disabled) { background: #005a87; }
.cs-http-button:active:not(:disabled) { transform: scale(0.98); }
.cs-http-button:disabled { opacity: 0.6; cursor: not-allowed; }

/* Пресеты */
.cs-http-presets {
    margin-bottom: 16px;
}
.cs-http-preset-label {
    font-size: 13px;
    color: #777;
    margin-right: 8px;
}
.cs-http-preset {
    background: #f0f0f1;
    border: 1px solid #ddd;
    color: #0073aa;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    margin-right: 6px;
    margin-bottom: 4px;
    font-family: monospace;
    transition: background 0.15s;
}
.cs-http-preset:hover { background: #e0e0e0; }

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

/* Статус */
.cs-http-status {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 16px;
}
.cs-http-status.ok { background: #d4edda; color: #155724; }
.cs-http-status.redirect { background: #fff3cd; color: #856404; }
.cs-http-status.error { background: #f8d7da; color: #721c24; }

/* Тип определённого ресурса */
.cs-http-kind {
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Секции */
.cs-http-section {
    margin-bottom: 20px;
}
.cs-http-section h4 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #333;
}

/* Цепочка редиректов */
.cs-http-chain {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 14px;
}
.cs-http-chain-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}
.cs-http-chain-code {
    font-weight: 700;
    font-size: 13px;
    padding: 3px 8px;
    border-radius: 4px;
    min-width: 40px;
    text-align: center;
}
.cs-http-chain-code.ok { background: #d4edda; color: #155724; }
.cs-http-chain-code.redirect { background: #fff3cd; color: #856404; }
.cs-http-chain-code.error { background: #f8d7da; color: #721c24; }
.cs-http-chain-url {
    font-family: monospace;
    font-size: 13px;
    color: #555;
    word-break: break-all;
}
.cs-http-chain-arrow {
    color: #aaa;
    text-align: center;
    font-size: 14px;
    padding: 2px 0;
}

/* Замечания */
.cs-http-issues, .cs-http-good {
    margin: 0;
    padding-left: 20px;
}
.cs-http-issues li, .cs-http-good li {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 6px;
}
.cs-issue-error { color: #721c24; }
.cs-issue-warn { color: #856404; }
.cs-issue-info { color: #0c5460; }

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

/* Мета */
.cs-http-meta {
    font-size: 13px;
    color: #666;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}
.cs-http-meta span {
    font-family: monospace;
}

/* Загрузка / ошибка */
.cs-http-loading {
    background: #f0f0f0;
    color: #555;
    padding: 12px 16px;
    border-radius: 4px;
    font-weight: 500;
}
.cs-http-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 4px;
    border-left: 4px solid #dc3545;
    font-size: 14px;
}

/* Адаптив */
@media (max-width: 600px) {
    .cs-http-form { flex-direction: column; }
    .cs-http-button { width: 100%; }
    .cs-http-meta { flex-direction: column; }
}