.dl-page-header {
    position: relative;
    display: flex;
    min-height: 184px;
    margin-block-end: 24px;
    padding: 30px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(125deg, #4b144b 0%, #350a36 58%, #6e436e 100%);
    border-radius: var(--dl-radius-lg);
    box-shadow: var(--dl-shadow-sm);
}

.dl-page-header::after {
    content: "";
    position: absolute;
    inset-block-start: -90px;
    inset-inline-start: -50px;
    width: 270px;
    height: 270px;
    background: radial-gradient(circle, rgba(200, 159, 96, 0.22), transparent 68%);
    pointer-events: none;
}

.dl-page-header > * {
    position: relative;
    z-index: 1;
}

.dl-page-header h1 {
    margin: 8px 0 10px;
    color: #fff;
    font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.dl-page-header p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.9;
}

.dl-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.8rem;
}

.dl-breadcrumb a {
    color: #fff;
}

.dl-card,
.dl-kpi-card {
    background: var(--dl-surface);
    border: 1px solid var(--dl-border);
    border-radius: var(--dl-radius-md);
    box-shadow: 0 8px 28px rgba(62, 42, 64, 0.045);
}

.dl-card {
    margin-block-end: 24px;
}

.dl-card__header {
    display: flex;
    min-height: 82px;
    padding: 20px 24px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-block-end: 1px solid var(--dl-border);
}

.dl-card__header h2,
.dl-card__header p {
    margin: 0;
}

.dl-card__header h2 {
    font-size: 1.05rem;
}

.dl-card__header p {
    margin-block-start: 6px;
    color: var(--dl-text-muted);
    font-size: 0.82rem;
}

.dl-card__body {
    min-width: 0;
    padding: 24px;
}

.dl-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-block-end: 24px;
}

.dl-kpi-card {
    display: grid;
    min-height: 142px;
    padding: 20px;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
}

.dl-kpi-card > .ki-outline {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--dl-primary);
    background: rgba(90, 25, 91, 0.08);
    border-radius: 13px;
    font-size: 22px;
}

.dl-kpi-card strong,
.dl-kpi-card span {
    display: block;
}

.dl-kpi-card strong {
    margin-block-start: 5px;
    font-size: 1.1rem;
}

.dl-kpi-card > .dl-status {
    grid-column: 1 / -1;
    justify-self: start;
}

.dl-contract-grid,
.dl-form-grid,
.dl-state-grid {
    display: grid;
    gap: 18px;
}

.dl-contract-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dl-contract-grid article {
    padding: 18px;
    background: var(--dl-surface-muted);
    border-radius: 12px;
}

.dl-contract-grid .ki-outline {
    color: var(--dl-primary);
    font-size: 26px;
}

.dl-contract-grid h3 {
    margin: 12px 0 8px;
    font-size: 1rem;
    direction: ltr;
    unicode-bidi: isolate;
}

.dl-contract-grid p {
    margin: 0;
    color: var(--dl-text-muted);
    line-height: 1.85;
}

.dl-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dl-state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dl-state-grid > :last-child {
    grid-column: 1 / -1;
}

.dl-field {
    min-width: 0;
}

.dl-field label,
.dl-field__hint {
    display: block;
}

.dl-field label {
    margin-block-end: 8px;
    font-weight: 600;
}

.dl-field__unit {
    display: inline;
    margin-inline-start: 6px;
    color: var(--dl-text-muted);
    font-size: 0.75rem;
    font-weight: 400;
}

.dl-field__hint {
    margin-block-start: 7px;
    color: var(--dl-text-muted);
    font-size: 0.75rem;
    line-height: 1.7;
}

.dl-field > input,
.dl-auth-form input {
    width: 100%;
    min-height: 46px;
    padding-inline: 14px;
    color: var(--dl-text);
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
}

.dl-field > input:disabled,
.dl-auth-form input:disabled {
    color: #98a2b3;
    background: #f2f4f7;
}

.dl-button,
.dl-icon-button {
    display: inline-flex;
    min-height: 42px;
    padding-inline: 16px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
}

.dl-icon-button {
    width: 42px;
    padding: 0;
    color: var(--dl-text);
    background: transparent;
}

.dl-button--primary {
    color: #fff;
    background: var(--dl-primary);
}

.dl-button--primary:hover {
    color: #fff;
    background: var(--dl-primary-hover);
}

.dl-button--secondary {
    color: var(--dl-primary);
    background: #fff;
    border-color: rgba(90, 25, 91, 0.22);
}

