.cest-panel {
    max-width: 960px;
    margin: 24px auto;
    color: #1f2933;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cest-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.cest-panel h2,
.cest-panel h3 {
    margin: 0 0 8px;
    color: #17212b;
    line-height: 1.2;
}

.cest-panel__muted {
    margin: 0;
    color: #637083;
}

.cest-form {
    display: grid;
    gap: 16px;
    padding: 20px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.cest-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cest-field {
    display: grid;
    gap: 6px;
}

.cest-field label {
    font-weight: 600;
    color: #263442;
}

.cest-field input,
.cest-field select,
.cest-field textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid #bcccdc;
    border-radius: 6px;
    background: #fff;
    color: #17212b;
}

.cest-field input[type="file"] {
    padding: 8px;
}

.cest-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cest-button {
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #1d4ed8;
    border-radius: 6px;
    background: #1d4ed8;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.cest-button:hover {
    background: #1e40af;
}

.cest-alert {
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #bcccdc;
    background: #f8fafc;
}

.cest-alert--success {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.cest-alert--error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.cest-table-wrap {
    overflow-x: auto;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
}

.cest-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.cest-table th,
.cest-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
    vertical-align: middle;
}

.cest-table th {
    background: #f5f7fa;
    color: #263442;
    font-weight: 700;
}

.cest-table tr:last-child td {
    border-bottom: 0;
}

.cest-section {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.cest-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 720px) {
    .cest-panel {
        margin: 16px 0;
    }

    .cest-panel__header,
    .cest-actions {
        display: grid;
        justify-content: stretch;
    }

    .cest-form__grid {
        grid-template-columns: 1fr;
    }

    .cest-button {
        width: 100%;
    }
}
