.kpwf__methodology {
    margin: 0 0 24px;
    padding: 24px;
    border: 1px solid #dfe5e8;
    border-radius: 14px;
    background: #f7f9fc;
    color: inherit;
    font-family: inherit;
}

.kpwf__methodology-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.kpwf__methodology-step {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 10px;
    padding: 4px 13px;
    border: 1px solid #c8d7ff;
    border-radius: 999px;
    color: #1f4fae;
    background: #f2f6ff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}

.kpwf__methodology h2 {
    margin: 0 0 8px;
    color: #172131;
    font: inherit;
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 600;
    line-height: 1.2;
}

.kpwf__methodology-lead,
.kpwf__methodology-hint,
.kpwf__methodology-note {
    margin: 0;
    color: #68758c;
    font: inherit;
    line-height: 1.6;
    text-align: justify;
}

.kpwf__methodology-badge {
    flex: 0 0 250px;
    padding: 12px 18px;
    border: 1px solid #cce4d2;
    border-radius: 10px;
    color: #075d31;
    background: #f4fbf6;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

.kpwf__methodology-form {
    margin: 18px 0 0;
}

.kpwf__methodology-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: stretch;
}

.kpwf__methodology-file-control {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    min-width: 0;
    border: 1px solid #cdd6e5;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.kpwf__methodology-file-button,
.kpwf__methodology-submit,
.kpwf__methodology-active button,
.kpwf__methodology-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    box-sizing: border-box;
    padding: 12px 22px;
    border: 1px solid #3366ff;
    border-radius: 10px;
    color: #fff !important;
    background: #3366ff !important;
    box-shadow: none;
    font: inherit;
    font-weight: 400 !important;
    line-height: 1.2;
    text-decoration: none;
    text-shadow: none !important;
    cursor: pointer;
}

.kpwf__methodology-file-button {
    border: 0;
    border-right: 1px solid #cdd6e5;
    border-radius: 0;
    color: #173b91 !important;
    background: #fff !important;
    white-space: nowrap;
}

.kpwf__methodology-file-button:hover {
    background: #f3f6fc !important;
}

.kpwf__methodology-submit:hover,
.kpwf__methodology-active button:hover,
.kpwf__methodology-actions button:hover {
    border-color: #2856d9;
    background: #2856d9 !important;
}

.kpwf__methodology-submit:disabled {
    opacity: .65;
    cursor: wait;
}

.kpwf__methodology-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.kpwf__methodology-file-name {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 12px 18px;
    overflow: hidden;
    color: #172131;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kpwf__methodology-hint {
    margin-top: 10px;
    font-size: 14px;
}

.kpwf__methodology-status {
    margin-top: 14px;
    padding: 13px 16px;
    border: 1px solid #ccd7e8;
    border-radius: 10px;
    background: #fff;
}

.kpwf__methodology-status.is-error {
    border-color: #efb3b3;
    color: #a52a23;
    background: #fff7f7;
}

.kpwf__methodology-status.is-success {
    border-color: #b8dec2;
    color: #176034;
    background: #f5fbf7;
}

.kpwf__methodology-status.is-loading {
    color: #1e4fae;
    background: #f4f7ff;
}

.kpwf__methodology-active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 14px;
    padding: 13px 16px;
    border: 1px solid #b8dec2;
    border-radius: 10px;
    color: #176034;
    background: #f5fbf7;
}

.kpwf__methodology-active button {
    min-height: 40px;
    padding: 8px 15px;
}

.kpwf__methodology-note {
    margin: 14px 0 0;
    padding: 13px 16px;
    border-left: 4px solid #48c7b2;
    background: #fff;
}

.kpwf__methodology-result {
    margin-top: 18px;
}

.kpwf__methodology-table-wrap {
    max-height: 360px;
    overflow: auto;
    border: 1px solid #d7dfe9;
    border-radius: 10px;
    background: #fff;
}

.kpwf__methodology-table {
    width: 100%;
    border-collapse: collapse;
    font: inherit;
}

.kpwf__methodology-table th,
.kpwf__methodology-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #e5eaf0;
    color: inherit;
    text-align: left;
    vertical-align: top;
}

.kpwf__methodology-table th {
    position: sticky;
    top: 0;
    background: #f4f7fb;
    font-weight: 600;
}

.kpwf__methodology-table td:nth-child(2) {
    text-align: justify;
}

.kpwf__methodology-actions {
    display: flex;
    justify-content: flex-end;
    margin: 12px 0;
}

.kpwf__methodology-actions button {
    min-height: 42px;
    padding: 8px 16px;
}

.kpwf__methodology-json {
    width: 100%;
    min-height: 220px;
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid #d7dfe9;
    border-radius: 10px;
    color: #253247;
    background: #fff;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    line-height: 1.45;
    resize: vertical;
}

@media (max-width: 760px) {
    .kpwf__methodology {
        padding: 18px;
    }
    .kpwf__methodology-head {
        display: block;
    }
    .kpwf__methodology-badge {
        margin-top: 14px;
    }
    .kpwf__methodology-workspace {
        grid-template-columns: 1fr;
    }
    .kpwf__methodology-file-control {
        grid-template-columns: 1fr;
    }
    .kpwf__methodology-file-button {
        border-right: 0;
        border-bottom: 1px solid #cdd6e5;
    }
    .kpwf__methodology-active {
        align-items: flex-start;
        flex-direction: column;
    }
}


.kpwf__methodology [hidden] {
    display: none !important;
}

.kpwf__methodology button *,
.kpwf__methodology label * {
    font-weight: inherit;
}