.dl-button--danger {
    color: #fff;
    background: var(--dl-danger);
}

.dl-button--block {
    width: 100%;
}

.dl-button:disabled,
.dl-button[aria-disabled="true"] {
    opacity: 0.58;
    cursor: not-allowed;
}

.dl-environment-badge,
.dl-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    border-radius: 999px;
}

.dl-environment-badge {
    padding: 7px 11px;
    color: var(--dl-primary);
    background: rgba(90, 25, 91, 0.08);
    font-size: 0.74rem;
}

.dl-status {
    padding: 5px 9px;
    font-size: 0.72rem;
    font-weight: 600;
}

.dl-status--success {
    color: var(--dl-success);
    background: var(--dl-success-surface);
}

.dl-status--warning {
    color: var(--dl-warning);
    background: var(--dl-warning-surface);
}

.dl-status--danger {
    color: var(--dl-danger);
    background: var(--dl-danger-surface);
}

.dl-status--info {
    color: var(--dl-info);
    background: var(--dl-info-surface);
}

.dl-status--neutral {
    color: var(--dl-neutral);
    background: var(--dl-neutral-surface);
}

.dl-status-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dl-async-state {
    min-width: 0;
}

.dl-state,
.dl-skeleton {
    min-height: 190px;
    padding: 26px;
    background: var(--dl-surface-muted);
    border: 1px dashed #d0d5dd;
    border-radius: 12px;
}

.dl-state {
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.dl-state > .ki-outline {
    margin-block-end: 10px;
    color: var(--dl-primary);
    font-size: 32px;
}

.dl-state h1,
.dl-state h2,
.dl-state p {
    margin: 0;
}

.dl-state p {
    margin-block: 8px 14px;
    color: var(--dl-text-muted);
    line-height: 1.8;
}

.dl-state--error {
    background: var(--dl-danger-surface);
    border-color: rgba(201, 54, 62, 0.3);
}

.dl-state--forbidden {
    background: var(--dl-neutral-surface);
}

.dl-state--ready {
    background: var(--dl-success-surface);
    border-color: rgba(24, 134, 75, 0.3);
}

.dl-skeleton {
    display: grid;
    align-content: center;
    gap: 13px;
}

.dl-skeleton span {
    display: block;
    height: 16px;
    background: linear-gradient(90deg, #e4e7ec 20%, #f2f4f7 42%, #e4e7ec 64%);
    background-size: 240% 100%;
    border-radius: 7px;
    animation: dl-skeleton 1.25s ease-in-out infinite;
}

.dl-skeleton span:nth-child(2) {
    width: 82%;
}

.dl-skeleton span:nth-child(3) {
    width: 58%;
}

@keyframes dl-skeleton {
    to {
        background-position: -240% 0;
    }
}

.dl-dialog::backdrop {
    background: rgba(20, 14, 22, 0.58);
}

.dl-dialog {
    position: fixed;
    inset: 0;
    width: min(520px, calc(100% - 36px));
    max-height: calc(100vh - 36px);
    margin: auto;
    padding: 0;
    overflow: auto;
    color: var(--dl-text);
    background: #fff;
    border: 0;
    border-radius: var(--dl-radius-md);
    box-shadow: 0 24px 70px rgba(20, 14, 22, 0.28);
}

.dl-dialog__header,
.dl-dialog__body,
.dl-dialog__footer {
    padding: 20px 22px;
}

.dl-dialog__header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-block-end: 1px solid var(--dl-border);
}

.dl-dialog__header h2,
.dl-dialog__body p {
    margin: 0;
}

.dl-dialog__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-block-start: 1px solid var(--dl-border);
}

.dl-ltr {
    direction: ltr;
    unicode-bidi: isolate;
}

.dl-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--dl-primary);
    outline-offset: 2px;
    box-shadow: var(--dl-focus);
}

@media (max-width: 1199.98px) {
    .dl-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .dl-page-header,
    .dl-card__header {
        align-items: stretch;
        flex-direction: column;
    }

    .dl-page-header {
        min-height: 220px;
        padding: 24px;
        justify-content: flex-end;
    }

    .dl-page-header .dl-button {
        width: 100%;
    }

    .dl-contract-grid,
    .dl-form-grid,
    .dl-state-grid {
        grid-template-columns: 1fr;
    }

    .dl-state-grid > :last-child {
        grid-column: auto;
    }
}

@media (max-width: 479.98px) {
    .dl-kpi-grid {
        grid-template-columns: 1fr;
    }

    .dl-card__body,
    .dl-card__header {
        padding: 18px;
    }
}
